List of usage examples for org.apache.cassandra.gms ApplicationState TOKENS
ApplicationState TOKENS
To view the source code for org.apache.cassandra.gms ApplicationState TOKENS.
Click Source Link
From source file:com.tuplejump.stargate.Stargate.java
License:Apache License
@Override public void onChange(InetAddress endpoint, ApplicationState state, VersionedValue value) { if (state == ApplicationState.TOKENS && FBUtilities.getBroadcastAddress().equals(endpoint)) { indexingService.updateAllIndexers(); if (!indexEventSubscriber.started.get()) indexEventSubscriber.start(); }//from w ww. java 2 s.c om }