Ejemplo n.º 1
0
 public CoreSnapshotService(CommandApplicationProcess applicationProcess, CoreState coreState, RaftLog raftLog, RaftMachine raftMachine)
 {
     this._applicationProcess = applicationProcess;
     this._coreState          = coreState;
     this._raftLog            = raftLog;
     this._raftMachine        = raftMachine;
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 4
0
 public RaftLogPruner(RaftMachine raftMachine, CommandApplicationProcess applicationProcess, Clock clock)
 {
     this._raftMachine        = raftMachine;
     this._applicationProcess = applicationProcess;
     this._clock = clock;
 }
Ejemplo n.º 5
0
 public ApplierState(CommandApplicationProcess outerInstance)
 {
     this._outerInstance = outerInstance;
 }