Class BaseNode

java.lang.Object
org.opensearch.client.opensearch._types.BaseNode
All Implemented Interfaces:
JsonpSerializable, PlainJsonSerializable
Direct Known Subclasses:
ReindexNode, TaskExecutingNode, UpdateByQueryRethrottleNode

@Generated("org.opensearch.client.codegen.CodeGenerator") public abstract class BaseNode extends Object implements PlainJsonSerializable
The base information about a node.
  • Constructor Details

  • Method Details

    • attributes

      @Nonnull public final Map<String,String> attributes()
      The attributes of the node.

      API name: attributes

    • host

      @Nullable public final String host()
      API name: host
    • ip

      @Nullable public final String ip()
      API name: ip
    • name

      @Nonnull public final String name()
      Required - API name: name
    • roles

      @Nonnull public final List<NodeRole> roles()
      API name: roles
    • transportAddress

      @Nullable public final String transportAddress()
      API name: transport_address
    • serialize

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • setupBaseNodeDeserializer

      protected static <BuilderT extends BaseNode.AbstractBuilder<BuilderT>> void setupBaseNodeDeserializer(ObjectDeserializer<BuilderT> op)
    • hashCode

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object