Class NodeInfo.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.nodes.info.NodeInfo.Builder
-
- All Implemented Interfaces:
ObjectBuilder<NodeInfo>
- Enclosing class:
- NodeInfo
public static class NodeInfo.Builder extends ObjectBuilderBase implements ObjectBuilder<NodeInfo>
Builder forNodeInfo
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeInfo.Builder
aggregations(java.lang.String key, java.util.function.Function<NodeInfoAggregation.Builder,ObjectBuilder<NodeInfoAggregation>> fn)
API name:aggregations
NodeInfo.Builder
aggregations(java.lang.String key, NodeInfoAggregation value)
API name:aggregations
NodeInfo.Builder
aggregations(java.util.Map<java.lang.String,NodeInfoAggregation> map)
API name:aggregations
NodeInfo.Builder
attributes(java.lang.String key, java.lang.String value)
API name:attributes
NodeInfo.Builder
attributes(java.util.Map<java.lang.String,java.lang.String> map)
API name:attributes
NodeInfo
build()
Builds aNodeInfo
.NodeInfo.Builder
buildHash(java.lang.String value)
Required - Short hash of the last git commit in this release.NodeInfo.Builder
buildType(java.lang.String value)
Required - API name:build_type
NodeInfo.Builder
host(java.lang.String value)
Required - The node's host name.NodeInfo.Builder
http(java.util.function.Function<NodeInfoHttp.Builder,ObjectBuilder<NodeInfoHttp>> fn)
API name:http
NodeInfo.Builder
http(NodeInfoHttp value)
API name:http
NodeInfo.Builder
ingest(java.util.function.Function<NodeInfoIngest.Builder,ObjectBuilder<NodeInfoIngest>> fn)
API name:ingest
NodeInfo.Builder
ingest(NodeInfoIngest value)
API name:ingest
NodeInfo.Builder
ip(java.lang.String value)
Required - The node's IP address.NodeInfo.Builder
jvm(java.util.function.Function<NodeJvmInfo.Builder,ObjectBuilder<NodeJvmInfo>> fn)
API name:jvm
NodeInfo.Builder
jvm(NodeJvmInfo value)
API name:jvm
NodeInfo.Builder
modules(java.util.function.Function<PluginStats.Builder,ObjectBuilder<PluginStats>> fn)
API name:modules
NodeInfo.Builder
modules(java.util.List<PluginStats> list)
API name:modules
NodeInfo.Builder
modules(PluginStats value, PluginStats... values)
API name:modules
NodeInfo.Builder
name(java.lang.String value)
Required - The node's nameNodeInfo.Builder
network(java.util.function.Function<NodeInfoNetwork.Builder,ObjectBuilder<NodeInfoNetwork>> fn)
API name:network
NodeInfo.Builder
network(NodeInfoNetwork value)
API name:network
NodeInfo.Builder
os(java.util.function.Function<NodeOperatingSystemInfo.Builder,ObjectBuilder<NodeOperatingSystemInfo>> fn)
API name:os
NodeInfo.Builder
os(NodeOperatingSystemInfo value)
API name:os
NodeInfo.Builder
plugins(java.util.function.Function<PluginStats.Builder,ObjectBuilder<PluginStats>> fn)
API name:plugins
NodeInfo.Builder
plugins(java.util.List<PluginStats> list)
API name:plugins
NodeInfo.Builder
plugins(PluginStats value, PluginStats... values)
API name:plugins
NodeInfo.Builder
process(java.util.function.Function<NodeProcessInfo.Builder,ObjectBuilder<NodeProcessInfo>> fn)
API name:process
NodeInfo.Builder
process(NodeProcessInfo value)
API name:process
NodeInfo.Builder
roles(java.util.List<NodeRole> list)
Required - API name:roles
NodeInfo.Builder
roles(NodeRole value, NodeRole... values)
Required - API name:roles
NodeInfo.Builder
settings(java.util.function.Function<NodeInfoSettings.Builder,ObjectBuilder<NodeInfoSettings>> fn)
API name:settings
NodeInfo.Builder
settings(NodeInfoSettings value)
API name:settings
NodeInfo.Builder
threadPool(java.lang.String key, java.util.function.Function<NodeThreadPoolInfo.Builder,ObjectBuilder<NodeThreadPoolInfo>> fn)
API name:thread_pool
NodeInfo.Builder
threadPool(java.lang.String key, NodeThreadPoolInfo value)
API name:thread_pool
NodeInfo.Builder
threadPool(java.util.Map<java.lang.String,NodeThreadPoolInfo> map)
API name:thread_pool
NodeInfo.Builder
totalIndexingBuffer(java.lang.Long value)
Total heap allowed to be used to hold recently indexed documents before they must be written to disk.NodeInfo.Builder
totalIndexingBufferInBytes(java.lang.String value)
Same as total_indexing_buffer, but expressed in bytes.NodeInfo.Builder
transport(java.util.function.Function<NodeInfoTransport.Builder,ObjectBuilder<NodeInfoTransport>> fn)
API name:transport
NodeInfo.Builder
transport(NodeInfoTransport value)
API name:transport
NodeInfo.Builder
transportAddress(java.lang.String value)
Required - Host and port where transport HTTP connections are accepted.NodeInfo.Builder
version(java.lang.String value)
Required - OpenSearch version running on this node.-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
attributes
public final NodeInfo.Builder attributes(java.util.Map<java.lang.String,java.lang.String> map)
API name:attributes
Adds all entries of
map
toattributes
.
-
attributes
public final NodeInfo.Builder attributes(java.lang.String key, java.lang.String value)
API name:attributes
Adds an entry to
attributes
.
-
buildHash
public final NodeInfo.Builder buildHash(java.lang.String value)
Required - Short hash of the last git commit in this release.API name:
build_hash
-
buildType
public final NodeInfo.Builder buildType(java.lang.String value)
Required - API name:build_type
-
host
public final NodeInfo.Builder host(@Nullable java.lang.String value)
Required - The node's host name.API name:
host
-
http
public final NodeInfo.Builder http(@Nullable NodeInfoHttp value)
API name:http
-
http
public final NodeInfo.Builder http(java.util.function.Function<NodeInfoHttp.Builder,ObjectBuilder<NodeInfoHttp>> fn)
API name:http
-
ip
public final NodeInfo.Builder ip(@Nullable java.lang.String value)
Required - The node's IP address.API name:
ip
-
jvm
public final NodeInfo.Builder jvm(@Nullable NodeJvmInfo value)
API name:jvm
-
jvm
public final NodeInfo.Builder jvm(java.util.function.Function<NodeJvmInfo.Builder,ObjectBuilder<NodeJvmInfo>> fn)
API name:jvm
-
name
public final NodeInfo.Builder name(java.lang.String value)
Required - The node's nameAPI name:
name
-
network
public final NodeInfo.Builder network(@Nullable NodeInfoNetwork value)
API name:network
-
network
public final NodeInfo.Builder network(java.util.function.Function<NodeInfoNetwork.Builder,ObjectBuilder<NodeInfoNetwork>> fn)
API name:network
-
os
public final NodeInfo.Builder os(@Nullable NodeOperatingSystemInfo value)
API name:os
-
os
public final NodeInfo.Builder os(java.util.function.Function<NodeOperatingSystemInfo.Builder,ObjectBuilder<NodeOperatingSystemInfo>> fn)
API name:os
-
plugins
public final NodeInfo.Builder plugins(java.util.List<PluginStats> list)
API name:plugins
Adds all elements of
list
toplugins
.
-
plugins
public final NodeInfo.Builder plugins(PluginStats value, PluginStats... values)
API name:plugins
Adds one or more values to
plugins
.
-
plugins
public final NodeInfo.Builder plugins(java.util.function.Function<PluginStats.Builder,ObjectBuilder<PluginStats>> fn)
API name:plugins
Adds a value to
plugins
using a builder lambda.
-
process
public final NodeInfo.Builder process(@Nullable NodeProcessInfo value)
API name:process
-
process
public final NodeInfo.Builder process(java.util.function.Function<NodeProcessInfo.Builder,ObjectBuilder<NodeProcessInfo>> fn)
API name:process
-
roles
public final NodeInfo.Builder roles(java.util.List<NodeRole> list)
Required - API name:roles
Adds all elements of
list
toroles
.
-
roles
public final NodeInfo.Builder roles(NodeRole value, NodeRole... values)
Required - API name:roles
Adds one or more values to
roles
.
-
settings
public final NodeInfo.Builder settings(@Nullable NodeInfoSettings value)
API name:settings
-
settings
public final NodeInfo.Builder settings(java.util.function.Function<NodeInfoSettings.Builder,ObjectBuilder<NodeInfoSettings>> fn)
API name:settings
-
threadPool
public final NodeInfo.Builder threadPool(java.util.Map<java.lang.String,NodeThreadPoolInfo> map)
API name:thread_pool
Adds all entries of
map
tothreadPool
.
-
threadPool
public final NodeInfo.Builder threadPool(java.lang.String key, NodeThreadPoolInfo value)
API name:thread_pool
Adds an entry to
threadPool
.
-
threadPool
public final NodeInfo.Builder threadPool(java.lang.String key, java.util.function.Function<NodeThreadPoolInfo.Builder,ObjectBuilder<NodeThreadPoolInfo>> fn)
API name:thread_pool
Adds an entry to
threadPool
using a builder lambda.
-
totalIndexingBuffer
public final NodeInfo.Builder totalIndexingBuffer(@Nullable java.lang.Long value)
Total heap allowed to be used to hold recently indexed documents before they must be written to disk. This size is a shared pool across all shards on this node, and is controlled by Indexing Buffer settings.API name:
total_indexing_buffer
-
totalIndexingBufferInBytes
public final NodeInfo.Builder totalIndexingBufferInBytes(@Nullable java.lang.String value)
Same as total_indexing_buffer, but expressed in bytes.API name:
total_indexing_buffer_in_bytes
-
transport
public final NodeInfo.Builder transport(@Nullable NodeInfoTransport value)
API name:transport
-
transport
public final NodeInfo.Builder transport(java.util.function.Function<NodeInfoTransport.Builder,ObjectBuilder<NodeInfoTransport>> fn)
API name:transport
-
transportAddress
public final NodeInfo.Builder transportAddress(@Nullable java.lang.String value)
Required - Host and port where transport HTTP connections are accepted.API name:
transport_address
-
version
public final NodeInfo.Builder version(java.lang.String value)
Required - OpenSearch version running on this node.API name:
version
-
modules
public final NodeInfo.Builder modules(java.util.List<PluginStats> list)
API name:modules
Adds all elements of
list
tomodules
.
-
modules
public final NodeInfo.Builder modules(PluginStats value, PluginStats... values)
API name:modules
Adds one or more values to
modules
.
-
modules
public final NodeInfo.Builder modules(java.util.function.Function<PluginStats.Builder,ObjectBuilder<PluginStats>> fn)
API name:modules
Adds a value to
modules
using a builder lambda.
-
ingest
public final NodeInfo.Builder ingest(@Nullable NodeInfoIngest value)
API name:ingest
-
ingest
public final NodeInfo.Builder ingest(java.util.function.Function<NodeInfoIngest.Builder,ObjectBuilder<NodeInfoIngest>> fn)
API name:ingest
-
aggregations
public final NodeInfo.Builder aggregations(java.util.Map<java.lang.String,NodeInfoAggregation> map)
API name:aggregations
Adds all entries of
map
toaggregations
.
-
aggregations
public final NodeInfo.Builder aggregations(java.lang.String key, NodeInfoAggregation value)
API name:aggregations
Adds an entry to
aggregations
.
-
aggregations
public final NodeInfo.Builder aggregations(java.lang.String key, java.util.function.Function<NodeInfoAggregation.Builder,ObjectBuilder<NodeInfoAggregation>> fn)
API name:aggregations
Adds an entry to
aggregations
using a builder lambda.
-
build
public NodeInfo build()
Builds aNodeInfo
.- Specified by:
build
in interfaceObjectBuilder<NodeInfo>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-
-