Class ClusterNode
- java.lang.Object
-
- com.insightful.splusserver.domain.cluster.ClusterNode
-
- Direct Known Subclasses:
ClusterNodeDetails
public class ClusterNode extends java.lang.Object
This class represents a single element in the list returned by the server.- Author:
- TIBCO
- See Also:
ClusterNodeList
-
-
Constructor Summary
Constructors Constructor Description ClusterNode()
Creates a newClusterNode
.ClusterNode(java.lang.String nodeName, NodeType nodeType, NodeState nodeState)
Creates a newClusterNode
from the node name, node type, and node state.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
ClusterNode
public ClusterNode(java.lang.String nodeName, NodeType nodeType, NodeState nodeState)
Creates a newClusterNode
from the node name, node type, and node state.- Parameters:
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.- See Also:
ClusterNodeList
-
ClusterNode
public ClusterNode()
Creates a newClusterNode
.- See Also:
ClusterNodeList
-
-
Method Detail
-
getNodeName
public java.lang.String getNodeName()
Retrieves the name of the node.- Returns:
- A string containing the name of the node.
- See Also:
ClusterNodeList
-
setNodeName
public void setNodeName(java.lang.String nodeName)
Sets the name of the node.- Parameters:
nodeName
- The name of the node.- See Also:
ClusterNodeList
-
getNodeType
public NodeType getNodeType()
Retrieves the type of the node. Can be Manager or Worker.- Returns:
- A string containing the type of node.
- See Also:
ClusterNodeList
-
setNodeType
public void setNodeType(NodeType nodeType)
Sets the type of node.- Parameters:
nodeType
- The type of node. Can be Manager or Worker.- See Also:
ClusterNodeList
-
getNodeState
public NodeState getNodeState()
Retrieves the type of the node. Can be Started or Stopped.- Returns:
- A string containing the type of node.
- See Also:
ClusterNodeList
-
setNodeState
public void setNodeState(NodeState nodeState)
Sets the state of the node.- Parameters:
nodeState
- The state of the node. Can be Started or Stopped.- See Also:
ClusterNodeList
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-