Package org.elasticsearch.client.ml
Class NodeAttributes
- java.lang.Object
-
- org.elasticsearch.client.ml.NodeAttributes
-
- All Implemented Interfaces:
ToXContent,ToXContentObject
public class NodeAttributes extends 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,Void>PARSERstatic ParseFieldTRANSPORT_ADDRESS-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)Map<String,String>getAttributes()Additional attributes related to this node e.g., {"ml.max_open_jobs": "10"}.StringgetEphemeralId()The ephemeral id of the node.StringgetId()The unique identifier of the node.StringgetName()The node name.StringgetTransportAddress()The host and port where transport HTTP connections are accepted.inthashCode()StringtoString()XContentBuildertoXContent(XContentBuilder builder, 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 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,Void> PARSER
-
-
Method Detail
-
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()
Additional attributes related to this node e.g., {"ml.max_open_jobs": "10"}.
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
-