/** * Called during undeployment or server stop. De-register from all previously registered deployments */ public void stop() { executor.shutdownNow(); Collection<NodeRegistrationContext> allRegistrations = nodeRegistrations.values(); for (NodeRegistrationContext registration : allRegistrations) { sendUnregistrationEvent(registration.resolvedDeployment); } }