Example usage for org.apache.cassandra.gms ApplicationState TOKENS

List of usage examples for org.apache.cassandra.gms ApplicationState TOKENS

Introduction

In this page you can find the example usage for org.apache.cassandra.gms ApplicationState TOKENS.

Prototype

ApplicationState TOKENS

To view the source code for org.apache.cassandra.gms ApplicationState TOKENS.

Click Source Link

Usage

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
}