public class AutoQuantilesCallback extends QuantilesCallback
BucketsCallback.Event| Modifier and Type | Field and Description |
|---|---|
static String |
ATTR_NAME_BUCKETS_VALUES
Simon attribute name of the list of split values stored in Simons before warmup time.
|
ATTR_NAME_BUCKETS| Constructor and Description |
|---|
AutoQuantilesCallback()
Default constructor.
|
AutoQuantilesCallback(BucketsType bucketsType,
long warmupCounter,
int bucketNb)
Constructor with all configuration.
|
AutoQuantilesCallback(long warmupCounter,
int bucketNb)
Constructor with warmup counter and number of linear buckets for each Simon.
|
| Modifier and Type | Method and Description |
|---|---|
protected Buckets |
createBuckets(Stopwatch stopwatch)
When warmup ends, buckets are create and retained splits are sorted in the buckets.
|
protected Buckets |
createBucketsAfterWarmup(Stopwatch stopwatch)
Create the buckets after warmup time.
|
void |
onSimonCreated(Simon simon)
When simon is created, the list containing Split values is added to stopwatch attributes.
|
protected void |
onStopwatchSplit(Stopwatch stopwatch,
Split split)
Called when there is a new split on a Stopwatch, either
QuantilesCallback.onStopwatchStop(org.javasimon.Split, org.javasimon.StopwatchSample) or QuantilesCallback.onStopwatchAdd(org.javasimon.Stopwatch, org.javasimon.Split, org.javasimon.StopwatchSample). |
createBuckets, createLogTemplate, getBuckets, getBucketsType, getOrCreateBuckets, isLogEnabled, onStopwatchAdd, onStopwatchStop, sampleBuckets, setLogEnabledcleanup, initialize, onCounterDecrease, onCounterIncrease, onCounterSet, onManagerClear, onManagerMessage, onManagerWarning, onSimonDestroyed, onStopwatchStartpublic static final String ATTR_NAME_BUCKETS_VALUES
public AutoQuantilesCallback()
public AutoQuantilesCallback(long warmupCounter, int bucketNb)
public AutoQuantilesCallback(BucketsType bucketsType, long warmupCounter, int bucketNb)
bucketsType - Linear or exponentialwarmupCounter - Number of splits before initbucketNb - Bucket numberprotected Buckets createBucketsAfterWarmup(Stopwatch stopwatch)
bucketNbstopwatch - Stopwatch (containing configuration)protected final Buckets createBuckets(Stopwatch stopwatch)
createBuckets in class QuantilesCallbackstopwatch - Stopwatchpublic void onSimonCreated(Simon simon)
onSimonCreated in interface CallbackonSimonCreated in class CallbackSkeletonsimon - created Simonprotected void onStopwatchSplit(Stopwatch stopwatch, Split split)
QuantilesCallback.onStopwatchStop(org.javasimon.Split, org.javasimon.StopwatchSample) or QuantilesCallback.onStopwatchAdd(org.javasimon.Stopwatch, org.javasimon.Split, org.javasimon.StopwatchSample).
If buckets have been initialized, the value is added to appropriate bucket.
Else if stopwatch is warming up value is added to value list.onStopwatchSplit in class QuantilesCallbackCopyright © 2019. All rights reserved.