Class SystemId
java.lang.Object
io.nosqlbench.nb.api.metadata.SystemId
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgenSessionAndNodeCode(long epochMillis) static Stringstatic StringgenSessionCode(long epochMillis) static Stringstatic Stringstatic StringProduce a stable string identifier consisting of hexadecimal characters.static StringReturn 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.static Stringstatic StringpackLong(long bitfield)
-
Constructor Details
-
SystemId
public SystemId()
-
-
Method Details
-
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
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
-
getBrailleNodeId
-
genSessionCode
-
genSessionAndNodeCode
-
getPackedNodeId
-
packLong
-
genSessionBits
-