private void loadGossiperState() { assert Gossiper.instance != null; ReconnectableSnitchHelper pendingHelper = new ReconnectableSnitchHelper(this, myDC, preferLocal); Gossiper.instance.register(pendingHelper); pendingHelper = snitchHelperReference.getAndSet(pendingHelper); if (pendingHelper != null) Gossiper.instance.unregister(pendingHelper); } }
private void reconnect(InetAddress publicAddress, VersionedValue localAddressValue) { try { reconnect(publicAddress, InetAddress.getByName(localAddressValue.value)); } catch (UnknownHostException e) { logger.error("Error in getting the IP address resolved: ", e); } }
private void reconnect(InetAddress publicAddress, VersionedValue localAddressValue) { try { reconnect(publicAddress, InetAddress.getByName(localAddressValue.value)); } catch (UnknownHostException e) { logger.error("Error in getting the IP address resolved: ", e); } }
private void loadGossiperState() { assert Gossiper.instance != null; ReconnectableSnitchHelper pendingHelper = new ReconnectableSnitchHelper(this, myDC, preferLocal); Gossiper.instance.register(pendingHelper); pendingHelper = snitchHelperReference.getAndSet(pendingHelper); if (pendingHelper != null) Gossiper.instance.unregister(pendingHelper); } }
private void reconnect(InetAddress publicAddress, VersionedValue localAddressValue) { try { reconnect(publicAddress, InetAddress.getByName(localAddressValue.value)); } catch (UnknownHostException e) { logger.error("Error in getting the IP address resolved: ", e); } }
private void loadGossiperState() { assert Gossiper.instance != null; ReconnectableSnitchHelper pendingHelper = new ReconnectableSnitchHelper(this, myDC, preferLocal); Gossiper.instance.register(pendingHelper); pendingHelper = snitchHelperReference.getAndSet(pendingHelper); if (pendingHelper != null) Gossiper.instance.unregister(pendingHelper); } }
private void reconnect(InetAddress publicAddress, VersionedValue localAddressValue) { try { reconnect(publicAddress, InetAddress.getByName(localAddressValue.value)); } catch (UnknownHostException e) { logger.error("Error in getting the IP address resolved: ", e); } }
private void loadGossiperState() { assert Gossiper.instance != null; ReconnectableSnitchHelper pendingHelper = new ReconnectableSnitchHelper(this, myDC, preferLocal); Gossiper.instance.register(pendingHelper); pendingHelper = snitchHelperReference.getAndSet(pendingHelper); if (pendingHelper != null) Gossiper.instance.unregister(pendingHelper); } }
public void onChange(InetAddress endpoint, ApplicationState state, VersionedValue value) { if (preferLocal && state == ApplicationState.INTERNAL_IP && !Gossiper.instance.isDeadState(Gossiper.instance.getEndpointStateForEndpoint(endpoint))) reconnect(endpoint, value); }
/** * Called in preparation for the initiation of the gossip loop. */ @Override public synchronized void gossiperStarting() { gossiperInitialized = true; StorageService.instance.gossipSnitchInfo(); Gossiper.instance.register(new ReconnectableSnitchHelper(this, localNodeData.datacenter, true)); }
public void onAlive(InetAddress endpoint, EndpointState state) { if (preferLocal && state.getApplicationState(ApplicationState.INTERNAL_IP) != null) reconnect(endpoint, state.getApplicationState(ApplicationState.INTERNAL_IP)); }
@Override public void gossiperStarting() { super.gossiperStarting(); Gossiper.instance.addLocalApplicationState(ApplicationState.INTERNAL_IP, StorageService.instance.valueFactory.internalIP(localPrivateAddress)); Gossiper.instance.register(new ReconnectableSnitchHelper(this, ec2region, true)); } }
public void onChange(InetAddress endpoint, ApplicationState state, VersionedValue value) { if (preferLocal && !Gossiper.instance.isDeadState(Gossiper.instance.getEndpointStateForEndpoint(endpoint)) && state == ApplicationState.INTERNAL_IP) reconnect(endpoint, value); }
@Override public void gossiperStarting() { super.gossiperStarting(); Gossiper.instance.addLocalApplicationState(ApplicationState.INTERNAL_IP, StorageService.instance.valueFactory.internalIP(localPrivateAddress)); Gossiper.instance.register(new ReconnectableSnitchHelper(this, ec2region, true)); } }
public void onAlive(InetAddress endpoint, EndpointState state) { if (preferLocal && state.getApplicationState(ApplicationState.INTERNAL_IP) != null) reconnect(endpoint, state.getApplicationState(ApplicationState.INTERNAL_IP)); }
@Override public void gossiperStarting() { super.gossiperStarting(); Gossiper.instance.addLocalApplicationState(ApplicationState.INTERNAL_IP, StorageService.instance.valueFactory.internalIP(localPrivateAddress)); Gossiper.instance.register(new ReconnectableSnitchHelper(this, ec2region, true)); } }
public void onChange(InetAddress endpoint, ApplicationState state, VersionedValue value) { if (preferLocal && state == ApplicationState.INTERNAL_IP && !Gossiper.instance.isDeadState(Gossiper.instance.getEndpointStateForEndpoint(endpoint))) reconnect(endpoint, value); }
public void gossiperStarting() { super.gossiperStarting(); Gossiper.instance.addLocalApplicationState(ApplicationState.INTERNAL_IP, StorageService.instance.valueFactory.internalIP(localPrivateAddress)); Gossiper.instance.register(new ReconnectableSnitchHelper(this, ec2region, true)); } }
public void onAlive(InetAddress endpoint, EndpointState state) { if (preferLocal && state.getApplicationState(ApplicationState.INTERNAL_IP) != null) reconnect(endpoint, state.getApplicationState(ApplicationState.INTERNAL_IP)); }
public void onChange(InetAddress endpoint, ApplicationState state, VersionedValue value) { if (preferLocal && state == ApplicationState.INTERNAL_IP && !Gossiper.instance.isDeadState(Gossiper.instance.getEndpointStateForEndpoint(endpoint))) reconnect(endpoint, value); }