public interface

NodeDiscovery

com.netflix.astyanax.connectionpool.NodeDiscovery
Known Indirect Subclasses

Class Overview

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

Summary

Public Methods
abstract long getErrorCount()
Get total number of errors encountered during a refresh
abstract Exception getLastException()
Get the last exception that was encountered
abstract DateTime getLastRefreshTime()
Get the last refresh time in the discovery thread
abstract String getRawHostList()
Get the raw list of nodes from the underlying refresh mechanism
abstract long getRefreshCount()
Get the number of refreshes
abstract void shutdown()
Stop the node discovery thread
abstract void start()
Start the node discovery thread

Public Methods

public abstract long getErrorCount ()

Get total number of errors encountered during a refresh

public abstract Exception getLastException ()

Get the last exception that was encountered

public abstract DateTime getLastRefreshTime ()

Get the last refresh time in the discovery thread

public abstract String getRawHostList ()

Get the raw list of nodes from the underlying refresh mechanism

public abstract long getRefreshCount ()

Get the number of refreshes

public abstract void shutdown ()

Stop the node discovery thread

public abstract void start ()

Start the node discovery thread