Class AllocationRecord
java.lang.Object
co.elastic.clients.elasticsearch.cat.allocation.AllocationRecord
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<AllocationRecord>
Json deserializer forAllocationRecord
-
Method Summary
Modifier and TypeMethodDescriptionfinal String
Free disk space available to Elasticsearch.final String
Disk space used by the node’s shards.final String
Sum of shard size forecastsfinal String
Total percentage of disk space in use.final String
Total disk space for the node, including in-use and available space.final String
diskUsed()
Total disk space in use.final String
host()
Network host for the node.final String
ip()
IP address and port for the node.final String
node()
Name for the node.final String
nodeRole()
Node rolesstatic AllocationRecord
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
final String
shards()
Number of primary and replica shards assigned to the node.final String
Amount of shards that are scheduled to be moved elsewhere in the cluster or -1 other than desired balance allocator is usedtoString()
final Double
Sum of index write load forecasts
-
Field Details
-
_DESERIALIZER
Json deserializer forAllocationRecord
-
-
Method Details
-
of
public static AllocationRecord of(Function<AllocationRecord.Builder, ObjectBuilder<AllocationRecord>> fn) -
shards
Number of primary and replica shards assigned to the node.API name:
shards
-
shardsUndesired
Amount of shards that are scheduled to be moved elsewhere in the cluster or -1 other than desired balance allocator is usedAPI name:
shards.undesired
-
writeLoadForecast
Sum of index write load forecastsAPI name:
write_load.forecast
Defaults to
0
if parsed from a JSONnull
value. -
diskIndicesForecast
Sum of shard size forecastsAPI name:
disk.indices.forecast
-
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
-
nodeRole
Node rolesAPI name:
node.role
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupAllocationRecordDeserializer
protected static void setupAllocationRecordDeserializer(ObjectDeserializer<AllocationRecord.Builder> op)
-