/** * Removes the endpoint from Gossip but retains endpoint state */ public void removeEndpoint(InetAddress endpoint) { // do subscribers first so anything in the subscriber that depends on gossiper state won't get confused for (IEndpointStateChangeSubscriber subscriber : subscribers) subscriber.onRemove(endpoint); if(seeds.contains(endpoint)) { buildSeedsList(); seeds.remove(endpoint); logger.info("removed {} from seeds, updated seeds list = {}", endpoint, seeds); } liveEndpoints.remove(endpoint); unreachableEndpoints.remove(endpoint); MessagingService.instance().resetVersion(endpoint); quarantineEndpoint(endpoint); MessagingService.instance().destroyConnectionPool(endpoint); if (logger.isDebugEnabled()) logger.debug("removing endpoint {}", endpoint); }
/** * Removes the endpoint from Gossip but retains endpoint state */ public void removeEndpoint(InetAddress endpoint) { // do subscribers first so anything in the subscriber that depends on gossiper state won't get confused for (IEndpointStateChangeSubscriber subscriber : subscribers) subscriber.onRemove(endpoint); if(seeds.contains(endpoint)) { buildSeedsList(); seeds.remove(endpoint); logger.info("removed {} from seeds, updated seeds list = {}", endpoint, seeds); } liveEndpoints.remove(endpoint); unreachableEndpoints.remove(endpoint); MessagingService.instance().resetVersion(endpoint); quarantineEndpoint(endpoint); MessagingService.instance().destroyConnectionPool(endpoint); if (logger.isDebugEnabled()) logger.debug("removing endpoint {}", endpoint); }
/** * Removes the endpoint from Gossip but retains endpoint state */ public void removeEndpoint(InetAddress endpoint) { // do subscribers first so anything in the subscriber that depends on gossiper state won't get confused for (IEndpointStateChangeSubscriber subscriber : subscribers) subscriber.onRemove(endpoint); if(seeds.contains(endpoint)) { buildSeedsList(); seeds.remove(endpoint); logger.info("removed {} from seeds, updated seeds list = {}", endpoint, seeds); } liveEndpoints.remove(endpoint); unreachableEndpoints.remove(endpoint); MessagingService.instance().resetVersion(endpoint); quarantineEndpoint(endpoint); MessagingService.instance().destroyConnectionPool(endpoint); if (logger.isDebugEnabled()) logger.debug("removing endpoint {}", endpoint); }
/** * Removes the endpoint from Gossip but retains endpoint state */ public void removeEndpoint(InetAddress endpoint) { // do subscribers first so anything in the subscriber that depends on gossiper state won't get confused for (IEndpointStateChangeSubscriber subscriber : subscribers) subscriber.onRemove(endpoint); if(seeds.contains(endpoint)) { buildSeedsList(); seeds.remove(endpoint); logger.info("removed {} from seeds, updated seeds list = {}", endpoint, seeds); } liveEndpoints.remove(endpoint); unreachableEndpoints.remove(endpoint); MessagingService.instance().resetVersion(endpoint); quarantineEndpoint(endpoint); MessagingService.instance().destroyConnectionPool(endpoint); if (logger.isDebugEnabled()) logger.debug("removing endpoint {}", endpoint); }