public CoreSnapshotService(CommandApplicationProcess applicationProcess, CoreState coreState, RaftLog raftLog, RaftMachine raftMachine) { this._applicationProcess = applicationProcess; this._coreState = coreState; this._raftLog = raftLog; this._raftMachine = raftMachine; }
private void InitializeInstanceFields() { _applicationProcess = new CommandApplicationProcess(_raftLog, _batchSize, _flushEvery, () => _dbHealth, NullLogProvider.Instance, new ProgressTrackerImpl(_globalSession), _sessionTracker, _coreState, _inFlightCache, _monitors); when(_coreState.commandDispatcher()).thenReturn(_commandDispatcher); when(_coreState.LastAppliedIndex).thenReturn(-1L); when(_coreState.LastFlushed).thenReturn(-1L); }
public RaftMessageApplier(LocalDatabase localDatabase, LogProvider logProvider, RaftMachine raftMachine, CoreStateDownloaderService downloadService, CommandApplicationProcess applicationProcess, Org.Neo4j.causalclustering.catchup.CatchupAddressProvider_PrioritisingUpstreamStrategyBasedAddressProvider catchupAddressProvider) { this._localDatabase = localDatabase; this._log = logProvider.getLog(this.GetType()); this._raftMachine = raftMachine; this._downloadService = downloadService; this._applicationProcess = applicationProcess; this._catchupAddressProvider = catchupAddressProvider; }
public RaftLogPruner(RaftMachine raftMachine, CommandApplicationProcess applicationProcess, Clock clock) { this._raftMachine = raftMachine; this._applicationProcess = applicationProcess; this._clock = clock; }
public ApplierState(CommandApplicationProcess outerInstance) { this._outerInstance = outerInstance; }