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 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 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 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); } }
/** * 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)); }
@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)); } }
@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)); } }
@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 gossiperStarting() { super.gossiperStarting(); Gossiper.instance.addLocalApplicationState(ApplicationState.INTERNAL_IP, StorageService.instance.valueFactory.internalIP(localPrivateAddress)); Gossiper.instance.register(new ReconnectableSnitchHelper(this, ec2region, true)); } }