Package org.elasticsearch.client.ml
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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
-
Field Summary
Fields Modifier and Type Field Description static ParseFieldATTRIBUTESstatic ParseFieldEPHEMERAL_IDstatic ParseFieldIDstatic ParseFieldNAMEstatic ConstructingObjectParser<NodeAttributes,java.lang.Void>PARSERstatic ParseFieldTRANSPORT_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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)java.util.Map<java.lang.String,java.lang.String>getAttributes()Additional attributes related to this node e.g., {"ml.max_open_jobs": "10"}.java.lang.StringgetEphemeralId()The ephemeral id of the node.java.lang.StringgetId()The unique identifier of the node.java.lang.StringgetName()The node name.java.lang.StringgetTransportAddress()The host and port where transport HTTP connections are accepted.inthashCode()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
-
-
-
Field Detail
-
ID
public static final ParseField ID
-
NAME
public static final ParseField NAME
-
EPHEMERAL_ID
public static final ParseField EPHEMERAL_ID
-
TRANSPORT_ADDRESS
public static final ParseField TRANSPORT_ADDRESS
-
ATTRIBUTES
public static final ParseField ATTRIBUTES
-
PARSER
public static final ConstructingObjectParser<NodeAttributes,java.lang.Void> PARSER
-
-
Method Detail
-
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:
toXContentin interfaceToXContent- Throws:
java.io.IOException
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
-