Beispiel #1
0
    @Override
    public void onMultiChunkClose(MultiChunk multiChunk) {
      logger.log(Level.FINER, "- /MultiChunk {0}", multiChunk.getId());

      multiChunkEntry.setSize(multiChunk.getSize());

      newDatabaseVersion.addMultiChunk(multiChunkEntry);
      multiChunkEntry = null;
    }
Beispiel #2
0
 @Override
 public void onMultiChunkWrite(MultiChunk multiChunk, Chunk chunk) {
   logger.log(
       Level.FINER,
       "- Chunk > MultiChunk: {0} > {1}",
       new Object[] {StringUtil.toHex(chunk.getChecksum()), multiChunk.getId()});
   multiChunkEntry.addChunk(chunkEntry.getChecksum());
 }
Beispiel #3
0
 @Override
 public void onMultiChunkOpen(MultiChunk multiChunk) {
   logger.log(Level.FINER, "- +MultiChunk {0}", multiChunk.getId());
   multiChunkEntry = new MultiChunkEntry(multiChunk.getId(), 0); // size unknown so far
 }