Class NodeAttributes

java.lang.Object
org.elasticsearch.client.ml.NodeAttributes
All Implemented Interfaces:
ToXContent, ToXContentObject

public class NodeAttributes
extends java.lang.Object
implements ToXContentObject
A Pojo class containing an Elastic Node's attributes
  • Field Details

  • Constructor Details

    • NodeAttributes

      public NodeAttributes​(java.lang.String id, java.lang.String name, java.lang.String ephemeralId, java.lang.String transportAddress, java.util.Map<java.lang.String,​java.lang.String> attributes)
  • Method Details

    • getId

      public java.lang.String getId()
      The unique identifier of the node.
    • getName

      public java.lang.String getName()
      The node name.
    • getEphemeralId

      public java.lang.String getEphemeralId()
      The ephemeral id of the node.
    • getTransportAddress

      public java.lang.String getTransportAddress()
      The host and port where transport HTTP connections are accepted.
    • getAttributes

      public java.util.Map<java.lang.String,​java.lang.String> getAttributes()
      Additional attributes related to this node e.g., {"ml.max_open_jobs": "10"}.
    • toXContent

      public XContentBuilder toXContent​(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
      Specified by:
      toXContent in interface ToXContent
      Throws:
      java.io.IOException
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • equals

      public boolean equals​(java.lang.Object other)
      Overrides:
      equals in class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object