@Override protected void shutdownSelf(DM dm, boolean hadCache) throws SQLException { // Stop fabric service. processShutDown(null); // Disconnect internal distributed system. The disconnect was skipped using // the keepDS flag while calling cache.close() from cache.shutdownAll() // because the IDS needs to be connected to be able to send back a response. // Now we can disconnect the IDS. InternalDistributedSystem ids = dm.getSystem(); if (ids != null && ids.isConnected()) { ids.disconnect(); } }
@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); } }
IndexInfo.dummy(); JSONProcedures.dummy(); GfxdShutdownAllRequest.dummy(); GatewayEventImpl.dummy(); EventErrorFileToDBWriter.dummy();
() -> new PersistIdentityStart()); DSFIDFactory.registerGemFireXDClass(GFXD_SHUTDOWN_ALL_MESSAGE, () -> new GfxdShutdownAllRequest()); DSFIDFactory.registerGemFireXDClass(GET_IDENTITY_MSG, () -> new IdentityValueManager.GetIdentityValueMessage());
IndexInfo.dummy(); JSONProcedures.dummy(); GfxdShutdownAllRequest.dummy(); GatewayEventImpl.dummy(); EventErrorFileToDBWriter.dummy();
@Override protected void shutdownSelf(DM dm, boolean hadCache) throws SQLException { // Stop fabric service. processShutDown(null); // Disconnect internal distributed system. The disconnect was skipped using // the keepDS flag while calling cache.close() from cache.shutdownAll() // because the IDS needs to be connected to be able to send back a response. // Now we can disconnect the IDS. InternalDistributedSystem ids = dm.getSystem(); if (ids != null && ids.isConnected()) { ids.disconnect(); } }
IndexInfo.dummy(); JSONProcedures.dummy(); GfxdShutdownAllRequest.dummy(); GatewayEventImpl.dummy(); EventErrorFileToDBWriter.dummy();
@Override protected void shutdownSelf(DM dm, boolean hadCache) throws SQLException { // Stop fabric service. processShutDown(null); // Disconnect internal distributed system. The disconnect was skipped using // the keepDS flag while calling cache.close() from cache.shutdownAll() // because the IDS needs to be connected to be able to send back a response. // Now we can disconnect the IDS. InternalDistributedSystem ids = dm.getSystem(); if (ids != null && ids.isConnected()) { ids.disconnect(); } }