maintenanceMessageGlobal = message;
}else{
maintenanceMessagePerNode = message;
}
log.audit("Setting new maintenance message::" + maintenanceMessageGlobal);
ChiefControllerMessageEvent mme = new ChiefControllerMessageEvent();
if(message != null ){
//create CHANGE_EVENT, and change message to something new
mme.setMsg(message);
}else if(maintenanceMessageGlobal == null && maintenanceMessagePerNode == null){
//remove, clear message, in case no more message should be shown.
mme = ChiefControllerMessageEvent.CLEAR;
}
//send message to all (Full)ChiefControllers
mme.setClusterWideMessage(global);//
CoordinatorManager.getCoordinator().getEventBus().fireEventToListenersOf(mme, GLOBAL_STICKY_MESSAGE);
}