Package io.nosqlbench.nb.api.metadata
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.StringgetHostSummary()static java.lang.StringgetNodeFingerprint()Produce a stable string identifier consisting of hexadecimal characters.static java.lang.StringgetNodeId()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.
-
Constructor Details
-
SystemId
public SystemId()
-
-
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 thegetNodeFingerprint()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()
-