Class AllocationRecord.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.cat.allocation.AllocationRecord.Builder
- All Implemented Interfaces:
CopyableBuilder<AllocationRecord.Builder,,AllocationRecord> MutableBuilder<AllocationRecord.Builder,,AllocationRecord> ObjectBuilder<AllocationRecord>
- Enclosing class:
AllocationRecord
public static class AllocationRecord.Builder
extends ObjectBuilderBase
implements CopyableBuilder<AllocationRecord.Builder,AllocationRecord>
Builder for
AllocationRecord.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aAllocationRecord.copy()Create a new builderCopyableBuilderthat is a copy of this one.final AllocationRecord.BuilderFree disk space available to OpenSearch.final AllocationRecord.BuilderdiskIndices(String value) Disk space used by the node's shards.final AllocationRecord.BuilderdiskPercent(String value) Total percentage of disk space in use.final AllocationRecord.BuilderTotal disk space for the node, including in-use and available space.final AllocationRecord.BuilderTotal disk space in use.final AllocationRecord.BuilderNetwork host for the node.final AllocationRecord.BuilderIP address and port for the node.final AllocationRecord.BuilderName for the node.final AllocationRecord.BuilderNumber of primary and replica shards assigned to the node.Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<AllocationRecord.Builder,AllocationRecord> - Returns:
- a new builder instance.
-
diskAvail
Free disk space available to OpenSearch. OpenSearch 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 -
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 -
diskPercent
Total percentage of disk space in use. Calculated asdisk.used / disk.total.API name:
disk.percent -
diskTotal
Total disk space for the node, including in-use and available space.API name:
disk.total -
diskUsed
Total disk space in use. OpenSearch retrieves this metric from the node's operating system (OS). The metric includes disk space for: OpenSearch, 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 -
host
Network host for the node. Set using thenetwork.hostsetting.API name:
host -
ip
IP address and port for the node.API name:
ip -
node
Name for the node. Set using thenode.namesetting.API name:
node -
shards
Number of primary and replica shards assigned to the node.API name:
shards -
build
Builds aAllocationRecord.- Specified by:
buildin interfaceObjectBuilder<AllocationRecord>- Throws:
NullPointerException- if some of the required fields are null.
-