Package org.opensearch.index
Class ShardIndexingPressureTracker.StatsTracker
java.lang.Object
org.opensearch.index.ShardIndexingPressureTracker.StatsTracker
- Enclosing class:
ShardIndexingPressureTracker
StatsTracker is used to track request level aggregated statistics for a shard. This includes:
a. currentBytes - Bytes of data that is inflight/processing for a shard.
b. totalBytes - Total bytes that are processed/completed successfully for a shard.
c. requestCount - Total number of requests that are processed/completed successfully for a shard.
- Opensearch.internal:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
long
long
long
incrementCurrentBytes
(long bytes) long
long
incrementTotalBytes
(long bytes)
-
Constructor Details
-
StatsTracker
public StatsTracker()
-
-
Method Details
-
getCurrentBytes
public long getCurrentBytes() -
incrementCurrentBytes
public long incrementCurrentBytes(long bytes) -
getTotalBytes
public long getTotalBytes() -
incrementTotalBytes
public long incrementTotalBytes(long bytes) -
getRequestCount
public long getRequestCount() -
incrementRequestCount
public long incrementRequestCount()
-