Class ConfHaNode

Object
com.tailf.conf.ConfHaNode

public class ConfHaNode extends Object
ConfHaNode represents a HA node by identity and IP address
  • Constructor Details

    • ConfHaNode

      public ConfHaNode(ConfValue nodeid, ConfValue addr)
      Constructor for a HA node
      Parameters:
      nodeid - ConfValue carrying the identity of the HA node
      addr - IP address for the node as ConfIPv4 or ConfIPv6
  • Method Details

    • getNodeId

      public ConfValue getNodeId()
      Get the nodeid which is the identity of the HA node
      Returns:
      ConfValue nodeid
    • getAddr

      public ConfValue getAddr()
      Get the IP address for the node as ConfIPv4 or ConfIPv6
      Returns:
      ConfValue which is either ConfIPv4 or ConfIPv6
    • unpack_ha_node

      public static ConfHaNode unpack_ha_node(ConfEObject term) throws ConfException
      Decodes a ConfEObject into a ConfHaNode. This method is used internally by the api.
      Parameters:
      term -
      Returns:
      ConfHaNode
      Throws:
      ConfException
    • pack_ha_node

      public static ConfEObject pack_ha_node(ConfHaNode 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

      public String toString()
      Overrides:
      toString in class Object