public class ClusterNode
extends java.lang.Object
ClusterNodeList
Constructor and Description |
---|
ClusterNode()
Creates a new
ClusterNode . |
ClusterNode(java.lang.String nodeName,
NodeType nodeType,
NodeState nodeState)
Creates a new
ClusterNode from the node name, node type, and
node state. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getNodeName()
Retrieves the name of the node.
|
NodeState |
getNodeState()
Retrieves the type of the node.
|
NodeType |
getNodeType()
Retrieves the type of the node.
|
int |
hashCode() |
void |
setNodeName(java.lang.String nodeName)
Sets the name of the node.
|
void |
setNodeState(NodeState nodeState)
Sets the state of the node.
|
void |
setNodeType(NodeType nodeType)
Sets the type of node.
|
public ClusterNode(java.lang.String nodeName, NodeType nodeType, NodeState nodeState)
ClusterNode
from the node name, node type, and
node state.nodeName
- The name of the node.nodeType
- The type of node. Can be Manager or Worker.nodeState
- The state of the node. Can be Started or Stopped.ClusterNodeList
public ClusterNode()
ClusterNode
.ClusterNodeList
public java.lang.String getNodeName()
ClusterNodeList
public void setNodeName(java.lang.String nodeName)
nodeName
- The name of the node.ClusterNodeList
public NodeType getNodeType()
ClusterNodeList
public void setNodeType(NodeType nodeType)
nodeType
- The type of node. Can be Manager or Worker.ClusterNodeList
public NodeState getNodeState()
ClusterNodeList
public void setNodeState(NodeState nodeState)
nodeState
- The state of the node. Can be Started or Stopped.ClusterNodeList
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object