Class NodeInfo

java.lang.Object
io.airlift.node.NodeInfo

public class NodeInfo extends Object
  • Constructor Details

  • Method Details

    • getEnvironment

      public String getEnvironment()
      The environment in which this server is running.
    • getPool

      public String getPool()
      The pool of which this server is a member.
    • getNodeId

      public String getNodeId()
      The unique id of the deployment slot in which this binary is running. This id should represents the physical deployment location and should not change.
    • getLocation

      public String getLocation()
      Location of this JavaVM.
    • getBinarySpec

      public String getBinarySpec()
      Binary this JavaVM is running.
    • getConfigSpec

      public String getConfigSpec()
      Configuration this JavaVM is running.
    • getInstanceId

      public String getInstanceId()
      The unique id of this JavaVM instance. This id will change every time the vm is restarted.
    • getInternalAddress

      public String getInternalAddress()
      The internal network address the server should use when announcing its location to other machines. This address should available to all machines within the environment, but may not be globally routable. If this is not set, the following algorithm is used to choose the public address:

      1. InetAddress.getLocalHost() if good IPv4
      2. First good IPv4 address of an up network interface
      3. First good IPv6 address of an up network interface
      4. InetAddress.getLocalHost()
      An address is considered good if it is not a loopback address, a multicast address, or an any-local-address address.
    • getExternalAddress

      public String getExternalAddress()
      The address to use when contacting this server from an external network. If possible, ip address should be globally routable. The address is returned as a string because the name may not be resolvable from the local machine.

      If this is not set, the internal address is used.

    • getBindIp

      public InetAddress getBindIp()
      The IP address the server should use when binding a server socket.

      If this is not set, this will be the IPv4 any local address (e.g., 0.0.0.0).

    • getStartTime

      public long getStartTime()
      The time this server was started.
    • toString

      public String toString()
      Overrides:
      toString in class Object