public class

NodeDiscoveryImpl

extends Object
implements NodeDiscovery
java.lang.Object
   ↳ com.netflix.astyanax.connectionpool.impl.NodeDiscoveryImpl

Class Overview

Re-discover the ring on a fixed interval to identify new nodes or changes to the ring tokens.

Summary

Public Constructors
NodeDiscoveryImpl(String name, int interval, tokenRangeSupplier, ConnectionPool<?> connectionPool)
Public Methods
long getErrorCount()
Get total number of errors encountered during a refresh
Exception getLastException()
Get the last exception that was encountered
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
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.netflix.astyanax.connectionpool.NodeDiscovery

Public Constructors

public NodeDiscoveryImpl (String name, int interval, tokenRangeSupplier, ConnectionPool<?> connectionPool)

Public Methods

public long getErrorCount ()

Get total number of errors encountered during a refresh

public Exception getLastException ()

Get the last exception that was encountered

public DateTime getLastRefreshTime ()

Get the last refresh time in the discovery thread

public String getRawHostList ()

Get the raw list of nodes from the underlying refresh mechanism

public long getRefreshCount ()

Get the number of refreshes

public void shutdown ()

Stop the node discovery thread

public void start ()

Start the node discovery thread