@Override public void stateChanged(CuratorFramework client, ConnectionState newState) { //Nothing to do here. We are already monitoring the state changes for shutdown. log.info("Zookeeper connection state changed to: " + newState.toString()); } }
@Override public void stateChanged(CuratorFramework arg0, ConnectionState arg1) { System.out.println("State changed: " + arg1.toString()); }
@Override public void stateChanged(CuratorFramework client, ConnectionState newState) { LOG.info(String.format("leader selector state change listener, new state: %s", newState.toString())); }
log.debug("Connection state to zookeeper updated: " + newState.toString());
@Override public void stateChanged(final CuratorFramework client, final ConnectionState newState) { connectionState = newState; LOG.trace("ZK connection status = " + newState.toString()); // if (newState == ConnectionState.CONNECTED) { // ZK connected // } if (newState == ConnectionState.SUSPENDED) { LOG.warn("ZK connection is suspended, waiting to reconnect."); } if (newState == ConnectionState.RECONNECTED) { // ZK connected is reconnected. LOG.warn("ZK connection is reestablished"); } if (newState == ConnectionState.LOST) { LOG.fatal("ZK is not reconnected"); if (ConfigurationService.getBoolean(CONF_SHUTDOWN_ON_TIMEOUT)) { LOG.fatal("Shutting down Oozie server"); Services.get().destroy(); System.exit(1); } } }
@Override public void stateChanged(final CuratorFramework client, final ConnectionState newState) { connectionState = newState; LOG.trace("ZK connection status = " + newState.toString()); // if (newState == ConnectionState.CONNECTED) { // ZK connected // } if (newState == ConnectionState.SUSPENDED) { LOG.warn("ZK connection is suspended, waiting to reconnect."); } if (newState == ConnectionState.RECONNECTED) { // ZK connected is reconnected. LOG.warn("ZK connection is reestablished"); } if (newState == ConnectionState.LOST) { LOG.fatal("ZK is not reconnected"); if (ConfigurationService.getBoolean(CONF_SHUTDOWN_ON_TIMEOUT)) { LOG.fatal("Shutting down Oozie server"); Services.get().destroy(); System.exit(1); } } }