public final class Node extends Object implements Serializable
Constructor and Description |
---|
Node(Host host,
boolean isLocal)
Creates a new cluster node.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Host |
getHost()
Gets the host.
|
int |
hashCode() |
boolean |
isLocal()
Returns
true if this is the local node, false
otherwise. |
String |
toString() |
public Node(Host host, boolean isLocal)
host
- host this node representsisLocal
- true
if this nodes represents the local instancepublic Host getHost()
public boolean isLocal()
true
if this is the local node, false
otherwise.true
if this is the local node, false
otherwiseCopyright © 2016. All Rights Reserved.