Class NodeId

java.lang.Object
org.graylog2.plugin.system.NodeId
Direct Known Subclasses:
SimpleNodeId

public abstract class NodeId extends Object
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 Details

    • NodeId

      public NodeId()
  • Method Details

    • getNodeId

      public abstract String getNodeId()
      Returns:
      The server expects UUID style of node id.
      See Also:
    • toEscapedString

      public String toEscapedString()
    • toUnescapedString

      @Deprecated public String toUnescapedString()
      Deprecated.
      Is it used somewhere in integrations? Should we remove it in 6.0?
    • anonymize

      public String 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

      public String getShortNodeId()