|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.datastax.driver.core.Host.HealthMonitor
public class Host.HealthMonitor
Tracks the health of a node and notify listeners when a host is considered up or down.
Method Summary | |
---|---|
boolean |
isUp()
Returns whether the host is considered up by this monitor. |
void |
register(Host.StateListener listener)
Register the provided listener to be notified on up/down events. |
void |
unregister(Host.StateListener listener)
Unregister a given provided listener. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void register(Host.StateListener listener)
listener
- the new Host.StateListener
to register.public void unregister(Host.StateListener listener)
listener
hadn't previously be
registered against this monitor.
listener
- the Host.StateListener
to unregister.public boolean isUp()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |