private void InstantiateKernelExtensions() { _life = new LifeSupport(); _life.start(); _labelScanStore = new NativeLabelScanStore(_pageCache, _databaseLayout, _fileSystem, Org.Neo4j.Kernel.Impl.Api.scan.FullStoreChangeStream_Fields.Empty, false, new Monitors(), RecoveryCleanupWorkCollector.immediate()); _life.add(_labelScanStore); }
private SegmentedRaftLog CreateRaftLog(long rotateAtSize, string pruneStrategy) { if (_fileSystem == null) { _fileSystem = new EphemeralFileSystemAbstraction(); } File directory = new File(RAFT_LOG_DIRECTORY_NAME); _fileSystem.mkdir(directory); LogProvider logProvider = Instance; CoreLogPruningStrategy pruningStrategy = (new CoreLogPruningStrategyFactory(pruneStrategy, logProvider)).NewInstance(); SegmentedRaftLog newRaftLog = new SegmentedRaftLog(_fileSystem, directory, rotateAtSize, new DummyRaftableContentSerializer(), logProvider, 8, Clocks.systemClock(), new OnDemandJobScheduler(), pruningStrategy); _life.add(newRaftLog); _life.init(); _life.start(); return(newRaftLog); }
public override void Start() { _life.start(); }