Class SystemId

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

public class SystemId extends Object
  • Constructor Details

    • SystemId

      public SystemId()
  • Method Details

    • getNodeId

      public static 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 do not with 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 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 String getHostSummary()
    • getBrailleNodeId

      public static String getBrailleNodeId()
    • genSessionCode

      public static String genSessionCode(long epochMillis)
    • genSessionAndNodeCode

      public static String genSessionAndNodeCode(long epochMillis)
    • getPackedNodeId

      public static String getPackedNodeId()
    • packLong

      public static String packLong(long bitfield)
    • genSessionBits

      public static String genSessionBits()