Class DefaultNodeInfo

  • All Implemented Interfaces:
    NodeInfo

    public class DefaultNodeInfo
    extends Object
    implements NodeInfo
    Default implementation of NodeInfo.
    Since:
    1.0
    Author:
    Michael Nitschinger
    • Method Detail

      • hostname

        public String hostname()
        Description copied from interface: NodeInfo
        The inet address of the node.
        Specified by:
        hostname in interface NodeInfo
        Returns:
        the host address.
      • services

        public Map<ServiceType,​Integer> services()
        Description copied from interface: NodeInfo
        The exposed non-ssl services.
        Specified by:
        services in interface NodeInfo
        Returns:
        a map containing all services with ports.
      • sslServices

        public Map<ServiceType,​Integer> sslServices()
        Description copied from interface: NodeInfo
        The exposed ssl services.
        Specified by:
        sslServices in interface NodeInfo
        Returns:
        a map containing all services with secured ports.
      • useAlternateNetwork

        public String useAlternateNetwork()
        Description copied from interface: NodeInfo
        True if alternate addresses should be used, false otherwise.
        Specified by:
        useAlternateNetwork in interface NodeInfo
      • useAlternateNetwork

        public void useAlternateNetwork​(String useAlternateNetwork)
        Description copied from interface: NodeInfo
        Setter to set if external networking should be used or not.
        Specified by:
        useAlternateNetwork in interface NodeInfo
        Parameters:
        useAlternateNetwork - if not null will be used.