Class AllocationRecord.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<AllocationRecord.Builder>
co.elastic.clients.elasticsearch.cat.allocation.AllocationRecord.Builder
- All Implemented Interfaces:
WithJson<AllocationRecord.Builder>
,ObjectBuilder<AllocationRecord>
- Enclosing class:
- AllocationRecord
public static class AllocationRecord.Builder
extends WithJsonObjectBuilderBase<AllocationRecord.Builder>
implements ObjectBuilder<AllocationRecord>
Builder for
AllocationRecord
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aAllocationRecord
.final AllocationRecord.Builder
Free disk space available to Elasticsearch.final AllocationRecord.Builder
diskIndices
(String value) Disk space used by the node’s shards.final AllocationRecord.Builder
diskPercent
(String value) Total percentage of disk space in use.final AllocationRecord.Builder
Total disk space for the node, including in-use and available space.final AllocationRecord.Builder
Total disk space in use.final AllocationRecord.Builder
Network host for the node.final AllocationRecord.Builder
IP address and port for the node.final AllocationRecord.Builder
Name for the node.protected AllocationRecord.Builder
self()
final AllocationRecord.Builder
Number of primary and replica shards assigned to the node.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
shards
Number of primary and replica shards assigned to the node.API name:
shards
-
diskIndices
Disk space used by the node’s shards. Does not include disk space for the translog or unassigned shards. IMPORTANT: This metric double-counts disk space for hard-linked files, such as those created when shrinking, splitting, or cloning an index.API name:
disk.indices
-
diskUsed
Total disk space in use. Elasticsearch retrieves this metric from the node’s operating system (OS). The metric includes disk space for: Elasticsearch, including the translog and unassigned shards; the node’s operating system; any other applications or files on the node. Unlikedisk.indices
, this metric does not double-count disk space for hard-linked files.API name:
disk.used
-
diskAvail
Free disk space available to Elasticsearch. Elasticsearch retrieves this metric from the node’s operating system. Disk-based shard allocation uses this metric to assign shards to nodes based on available disk space.API name:
disk.avail
-
diskTotal
Total disk space for the node, including in-use and available space.API name:
disk.total
-
diskPercent
Total percentage of disk space in use. Calculated asdisk.used / disk.total
.API name:
disk.percent
-
host
Network host for the node. Set using thenetwork.host
setting.API name:
host
-
ip
IP address and port for the node.API name:
ip
-
node
Name for the node. Set using thenode.name
setting.API name:
node
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<AllocationRecord.Builder>
-
build
Builds aAllocationRecord
.- Specified by:
build
in interfaceObjectBuilder<AllocationRecord>
- Throws:
NullPointerException
- if some of the required fields are null.
-