Class SystemId

java.lang.Object
io.nosqlbench.nb.api.metadata.SystemId

public class SystemId
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    SystemId()  
  • Method Summary

    Modifier and Type Method Description
    static java.lang.String getHostSummary()  
    static java.lang.String getNodeFingerprint()
    Produce a stable string identifier consisting of hexadecimal characters.
    static java.lang.String getNodeId()
    Return the address of a node which is likely to be unique enough to identify it within a given subnet, after filtering out all local addresses.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getNodeId

      public static java.lang.String getNodeId()
      Return the address of a node which is likely to be unique enough to identify it within a given subnet, after filtering out all local addresses. This is useful when you are managing configuration or results for a set of systems which share a common IP addressing scheme. This identifier should be stable as long as the node's addresses do not change. If you are needing an identifier for a node but wish to expose any address data, you can use the getNodeFingerprint() which takes this value and hashes it with SHA-1 to produce a hex string.
      Returns:
      A address for the node, likely to be unique and stable for its lifetime
    • getNodeFingerprint

      public static java.lang.String getNodeFingerprint()
      Produce a stable string identifier consisting of hexadecimal characters. The internal data used for this value is based on a stable ordering of non-local ip addresses available on the system.
      Returns:
      A stable node identifier
    • getHostSummary

      public static java.lang.String getHostSummary()