public class Host extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
Host.HealthMonitor
Tracks the health of a node and notify listeners when a host is considered up or down.
|
static interface |
Host.StateListener
Interface for listeners that are interested in hosts added, up, down and
removed events.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
InetAddress |
getAddress()
Returns the node address.
|
String |
getDatacenter()
Returns the name of the datacenter this host is part of.
|
Host.HealthMonitor |
getMonitor()
Returns the health monitor for this host.
|
String |
getRack()
Returns the name of the rack this host is part of.
|
int |
hashCode() |
String |
toString() |
public InetAddress getAddress()
InetAddress.public String getDatacenter()
null, and the caller should always be aware
of this possibility.public String getRack()
null, and the caller should always aware of this
possibility.public Host.HealthMonitor getMonitor()
Host.StateListener can also register against
the health monitor to be notified when this node is detected to be up or downHost.HealthMonitor.Copyright © 2013. All Rights Reserved.