Class AllocationRecord
java.lang.Object
org.opensearch.client.opensearch.cat.allocation.AllocationRecord
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<AllocationRecord.Builder,AllocationRecord>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class AllocationRecord
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<AllocationRecord.Builder,AllocationRecord>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<AllocationRecord> Json deserializer forAllocationRecord -
Method Summary
Modifier and TypeMethodDescriptionstatic AllocationRecord.Builderbuilder()final StringFree disk space available to OpenSearch.final StringDisk space used by the node's shards.final StringTotal percentage of disk space in use.final StringTotal disk space for the node, including in-use and available space.final StringdiskUsed()Total disk space in use.booleaninthashCode()final Stringhost()Network host for the node.final Stringip()IP address and port for the node.final Stringnode()Name for the node.static AllocationRecordvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Stringshards()Number of primary and replica shards assigned to the node.Create a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forAllocationRecord
-
-
Method Details
-
of
public static AllocationRecord of(Function<AllocationRecord.Builder, ObjectBuilder<AllocationRecord>> fn) -
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 -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<AllocationRecord.Builder,AllocationRecord> - Returns:
- a new builder instance.
-
builder
-
setupAllocationRecordDeserializer
protected static void setupAllocationRecordDeserializer(ObjectDeserializer<AllocationRecord.Builder> op) -
hashCode
public int hashCode() -
equals
-