Examples of describe_ring()


Examples of com.netflix.jmeter.utils.CClient.describe_ring()

        try
        {
            CClient client = CClient.getClient(endpoints.iterator().next(), port);
            client.set_keyspace(Properties.instance.cassandra.getKeyspace());
            // get the nodes in the ring.
            List<TokenRange> lt = client.describe_ring(getKeyspaceName());
            Set<String> temp = Sets.newHashSet();
            for (TokenRange range : lt)
                temp.addAll(range.endpoints);
            endpoints = temp;
            // TODO: filter out the nodes in the other region.
View Full Code Here

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

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

    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.