Class StoreStats

java.lang.Object
org.elasticsearch.index.store.StoreStats
All Implemented Interfaces:
Writeable, ToXContent, ToXContentFragment

public class StoreStats extends Object implements Writeable, ToXContentFragment
  • Field Details

    • UNKNOWN_RESERVED_BYTES

      public static final long UNKNOWN_RESERVED_BYTES
      Sentinel value for cases where the shard does not yet know its reserved size so we must fall back to an estimate, for instance prior to receiving the list of files in a peer recovery.
      See Also:
    • RESERVED_BYTES_VERSION

      public static final Version RESERVED_BYTES_VERSION
    • TOTAL_DATA_SET_SIZE_SIZE_VERSION

      public static final Version TOTAL_DATA_SET_SIZE_SIZE_VERSION
  • Constructor Details

    • StoreStats

      public StoreStats()
    • StoreStats

      public StoreStats(StreamInput in) throws IOException
      Throws:
      IOException
    • StoreStats

      public StoreStats(long sizeInBytes, long totalDataSetSizeInBytes, long reservedSize)
      Parameters:
      sizeInBytes - the size of the store in bytes
      totalDataSetSizeInBytes - the size of the total data set in bytes, can differ from sizeInBytes for shards using shared cache storage
      reservedSize - a prediction of how much larger the store is expected to grow, or UNKNOWN_RESERVED_BYTES.
  • Method Details