示例#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;
    }
示例#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());
 }
示例#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
 }