com.netflix.astyanax.connectionpool
Interface NodeDiscovery

All Known Implementing Classes:
EmptyNodeDiscoveryImpl, NodeDiscoveryImpl

public interface NodeDiscovery

Interface for a module that periodically updates the nodes in a connection pool.


Method Summary
 long getErrorCount()
           
 java.lang.Exception getLastException()
           
 org.joda.time.DateTime getLastRefreshTime()
           
 java.lang.String getRawHostList()
           
 long getRefreshCount()
           
 void shutdown()
          Stop the node discovery thread
 void start()
          Start the node discovery thread
 

Method Detail

start

void start()
Start the node discovery thread


shutdown

void shutdown()
Stop the node discovery thread


getLastRefreshTime

org.joda.time.DateTime getLastRefreshTime()
Returns:
Get the last refresh time in the discovery thread

getRefreshCount

long getRefreshCount()
Returns:
Get the number of refreshes

getErrorCount

long getErrorCount()
Returns:
Get total number of errors encountered during a refresh

getLastException

java.lang.Exception getLastException()
Returns:
Get the last exception that was encountered

getRawHostList

java.lang.String getRawHostList()
Returns:
Get the raw list of nodes from the underlying refresh mechanism