Class DefaultNodeInfo

java.lang.Object
com.couchbase.client.core.config.DefaultNodeInfo
All Implemented Interfaces:
NodeInfo

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

  • Method Details

    • 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.
    • alternateAddresses

      public Map<String,​AlternateAddress> alternateAddresses()
      Description copied from interface: NodeInfo
      Contains alternate addresses, if set.
      Specified by:
      alternateAddresses in interface NodeInfo
      Returns:
      a map containing alternate addresses.
    • 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.
    • toString

      public String toString()
      Overrides:
      toString in class Object