Class NodeId

java.lang.Object
org.graylog2.plugin.system.NodeId

public class NodeId extends Object
  • Constructor Details

    • NodeId

      public NodeId(String filename)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toEscapedString

      public String toEscapedString()
    • toUnescapedString

      public String toUnescapedString()
    • 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()