Class StoreStats.Builder

All Implemented Interfaces:
WithJson<StoreStats.Builder>, ObjectBuilder<StoreStats>
Enclosing class:
StoreStats

public static class StoreStats.Builder extends WithJsonObjectBuilderBase<StoreStats.Builder> implements ObjectBuilder<StoreStats>
Builder for StoreStats.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • size

      public final StoreStats.Builder size(@Nullable String value)
      Total size of all shards assigned to selected nodes.

      API name: size

    • sizeInBytes

      public final StoreStats.Builder sizeInBytes(long value)
      Required - Total size, in bytes, of all shards assigned to selected nodes.

      API name: size_in_bytes

    • reserved

      public final StoreStats.Builder reserved(@Nullable String value)
      A prediction of how much larger the shard stores will eventually grow due to ongoing peer recoveries, restoring snapshots, and similar activities.

      API name: reserved

    • reservedInBytes

      public final StoreStats.Builder reservedInBytes(long value)
      Required - A prediction, in bytes, of how much larger the shard stores will eventually grow due to ongoing peer recoveries, restoring snapshots, and similar activities.

      API name: reserved_in_bytes

    • totalDataSetSize

      public final StoreStats.Builder totalDataSetSize(@Nullable String value)
      Total data set size of all shards assigned to selected nodes. This includes the size of shards not stored fully on the nodes, such as the cache for partially mounted indices.

      API name: total_data_set_size

    • totalDataSetSizeInBytes

      public final StoreStats.Builder totalDataSetSizeInBytes(@Nullable Long value)
      Total data set size, in bytes, of all shards assigned to selected nodes. This includes the size of shards not stored fully on the nodes, such as the cache for partially mounted indices.

      API name: total_data_set_size_in_bytes

    • self

      protected StoreStats.Builder self()
      Specified by:
      self in class WithJsonObjectBuilderBase<StoreStats.Builder>
    • build

      public StoreStats build()
      Builds a StoreStats.
      Specified by:
      build in interface ObjectBuilder<StoreStats>
      Throws:
      NullPointerException - if some of the required fields are null.