Class Allocations

java.lang.Object
co.elastic.clients.elasticsearch.nodes.Allocations
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class Allocations extends Object implements JsonpSerializable
See Also:
  • Field Details

  • Method Details

    • of

    • shards

      @Nullable public final Integer shards()
      Number of shards allocated to the node.

      API name: shards

    • undesiredShards

      @Nullable public final Integer undesiredShards()
      Number of shards allocated to the node that are currently undesired.

      API name: undesired_shards

    • forecastedIngestLoad

      @Nullable public final Double forecastedIngestLoad()
      Forecasted ingest load for the node.

      API name: forecasted_ingest_load

    • forecastedDiskUsage

      @Nullable public final String forecastedDiskUsage()
      Forecasted disk usage for the node.

      API name: forecasted_disk_usage

    • forecastedDiskUsageInBytes

      @Nullable public final Long forecastedDiskUsageInBytes()
      Forecasted disk usage, in bytes, for the node.

      API name: forecasted_disk_usage_in_bytes

    • currentDiskUsage

      @Nullable public final String currentDiskUsage()
      Current disk usage for the node.

      API name: current_disk_usage

    • currentDiskUsageInBytes

      @Nullable public final Long currentDiskUsageInBytes()
      Current disk usage, in bytes, for the node.

      API name: current_disk_usage_in_bytes

    • serialize

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • rebuild

      public Allocations.Builder rebuild()
      Returns:
      New Allocations.Builder initialized with field values of this instance
    • setupAllocationsDeserializer

      protected static void setupAllocationsDeserializer(ObjectDeserializer<Allocations.Builder> op)