List of usage examples for org.apache.cassandra.gms ApplicationState INTERNAL_IP
ApplicationState INTERNAL_IP
To view the source code for org.apache.cassandra.gms ApplicationState INTERNAL_IP.
Click Source Link
From source file:brooklyn.entity.nosql.cassandra.customsnitch.MultiCloudSnitch.java
License:Apache License
public void onJoin(InetAddress endpoint, EndpointState epState) { if (epState.getApplicationState(ApplicationState.INTERNAL_IP) != null) reConnect(endpoint, epState.getApplicationState(ApplicationState.INTERNAL_IP)); }
From source file:brooklyn.entity.nosql.cassandra.customsnitch.MultiCloudSnitch.java
License:Apache License
public void onChange(InetAddress endpoint, ApplicationState state, VersionedValue value) { if (state == ApplicationState.INTERNAL_IP) reConnect(endpoint, value); }
From source file:brooklyn.entity.nosql.cassandra.customsnitch.MultiCloudSnitch.java
License:Apache License
public void onAlive(InetAddress endpoint, EndpointState state) { if (state.getApplicationState(ApplicationState.INTERNAL_IP) != null) reConnect(endpoint, state.getApplicationState(ApplicationState.INTERNAL_IP)); }
From source file:brooklyn.entity.nosql.cassandra.customsnitch.MultiCloudSnitch.java
License:Apache License
@Override public void gossiperStarting() { super.gossiperStarting(); Gossiper.instance.addLocalApplicationState(ApplicationState.INTERNAL_IP, StorageService.instance.valueFactory.internalIP(private_ip)); Gossiper.instance.register(this); }