Package com.tailf.conf
Class ConfHaNode
Object
com.tailf.conf.ConfHaNode
ConfHaNode represents a HA node by identity and IP address
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAddr()Get the IP address for the node as ConfIPv4 or ConfIPv6Get the nodeid which is the identity of the HA nodestatic ConfEObjectpack_ha_node(ConfHaNode node) Encodes a ConfHaNode into a ConfEObject to be transported by the protocol.toString()static ConfHaNodeunpack_ha_node(ConfEObject term) Decodes a ConfEObject into a ConfHaNode.
-
Constructor Details
-
ConfHaNode
Constructor for a HA node- Parameters:
nodeid- ConfValue carrying the identity of the HA nodeaddr- IP address for the node as ConfIPv4 or ConfIPv6
-
-
Method Details
-
getNodeId
Get the nodeid which is the identity of the HA node- Returns:
- ConfValue nodeid
-
getAddr
Get the IP address for the node as ConfIPv4 or ConfIPv6- Returns:
- ConfValue which is either ConfIPv4 or ConfIPv6
-
unpack_ha_node
Decodes a ConfEObject into a ConfHaNode. This method is used internally by the api.- Parameters:
term-- Returns:
- ConfHaNode
- Throws:
ConfException
-
pack_ha_node
Encodes a ConfHaNode into a ConfEObject to be transported by the protocol. This method is used internally by the api.- Parameters:
node-- Returns:
- ConfEObject
-
toString
-