public HazelcastCoreTopologyService(Config config, MemberId myself, JobScheduler jobScheduler, LogProvider logProvider, LogProvider userLogProvider, RemoteMembersResolver remoteMembersResolver, TopologyServiceRetryStrategy topologyServiceRetryStrategy, Monitors monitors) : base(config, myself, logProvider, userLogProvider) { this._localDBName = config.Get(CausalClusteringSettings.database); this._scheduler = new RobustJobSchedulerWrapper(jobScheduler, Log); this._refreshPeriod = config.Get(CausalClusteringSettings.cluster_topology_refresh).toMillis(); this._remoteMembersResolver = remoteMembersResolver; this._topologyServiceRetryStrategy = topologyServiceRetryStrategy; this._monitor = monitors.NewMonitor(typeof(Monitor)); }
public HazelcastClient(HazelcastConnector connector, JobScheduler scheduler, LogProvider logProvider, Config config, MemberId myself) { this._hzInstance = new RobustHazelcastWrapper(connector); this._config = config; this._log = logProvider.getLog(this.GetType()); this._scheduler = new RobustJobSchedulerWrapper(scheduler, _log); this._connectorAddresses = ClientConnectorAddresses.ExtractFromConfig(config); this._transactionSource = config.Get(CausalClusteringSettings.transaction_advertised_address); this._timeToLive = config.Get(CausalClusteringSettings.read_replica_time_to_live).toMillis(); this._refreshPeriod = config.Get(CausalClusteringSettings.cluster_topology_refresh).toMillis(); this._myself = myself; this._groups = config.Get(CausalClusteringSettings.server_groups); this._topologyServiceRetryStrategy = ResolveStrategy(_refreshPeriod, logProvider); this._dbName = config.Get(CausalClusteringSettings.database); this._coreRoles = emptyMap(); }