@Override protected Set<?> invokeShutDownAllMembers( final InternalDistributedSystem ads, long timeout) throws SQLException { // allow for skipping accessors and including all including locators/agents if (this.shutDownAllIncludeAdmins) { final DM dm = ads.getDistributionManager(); @SuppressWarnings("unchecked") Set<?> recipients = new HashSet<Object>( dm.getDistributionManagerIdsIncludingAdmin()); // remove self since it will be shut down separately at the end recipients.remove(dm.getDistributionManagerId()); return new GfxdShutdownAllRequest().send(dm, recipients, timeout); } else if (this.shutDownAllSkipAccessors) { final GfxdDistributionAdvisor advisor = GemFireXDUtils.getGfxdAdvisor(); final Set<DistributedMember> members = advisor.adviseDataStores(null); // remove self since it will be shut down separately at the end members.remove(ads.getDistributedMember()); return new GfxdShutdownAllRequest().send(ads.getDistributionManager(), members, timeout); } else { final GfxdDistributionAdvisor advisor = GemFireXDUtils.getGfxdAdvisor(); final Set<DistributedMember> members = advisor.adviseOperationNodes(null); // remove self since it will be shut down separately at the end members.remove(ads.getDistributedMember()); return new GfxdShutdownAllRequest().send(ads.getDistributionManager(), members, timeout); } }
() -> new PersistIdentityStart()); DSFIDFactory.registerGemFireXDClass(GFXD_SHUTDOWN_ALL_MESSAGE, () -> new GfxdShutdownAllRequest()); DSFIDFactory.registerGemFireXDClass(GET_IDENTITY_MSG, () -> new IdentityValueManager.GetIdentityValueMessage());