Class NodeAttributes
java.lang.Object
org.elasticsearch.client.transform.transforms.NodeAttributes
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentObject
public class NodeAttributes
extends java.lang.Object
implements org.elasticsearch.common.xcontent.ToXContentObject
A Pojo class containing an Elastic Node's attributes
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params
-
Field Summary
Fields Modifier and Type Field Description static org.elasticsearch.common.ParseField
ATTRIBUTES
static org.elasticsearch.common.ParseField
EPHEMERAL_ID
static org.elasticsearch.common.ParseField
ID
static org.elasticsearch.common.ParseField
NAME
static org.elasticsearch.common.xcontent.ConstructingObjectParser<NodeAttributes,java.lang.Void>
PARSER
static org.elasticsearch.common.ParseField
TRANSPORT_ADDRESS
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
Constructors Constructor Description 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 Summary
Modifier and Type Method Description boolean
equals(java.lang.Object other)
java.util.Map<java.lang.String,java.lang.String>
getAttributes()
Additional attributes related to this nodejava.lang.String
getEphemeralId()
The ephemeral id of the node.java.lang.String
getId()
The unique identifier of the node.java.lang.String
getName()
The node name.java.lang.String
getTransportAddress()
The host and port where transport HTTP connections are accepted.int
hashCode()
java.lang.String
toString()
org.elasticsearch.common.xcontent.XContentBuilder
toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
Field Details
-
ID
public static final org.elasticsearch.common.ParseField ID -
NAME
public static final org.elasticsearch.common.ParseField NAME -
EPHEMERAL_ID
public static final org.elasticsearch.common.ParseField EPHEMERAL_ID -
TRANSPORT_ADDRESS
public static final org.elasticsearch.common.ParseField TRANSPORT_ADDRESS -
ATTRIBUTES
public static final org.elasticsearch.common.ParseField ATTRIBUTES -
PARSER
public static final org.elasticsearch.common.xcontent.ConstructingObjectParser<NodeAttributes,java.lang.Void> PARSER
-
-
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 -
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- Specified by:
toXContent
in interfaceorg.elasticsearch.common.xcontent.ToXContent
- Throws:
java.io.IOException
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-