StringJid sj = makeStringJid(LOG_FILE_NAME);
sj.setValue(logFileName);
LongJid lj = makeLongJid(LOG_POSITION);
lj.setValue(logPosition);
pendingWrite = true;
Block block = newDbBlock();
rootJid = (RootJid) rootJid.copyJID(getMailboxFactory().createMailbox());
stringMapJid = null;
RootJid rj = (RootJid) rootJid.copyJID(getMailboxFactory().createMailbox());
block.setRootJid(rj);
block.setTimestamp(timestamp);
if (isFirstRootJid) {
isFirstRootJid = false;
block.setCurrentPosition(maxSize);
} else {
isFirstRootJid = true;
block.setCurrentPosition(0L);
}
(new ForceBeforeWriteRootJid(block, maxSize)).send(this, dbFile, new RP<Object>() {
@Override
public void processResponse(Object response) throws Exception {
pendingWrite = false;