public class PropertiesQuantilesCallback extends QuantilesCallback
Properties
file. Configuration file should look like:
# Global default values are set on root .min=0 .max=60000 .nb=5 .type=LINEAR # For org.javasimon group: more buckets org.javasimon.nb=10 # SlowClass is a performance bottleneck: higher upper bound org.javasimon.slow.SlowClass.max=300000 # Can use Exponential buckets for some Stopwatches org.javasimon.special.type=EXPONENTIAL
Callback.Event
ATTR_NAME_BUCKETS
Constructor and Description |
---|
PropertiesQuantilesCallback(Properties properties)
Main constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Buckets |
createBuckets(Stopwatch stopwatch)
Create buckets using callback attributes.
|
createBuckets, createLogTemplate, getBuckets, getBucketsType, getOrCreateBuckets, isLogEnabled, onStopwatchAdd, onStopwatchSplit, onStopwatchStop, sampleBuckets, setLogEnabled
cleanup, initialize, onCounterDecrease, onCounterIncrease, onCounterSet, onManagerClear, onManagerMessage, onManagerWarning, onSimonCreated, onSimonDestroyed, onStopwatchStart
public PropertiesQuantilesCallback(Properties properties)
properties
- Properties containing configurationprotected Buckets createBuckets(Stopwatch stopwatch)
createBuckets
in class QuantilesCallback
stopwatch
- Target stopwatchCopyright © 2019. All rights reserved.