/** return true if the cache was closed due to being shunned by other members */ public boolean forcedDisconnect() { return this.forcedDisconnect || this.system.forcedDisconnect(); }
/** return true if the cache was closed due to being shunned by other members */ public boolean forcedDisconnect() { return this.forcedDisconnect || this.system.forcedDisconnect(); }
@Override public void onDisconnect(InternalDistributedSystem sys) { // only stop the fabricservice if it's not going to be // rebooted. Otherwise it goes away and the reconnected DS // won't have a service to use it. if (sys.forcedDisconnect() && sys.getConfig().getDisableAutoReconnect()) { FabricServiceImpl impl = ((FabricServiceImpl)getInstance()); if (impl != null) { try { synchronized(impl) { sys.getLogWriter().fine("FabricService stopping due to forced-disconnect"); impl.stopNoSync(this.bootProperties, sys, true); } } catch (SQLException e) { SanityManager.DEBUG_PRINT(fabapi, "exception caught while stopping service due to forced disconnect", e); } } } } }
@Override public void onDisconnect(InternalDistributedSystem sys) { // only stop the fabricservice if it's not going to be // rebooted. Otherwise it goes away and the reconnected DS // won't have a service to use it. if (sys.forcedDisconnect() && sys.getConfig().getDisableAutoReconnect()) { FabricServiceImpl impl = ((FabricServiceImpl)getInstance()); if (impl != null) { try { // noinspection SynchronizationOnLocalVariableOrMethodParameter synchronized(impl) { sys.getLogWriter().fine("FabricService stopping due to forced-disconnect"); impl.stopNoSync(this.bootProperties, sys, true); } } catch (SQLException e) { SanityManager.DEBUG_PRINT("warning:" + fabapi, "exception caught " + "while stopping service due to forced disconnect", e); } } } } }
@Override public void onDisconnect(InternalDistributedSystem sys) { // only stop the fabricservice if it's not going to be // rebooted. Otherwise it goes away and the reconnected DS // won't have a service to use it. if (sys.forcedDisconnect() && sys.getConfig().getDisableAutoReconnect()) { FabricServiceImpl impl = ((FabricServiceImpl)getInstance()); if (impl != null) { try { synchronized(impl) { sys.getLogWriter().fine("FabricService stopping due to forced-disconnect"); impl.stopNoSync(this.bootProperties, sys, true); } } catch (SQLException e) { SanityManager.DEBUG_PRINT(fabapi, "exception caught while stopping service due to forced disconnect", e); } } } } }