java.lang.Object
org.elasticsearch.xpack.core.transform.transforms.NodeAttributes
All Implemented Interfaces:
Writeable, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject

public class NodeAttributes extends Object implements org.elasticsearch.xcontent.ToXContentObject, Writeable
A Pojo class containing an Elastic Node's attributes
  • Field Details

    • ID

      public static final org.elasticsearch.xcontent.ParseField ID
    • NAME

      public static final org.elasticsearch.xcontent.ParseField NAME
    • EPHEMERAL_ID

      public static final org.elasticsearch.xcontent.ParseField EPHEMERAL_ID
    • TRANSPORT_ADDRESS

      public static final org.elasticsearch.xcontent.ParseField TRANSPORT_ADDRESS
    • ATTRIBUTES

      public static final org.elasticsearch.xcontent.ParseField ATTRIBUTES
    • PARSER

      public static final org.elasticsearch.xcontent.ConstructingObjectParser<NodeAttributes,Void> PARSER
  • Constructor Details

  • Method Details

    • fromDiscoveryNode

      public static NodeAttributes fromDiscoveryNode(DiscoveryNode node)
    • getId

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

      public String getName()
      The node name.
    • getEphemeralId

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

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

      public Map<String,String> getAttributes()
    • toXContent

      public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.xcontent.ToXContent
      Throws:
      IOException
    • hashCode

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

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • toString

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

      public void writeTo(StreamOutput out) throws IOException
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException