Class 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 Detail

      • ClusterNode

        public ClusterNode​(java.lang.String nodeName,
                           NodeType nodeType,
                           NodeState nodeState)
        Creates a new ClusterNode 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 new ClusterNode.
        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 class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object