//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public synchronized void shutdown() throws Throwable public override void Shutdown() { lock (this) { _modeSwitcherExecutor.shutdown(); _modeSwitcherExecutor.awaitTermination(60, TimeUnit.SECONDS); _haCommunicationLife.shutdown(); _switchToMaster.close(); _switchToMaster = null; _switchToSlave = null; } }
public HighAvailabilityModeSwitcher(SwitchToSlave switchToSlave, SwitchToMaster switchToMaster, Election election, ClusterMemberAvailability clusterMemberAvailability, ClusterClient clusterClient, System.Func <StoreId> storeIdSupplier, InstanceId instanceId, ComponentSwitcher componentSwitcher, DataSourceManager neoStoreDataSourceSupplier, LogService logService) { this._switchToSlave = switchToSlave; this._switchToMaster = switchToMaster; this._election = election; this._clusterMemberAvailability = clusterMemberAvailability; this._clusterClient = clusterClient; this._storeIdSupplier = storeIdSupplier; this._instanceId = instanceId; this._componentSwitcher = componentSwitcher; this._msgLog = logService.GetInternalLog(this.GetType()); this._userLog = logService.GetUserLog(this.GetType()); this._neoStoreDataSourceSupplier = neoStoreDataSourceSupplier; this._haCommunicationLife = new LifeSupport(); }