|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.netflix.astyanax.connectionpool.impl.NodeDiscoveryImpl
CL
- public class NodeDiscoveryImpl
Re-discover the ring on a fixed interval to identify new nodes or changes to the ring tokens.
Constructor Summary | |
---|---|
NodeDiscoveryImpl(String name,
int interval,
com.google.common.base.Supplier<Map<BigInteger,List<Host>>> tokenRangeSupplier,
ConnectionPool<?> connectionPool)
|
Method Summary | |
---|---|
long |
getErrorCount()
Get total number of errors encountered during a refresh |
Exception |
getLastException()
Get the last exception that was encountered |
org.joda.time.DateTime |
getLastRefreshTime()
Get the last refresh time in the discovery thread |
String |
getRawHostList()
Get the raw list of nodes from the underlying refresh mechanism |
long |
getRefreshCount()
Get the number of refreshes |
void |
shutdown()
Stop the node discovery thread |
void |
start()
Start the node discovery thread |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NodeDiscoveryImpl(String name, int interval, com.google.common.base.Supplier<Map<BigInteger,List<Host>>> tokenRangeSupplier, ConnectionPool<?> connectionPool)
Method Detail |
---|
public void start()
NodeDiscovery
start
in interface NodeDiscovery
public void shutdown()
NodeDiscovery
shutdown
in interface NodeDiscovery
public org.joda.time.DateTime getLastRefreshTime()
NodeDiscovery
getLastRefreshTime
in interface NodeDiscovery
public long getRefreshCount()
NodeDiscovery
getRefreshCount
in interface NodeDiscovery
public Exception getLastException()
NodeDiscovery
getLastException
in interface NodeDiscovery
public long getErrorCount()
NodeDiscovery
getErrorCount
in interface NodeDiscovery
public String getRawHostList()
NodeDiscovery
getRawHostList
in interface NodeDiscovery
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |