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.

Author:
elandau

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
 

Method Detail

start

void start()
Start the node discovery thread


shutdown

void shutdown()
Stop the node discovery thread


getLastRefreshTime

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

Returns:

getRefreshCount

long getRefreshCount()
Get the number of refreshes

Returns:

getErrorCount

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

Returns:

getLastException

Exception getLastException()
Get the last exception that was encountered

Returns:

getRawHostList

String getRawHostList()
Get the raw list of nodes from the underlying refresh mechanism

Returns:


Copyright © 2012. All Rights Reserved.