void addReconnectListener() { reconnectTries = 0; // reset the count for this listener getLogWriter().info("adding reconnect listener"); ReconnectListener reconlis = new ReconnectListener() { public void reconnecting(InternalDistributedSystem oldSys) { getLogWriter().info("reconnect listener invoked"); reconnectTries++; } public void onReconnect(InternalDistributedSystem system1, InternalDistributedSystem system2) {} }; InternalDistributedSystem.addReconnectListener(reconlis); }
private void registerServerRestarter(InternalDistributedSystem sys, Properties bootProperties, boolean ignoreIfStarted, boolean isLocator) { if (!sys.getConfig().getDisableAutoReconnect()) { this.restarter = new ServerRestarter(sys, bootProperties, ignoreIfStarted, isLocator); InternalDistributedSystem.addReconnectListener(this.restarter); } }
private void registerServerRestarter(InternalDistributedSystem sys, Properties bootProperties, boolean ignoreIfStarted, boolean isLocator) { if (!sys.getConfig().getDisableAutoReconnect()) { this.restarter = new ServerRestarter(sys, bootProperties, ignoreIfStarted, isLocator); InternalDistributedSystem.addReconnectListener(this.restarter); } }
private void registerServerRestarter(InternalDistributedSystem sys, Properties bootProperties, boolean ignoreIfStarted, boolean isLocator) { if (!sys.getConfig().getDisableAutoReconnect()) { this.restarter = new ServerRestarter(sys, bootProperties, ignoreIfStarted, isLocator); InternalDistributedSystem.addReconnectListener(this.restarter); } }
InternalDistributedSystem.addReconnectListener(new ReconnectListener() { public void reconnecting(InternalDistributedSystem oldsys) {
InternalDistributedSystem.addReconnectListener(new ReconnectListener() { public void reconnecting(InternalDistributedSystem oldsys) {