Package com.tccc.kos.commons.util
Class NodeId
java.lang.Object
com.tccc.kos.commons.util.NodeId
A nodeId is the combination of a node type and node name. This class
allows a nodeId to be created from the constituent parts or from a
string representation of a nodeId.
- Since:
- 1.0
- Version:
- 2022-08-30
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Return a hostname representation of the nodeId.getId()
Return the id which is the composition of the nodeType and nodeName.int
hashCode()
void
void
setNodeName
(String nodeName) void
setNodeType
(String nodeType) toString()
-
Constructor Details
-
NodeId
-
NodeId
-
-
Method Details
-
getId
Return the id which is the composition of the nodeType and nodeName. This is equivalent totoString()
. -
getHostname
Return a hostname representation of the nodeId. kOS will write node hostnames for nodes into /etc/hosts files allowing name resolution based on this hostname. -
toString
-
getNodeType
-
getNodeName
-
setNodeType
-
setNodeName
-
setId
-
equals
-
hashCode
public int hashCode()
-