net.dataforte.cassandra.pool
Class CassandraRing
java.lang.Object
net.dataforte.cassandra.pool.CassandraRing
public class CassandraRing
- extends Object
Represents the Cassandra ring (all of the hosts in the cluster)
- Author:
- Tristan Tarrant
CassandraRing
public CassandraRing(String[] hosts)
CassandraRing
public CassandraRing(String[] hosts,
HostCyclePolicy policy)
refresh
public void refresh(org.apache.cassandra.thrift.Cassandra.Iface connection)
throws org.apache.thrift.TException,
org.apache.cassandra.thrift.InvalidRequestException
- Throws:
org.apache.thrift.TException
org.apache.cassandra.thrift.InvalidRequestException
getHosts
public List<CassandraHost> getHosts()
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2011. All Rights Reserved.