com.netflix.astyanax.shallows
Class EmptyNodeDiscoveryImpl

java.lang.Object
  extended by com.netflix.astyanax.shallows.EmptyNodeDiscoveryImpl
All Implemented Interfaces:
NodeDiscovery

public class EmptyNodeDiscoveryImpl
extends java.lang.Object
implements NodeDiscovery


Method Summary
static EmptyNodeDiscoveryImpl get()
           
 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
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

get

public static EmptyNodeDiscoveryImpl get()

start

public void start()
Description copied from interface: NodeDiscovery
Start the node discovery thread

Specified by:
start in interface NodeDiscovery

shutdown

public void shutdown()
Description copied from interface: NodeDiscovery
Stop the node discovery thread

Specified by:
shutdown in interface NodeDiscovery

getLastRefreshTime

public org.joda.time.DateTime getLastRefreshTime()
Specified by:
getLastRefreshTime in interface NodeDiscovery
Returns:
Get the last refresh time in the discovery thread

getRefreshCount

public long getRefreshCount()
Specified by:
getRefreshCount in interface NodeDiscovery
Returns:
Get the number of refreshes

getErrorCount

public long getErrorCount()
Specified by:
getErrorCount in interface NodeDiscovery
Returns:
Get total number of errors encountered during a refresh

getLastException

public java.lang.Exception getLastException()
Specified by:
getLastException in interface NodeDiscovery
Returns:
Get the last exception that was encountered

getRawHostList

public java.lang.String getRawHostList()
Specified by:
getRawHostList in interface NodeDiscovery
Returns:
Get the raw list of nodes from the underlying refresh mechanism

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object