public CoreSnapshotService(CommandApplicationProcess applicationProcess, CoreState coreState, RaftLog raftLog, RaftMachine raftMachine) { this._applicationProcess = applicationProcess; this._coreState = coreState; this._raftLog = raftLog; this._raftMachine = raftMachine; }
public CommandApplicationProcess(RaftLog raftLog, int maxBatchSize, int flushEvery, System.Func <DatabaseHealth> dbHealth, LogProvider logProvider, ProgressTracker progressTracker, SessionTracker sessionTracker, CoreState coreState, InFlightCache inFlightCache, Monitors monitors) { if (!InstanceFieldsInitialized) { InitializeInstanceFields(); InstanceFieldsInitialized = true; } this._raftLog = raftLog; this._flushEvery = flushEvery; this._progressTracker = progressTracker; this._sessionTracker = sessionTracker; this._log = logProvider.getLog(this.GetType()); this._dbHealth = dbHealth; this._coreState = coreState; this._inFlightCache = inFlightCache; //JAVA TO C# CONVERTER WARNING: The .NET Type.FullName property will not always yield results identical to the Java Class.getName method: this._commitIndexMonitor = monitors.NewMonitor(typeof(RaftLogCommitIndexMonitor), this.GetType().FullName); this._batcher = new CommandBatcher(maxBatchSize, this.applyBatch); this._batchStat = StatUtil.create("BatchSize", _log, 4096, true); }