use of org.neo4j.causalclustering.core.consensus.log.DummyRaftableContentSerializer in project neo4j by neo4j.
the class SegmentedRaftLogRotationTruncationPruneTest method createRaftLog.
private RaftLog createRaftLog() throws Exception {
File directory = new File(RAFT_LOG_DIRECTORY_NAME);
FileSystemAbstraction fileSystem = new EphemeralFileSystemAbstraction();
fileSystem.mkdir(directory);
LogProvider logProvider = getInstance();
CoreLogPruningStrategy pruningStrategy = new CoreLogPruningStrategyFactory("1 entries", logProvider).newInstance();
SegmentedRaftLog newRaftLog = new SegmentedRaftLog(fileSystem, directory, 1, new DummyRaftableContentSerializer(), logProvider, 8, Clocks.fakeClock(), new OnDemandJobScheduler(), pruningStrategy);
newRaftLog.start();
return newRaftLog;
}
Aggregations