/** * Returns a collection of the current admin distribution members. * * @see com.gemstone.gemfire.distributed.DistributedMember * @throws HydraRuntimeException if not currently connected. */ public static Set getAdminMembers() { DM dm = _getDM(); if (dm instanceof DistributionManager) { return new HashSet(((DistributionManager)dm).getAdminMemberSet()); } else { return new HashSet(); } }
Set adminMemberSet = dm.getAdminMemberSet(); if (adminMemberSet == null || adminMemberSet.isEmpty()) return;
public void memberDeparted(InternalDistributedMember theId, boolean crashed, String reason) { boolean wasAdmin = getAdminMemberSet().contains(theId); if (wasAdmin) { // Pretend we received an AdminConsoleDisconnectMessage from the console that // is no longer in the JavaGroup view. // He must have died without sending a ShutdownMessage. // This fixes bug 28454. AdminConsoleDisconnectMessage message = new AdminConsoleDisconnectMessage(); message.setSender(theId); message.setCrashed(crashed); message.setAlertListenerExpected(true); message.setIgnoreAlertListenerRemovalFailure(true); // we don't know if it was a listener so don't issue a warning message.setRecipient(myid); message.setReason(reason); //added for #37950 handleIncomingDMsg(message); } dm.handleManagerDeparture(theId, crashed, reason); }
public void memberDeparted(InternalDistributedMember theId, boolean crashed, String reason) { boolean wasAdmin = getAdminMemberSet().contains(theId); if (wasAdmin) { // Pretend we received an AdminConsoleDisconnectMessage from the console that // is no longer in the JavaGroup view. // He must have died without sending a ShutdownMessage. // This fixes bug 28454. AdminConsoleDisconnectMessage message = new AdminConsoleDisconnectMessage(); message.setSender(theId); message.setCrashed(crashed); message.setAlertListenerExpected(true); message.setIgnoreAlertListenerRemovalFailure(true); // we don't know if it was a listener so don't issue a warning message.setRecipient(myid); message.setReason(reason); //added for #37950 handleIncomingDMsg(message); } dm.handleManagerDeparture(theId, crashed, reason); }
Set adminMemberSet = dm.getAdminMemberSet(); if (adminMemberSet == null || adminMemberSet.isEmpty()) return;