public class StatisticsKeeper<B extends IBasics<S>,S> extends Object implements ItemList
ItemList.Type
Modifier and Type | Field and Description |
---|---|
static String |
BASICS_KEY |
static String |
DEFAULT_BOUNDARY_LIST |
static String |
DEFAULT_P_LIST |
static String |
HISTOGRAM_PUBLISH_KEY |
static String |
ITEM_NAME_FIRST |
static String |
ITEM_NAME_LAST |
protected static org.apache.logging.log4j.Logger |
log |
static int |
NUM_INTERVAL_ITEMS |
static int |
NUM_STATIC_ITEMS |
static String |
PERCENTILE_PRECISION_KEY |
static String |
PERCENTILE_PUBLISH_KEY |
static String |
percentileConfigKey |
static String |
PERCENTILES_INTERNAL_KEY |
protected PercentileEstimator |
pest |
ITEM_FORMAT_PERC, ITEM_FORMAT_TIME, ITEM_NAME_AVERAGE, ITEM_NAME_COUNT, ITEM_NAME_MAX, ITEM_NAME_MIN, ITEM_NAME_STDDEV, ITEM_NAME_SUM, ITEM_NAME_SUMSQ, ITEM_VALUE_NAN, PRINT_FORMAT_COUNT, PRINT_FORMAT_PERC, PRINT_FORMAT_TIME
Modifier | Constructor and Description |
---|---|
|
StatisticsKeeper(String name)
Constructor for StatisticsKeeper.
|
protected |
StatisticsKeeper(String name,
B basics) |
protected |
StatisticsKeeper(String name,
B basics,
String boundaryConfigKey,
String defaultBoundaryList) |
|
StatisticsKeeper(String name,
B basics,
StringTokenizer boundariesTokenizer,
boolean publishPercentiles,
boolean publishHistograms,
boolean calculatePercentiles,
int percentilePrecision) |
Modifier and Type | Method and Description |
---|---|
void |
addValue(long value) |
Map<String,Object> |
asMap() |
XmlBuilder |
dumpToXml() |
double |
getAvg() |
long[] |
getClassBoundaries() |
long[] |
getClassCounts() |
long |
getCount() |
long |
getFirst() |
int |
getIntervalItemCount() |
protected String |
getIntervalItemName(int index) |
ItemList.Type |
getIntervalItemType(int index) |
Object |
getIntervalItemValue(int index) |
int |
getItemCount() |
protected int |
getItemIndex(String name) |
String |
getItemName(int index) |
ItemList.Type |
getItemType(int index) |
Object |
getItemValue(int index) |
static List<String> |
getLabels() |
long |
getLast() |
long |
getMax() |
long |
getMin() |
String |
getName() |
double |
getStdDev() |
long |
getTotal() |
long |
getTotalSquare() |
static List<String> |
getTypes() |
String |
getUnits() |
double |
getVariance() |
protected void |
initialize(String name,
B basics,
StringTokenizer boundariesTokenizer,
boolean publishPercentiles,
boolean publishHistograms,
boolean calculatePercentiles,
int percentilePrecision) |
void |
initMetrics(io.micrometer.core.instrument.MeterRegistry registry,
String name,
Iterable<io.micrometer.core.instrument.Tag> tags) |
void |
performAction(HasStatistics.Action action) |
XmlBuilder |
toXml(String elementName,
boolean deep,
DecimalFormat timeFormat,
DecimalFormat percentageFormat) |
XmlBuilder |
toXml(String elementName,
boolean deep,
DecimalFormat timeFormat,
DecimalFormat percentageFormat,
DecimalFormat countFormat) |
protected static org.apache.logging.log4j.Logger log
public static final String BASICS_KEY
public static final int NUM_STATIC_ITEMS
public static final int NUM_INTERVAL_ITEMS
public static final String DEFAULT_BOUNDARY_LIST
public static final String ITEM_NAME_FIRST
public static final String ITEM_NAME_LAST
public static final String percentileConfigKey
public static final String DEFAULT_P_LIST
public static final String PERCENTILE_PUBLISH_KEY
public static final String HISTOGRAM_PUBLISH_KEY
public static final String PERCENTILES_INTERNAL_KEY
public static final String PERCENTILE_PRECISION_KEY
protected PercentileEstimator pest
public StatisticsKeeper(String name)
AppConstants
protected StatisticsKeeper(String name, B basics, String boundaryConfigKey, String defaultBoundaryList)
public StatisticsKeeper(String name, B basics, StringTokenizer boundariesTokenizer, boolean publishPercentiles, boolean publishHistograms, boolean calculatePercentiles, int percentilePrecision)
public void initMetrics(io.micrometer.core.instrument.MeterRegistry registry, String name, Iterable<io.micrometer.core.instrument.Tag> tags)
protected void initialize(String name, B basics, StringTokenizer boundariesTokenizer, boolean publishPercentiles, boolean publishHistograms, boolean calculatePercentiles, int percentilePrecision)
public String getUnits()
public void performAction(HasStatistics.Action action)
public void addValue(long value)
public long[] getClassBoundaries()
public long[] getClassCounts()
public int getItemCount()
getItemCount
in interface ItemList
public int getIntervalItemCount()
public String getItemName(int index)
getItemName
in interface ItemList
protected String getIntervalItemName(int index)
protected int getItemIndex(String name)
public ItemList.Type getItemType(int index)
getItemType
in interface ItemList
public ItemList.Type getIntervalItemType(int index)
public Object getItemValue(int index)
getItemValue
in interface ItemList
public Object getIntervalItemValue(int index)
public XmlBuilder dumpToXml()
public XmlBuilder toXml(String elementName, boolean deep, DecimalFormat timeFormat, DecimalFormat percentageFormat)
public XmlBuilder toXml(String elementName, boolean deep, DecimalFormat timeFormat, DecimalFormat percentageFormat, DecimalFormat countFormat)
public long getCount()
public double getAvg()
public long getFirst()
public long getLast()
public long getMax()
public long getMin()
public String getName()
public double getStdDev()
public long getTotal()
public long getTotalSquare()
public double getVariance()
Copyright © 2023 Frank!Framework. All rights reserved.