Package org.graylog2.plugin.system
Class NodeId
java.lang.Object
org.graylog2.plugin.system.NodeId
- Direct Known Subclasses:
SimpleNodeId
This should be an interface. But we need to persist the backwards compatibility with all 5.x releases and keep it a class
Please change to an interface for the 6.0 release.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGenerate an "anonymized" node ID for use with external services.abstract String
Deprecated.
-
Constructor Details
-
NodeId
public NodeId()
-
-
Method Details
-
getNodeId
- Returns:
- The server expects UUID style of node id.
- See Also:
-
toEscapedString
-
toUnescapedString
Deprecated.Is it used somewhere in integrations? Should we remove it in 6.0? -
anonymize
Generate an "anonymized" node ID for use with external services. Currently it just hashes the actual node ID using SHA-256.- Returns:
- The anonymized ID derived from hashing the node ID.
-
getShortNodeId
-