/** * On no master. * * @throws IOException Signals that an I/O exception has occurred. */ protected void onNoMaster() throws IOException { for (ControlNodeListener listener : listeners) { listener.onControlNodeDown(); } }
/** * On master change. * * @param currentData the current data */ protected void onMasterChange(ChildData currentData) { ControlNodeInfo controlServerInfo = extractControlServerInfo(currentData); for (ControlNodeListener listener : listeners) { listener.onControlNodeChange(controlServerInfo); } }