Class NodeModel

    • Constructor Detail

      • NodeModel

        @Deprecated(since="8.6.0",
                    forRemoval=true)
        public NodeModel​(String id,
                         String address)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Use NodeModel(String, String, String) instead. The physical address is now required to be set for a node. This constructor will be currently set the physical address to the logical address, but this will be removed in a future version.
        Creates a new model for a node in the cluster with the given initial data.
        Parameters:
        id - ID of the node that cannot be changed.
        address - Address of the node.
      • NodeModel

        public NodeModel​(String id,
                         String address,
                         String physicalAddress)
        Creates a new model for a node in the cluster with the given initial data.
        Parameters:
        id - ID of the node that cannot be changed.
        address - Address of the node.
        physicalAddress - Physical address of the node.
      • NodeModel

        public NodeModel​(String id)
    • Method Detail

      • getID

        public String getID()
        Returns:
        The ID of this node.
      • getAddress

        public String getAddress()
      • getPhysicalAddress

        public String getPhysicalAddress()
      • getTimeStamp

        public Date getTimeStamp()
      • setAddress

        public void setAddress​(String address)
      • setPhysicalAddress

        public void setPhysicalAddress​(String physicalAddress)
      • setTimeStamp

        public void setTimeStamp​(Date timeStamp)
      • setState

        public void setState​(ENodeState state)
      • setType

        public void setType​(ENodeType type)
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object