|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.datastax.driver.core.Host
public class Host
A Cassandra node. This class keeps the information the driver maintain on a given Cassandra node.
Nested Class Summary | |
---|---|
static interface |
Host.StateListener
Interface for listeners that are interested in hosts added, up, down and removed events. |
Method Summary | |
---|---|
boolean |
equals(Object o)
|
InetAddress |
getAddress()
Returns the node address. |
String |
getDatacenter()
Returns the name of the datacenter this host is part of. |
String |
getRack()
Returns the name of the rack this host is part of. |
int |
hashCode()
|
boolean |
isUp()
Returns whether the host is considered up by the driver. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
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 boolean isUp()
public final int hashCode()
hashCode
in class Object
public final boolean equals(Object o)
equals
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |