Module org.elasticsearch.xcore
Class NodeAttributes
java.lang.Object
org.elasticsearch.xpack.core.transform.transforms.NodeAttributes
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentObject
A Pojo class containing an Elastic Node's attributes
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ConstructingObjectParser<NodeAttributes, Void> static final ParseFieldFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic NodeAttributesThe ephemeral id of the node.getId()The unique identifier of the node.getName()The node name.The host and port where transport HTTP connections are accepted.inthashCode()toString()toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
ID
-
NAME
-
EPHEMERAL_ID
-
TRANSPORT_ADDRESS
-
ATTRIBUTES
-
PARSER
-
-
Constructor Details
-
NodeAttributes
-
NodeAttributes
- Throws:
IOException
-
-
Method Details
-
fromDiscoveryNode
-
getId
The unique identifier of the node. -
getName
The node name. -
getEphemeralId
The ephemeral id of the node. -
getTransportAddress
The host and port where transport HTTP connections are accepted. -
getAttributes
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
hashCode
public int hashCode() -
equals
-
toString
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-