java.lang.Object
org.elasticsearch.common.network.HandlingTimeTracker
Tracks how long message handling takes on a transport thread as a histogram with fixed buckets.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addHandlingTime
(long handlingTimeMillis) static int[]
long[]
-
Field Details
-
BUCKET_COUNT
public static final int BUCKET_COUNT
-
-
Constructor Details
-
HandlingTimeTracker
public HandlingTimeTracker()
-
-
Method Details
-
getBucketUpperBounds
public static int[] getBucketUpperBounds() -
addHandlingTime
public void addHandlingTime(long handlingTimeMillis) -
getHistogram
public long[] getHistogram()- Returns:
- An array of frequencies of handling times in buckets with upper bounds as returned by
getBucketUpperBounds()
, plus an extra bucket for handling times longer than the longest upper bound.
-