com.netflix.astyanax.impl
Class RingDescribeHostSupplier

java.lang.Object
  extended by com.netflix.astyanax.impl.RingDescribeHostSupplier
All Implemented Interfaces:
com.google.common.base.Supplier<java.util.List<com.netflix.astyanax.connectionpool.Host>>

public class RingDescribeHostSupplier
extends java.lang.Object
implements com.google.common.base.Supplier<java.util.List<com.netflix.astyanax.connectionpool.Host>>

HostSupplier that uses existing hosts in the connection pool to execute a ring describe and get the entire list of hosts and their tokens from Cassandra.


Constructor Summary
RingDescribeHostSupplier(Keyspace keyspace, int defaultPort)
           
RingDescribeHostSupplier(Keyspace keyspace, int defaultPort, java.lang.String dc)
           
RingDescribeHostSupplier(Keyspace keyspace, int defaultPort, java.lang.String dc, java.lang.String rack)
           
 
Method Summary
 java.util.List<com.netflix.astyanax.connectionpool.Host> get()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RingDescribeHostSupplier

public RingDescribeHostSupplier(Keyspace keyspace,
                                int defaultPort,
                                java.lang.String dc,
                                java.lang.String rack)

RingDescribeHostSupplier

public RingDescribeHostSupplier(Keyspace keyspace,
                                int defaultPort,
                                java.lang.String dc)

RingDescribeHostSupplier

public RingDescribeHostSupplier(Keyspace keyspace,
                                int defaultPort)
Method Detail

get

public java.util.List<com.netflix.astyanax.connectionpool.Host> get()
Specified by:
get in interface com.google.common.base.Supplier<java.util.List<com.netflix.astyanax.connectionpool.Host>>