use of org.neo4j.com.storecopy.ResponsePacker in project neo4j by neo4j.
the class BackupImpl method fullBackup.
@Override
public Response<Void> fullBackup(StoreWriter writer, boolean forensics) {
try (StoreWriter storeWriter = writer) {
logger.log("Full backup started...");
RequestContext copyStartContext = storeCopyServer.flushStoresAndStreamStoreFiles(FULL_BACKUP_CHECKPOINT_TRIGGER, storeWriter, forensics);
ResponsePacker responsePacker = new StoreCopyResponsePacker(logicalTransactionStore, transactionIdStore, logFileInformation, storeId, copyStartContext.lastAppliedTransaction() + 1, // mandatory transaction id
storeCopyServer.monitor());
long optionalTransactionId = copyStartContext.lastAppliedTransaction();
return responsePacker.packTransactionStreamResponse(anonymous(optionalTransactionId), null);
} finally {
logger.log("Full backup finished.");
}
}
Aggregations