Package org.apache.cassandra.thrift.Cassandra

Examples of org.apache.cassandra.thrift.Cassandra.Client.describe_ring()


    // Check the system keyspace
    boolean isSystem = cassandraService.isSystemKeyspace(keyspaceName);
    if (isSystem) {
      model.put("system", true);
    } else {
      List<TokenRange> tokenRange = client.describe_ring(keyspaceName);
      Collections.sort(tokenRange);
      model.put("tokenRanges", tokenRange);
    }
   
    return "/keyspace";
View Full Code Here


    public List<TokenRange> getRangeMap(String keyspace)
    {
        Client client = connectionFactory.create();
        try {
            return client.describe_ring(keyspace);
        }
        catch (TException e) {
            throw new RuntimeException(e);
        }
        finally {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.