private volatile BinaryLatch _shutdownLatch; // Store under synchronised(this), load in update puller thread internal SlaveUpdatePuller(RequestContextFactory requestContextFactory, Master master, LastUpdateTime lastUpdateTime, LogProvider logging, InstanceId instanceId, AvailabilityGuard availabilityGuard, InvalidEpochExceptionHandler invalidEpochHandler, JobScheduler jobScheduler, Monitor monitor) { this._requestContextFactory = requestContextFactory; this._master = master; this._lastUpdateTime = lastUpdateTime; this._instanceId = instanceId; this._availabilityGuard = availabilityGuard; this._invalidEpochHandler = invalidEpochHandler; this._jobScheduler = jobScheduler; this._monitor = monitor; this._logger = logging.getLog(this.GetType()); this._invalidEpochCappedLogger = (new CappedLogger(_logger)).setCountLimit(LogCap); this._comExceptionCappedLogger = (new CappedLogger(_logger)).setCountLimit(LogCap); }
public PullerFactory(RequestContextFactory requestContextFactory, Master master, LastUpdateTime lastUpdateTime, LogProvider logging, InstanceId serverId, InvalidEpochExceptionHandler invalidEpochHandler, long pullInterval, JobScheduler jobScheduler, DependencyResolver dependencyResolver, AvailabilityGuard availabilityGuard, HighAvailabilityMemberStateMachine memberStateMachine, Monitors monitors, Config config) { this._requestContextFactory = requestContextFactory; this._master = master; this._lastUpdateTime = lastUpdateTime; this._logging = logging; this._serverId = serverId; this._invalidEpochHandler = invalidEpochHandler; this._pullInterval = pullInterval; this._jobScheduler = jobScheduler; this._dependencyResolver = dependencyResolver; this._availabilityGuard = availabilityGuard; this._memberStateMachine = memberStateMachine; this._monitors = monitors; this._activeDatabaseName = config.Get(GraphDatabaseSettings.active_database); }