Package io.deephaven.base.stats
Class Stats
java.lang.Object
io.deephaven.base.stats.Stats
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
A non-static interface to the Stats component.static interface
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
clearAll()
Throw away all statestatic Group
Return a specific group by name.static Group[]
return an array of all groupsstatic Group
get or create a named, top-level groupstatic <V extends Value>
Item<HistogramState>makeHistogram
(String groupName, String itemName, long rangeMin, long rangeMax, int numBuckets) get or create a new histogrammed itemstatic <V extends Value>
Item<HistogramState>makeHistogram
(String groupName, String itemName, long now, long rangeMin, long rangeMax, int numBuckets) get or create a new histogrammed itemstatic <V extends Value>
Item<HistogramState>makeHistogram
(String groupName, String itemName, String description, long rangeMin, long rangeMax, int numBuckets) get or create a new histogrammed itemstatic <V extends Value>
Item<HistogramState>makeHistogram
(String groupName, String itemName, String description, long now, long rangeMin, long rangeMax, int numBuckets) get or create a new histogrammed itemmakeItem
(String groupName, String itemName, BiFunction<Long, Arg, V> valueFactory, long now, Arg arg) get or create a new item with a one-argument factorymakeItem
(String groupName, String itemName, BiFunction<Long, Arg, V> valueFactory, Arg arg) get or create a new item with a one-argument factorymakeItem
(String groupName, String itemName, BiFunction<Long, Arg, V> valueFactory, String description, long now, Arg arg) get or create a new item with a one-argument factorymakeItem
(String groupName, String itemName, BiFunction<Long, Arg, V> valueFactory, String description, Arg arg) get or create a new item with a one-argument factorymakeItem
(String groupName, String itemName, LongFunction<V> valueFactory) get or create a new itemmakeItem
(String groupName, String itemName, LongFunction<V> valueFactory, long now) get or create a new itemmakeItem
(String groupName, String itemName, LongFunction<V> valueFactory, String description) get or create a new itemmakeItem
(String groupName, String itemName, LongFunction<V> valueFactory, String description, long now) get or create a new itemstatic void
static void
update
(ItemUpdateListener listener, long now, long appNow, long logInterval) Update the histories of all items in all groups, logging all updated intervals >= logInterval.
-
Field Details
-
UNKNOWN_DESCRIPTION
- See Also:
-
-
Constructor Details
-
Stats
public Stats()
-
-
Method Details
-
setTimeSource
-
makeGroup
get or create a named, top-level group -
makeItem
public static <V extends Value> Item<V> makeItem(String groupName, String itemName, LongFunction<V> valueFactory) get or create a new item -
makeItem
public static <V extends Value> Item<V> makeItem(String groupName, String itemName, LongFunction<V> valueFactory, long now) get or create a new item -
makeItem
public static <V extends Value> Item<V> makeItem(String groupName, String itemName, LongFunction<V> valueFactory, String description) get or create a new item -
makeItem
public static <V extends Value> Item<V> makeItem(String groupName, String itemName, LongFunction<V> valueFactory, String description, long now) get or create a new item -
makeItem
public static <V extends Value,Arg> Item<V> makeItem(String groupName, String itemName, BiFunction<Long, Arg, V> valueFactory, Arg arg) get or create a new item with a one-argument factory -
makeItem
public static <V extends Value,Arg> Item<V> makeItem(String groupName, String itemName, BiFunction<Long, Arg, V> valueFactory, long now, Arg arg) get or create a new item with a one-argument factory -
makeItem
public static <V extends Value,Arg> Item<V> makeItem(String groupName, String itemName, BiFunction<Long, Arg, V> valueFactory, String description, Arg arg) get or create a new item with a one-argument factory -
makeItem
public static <V extends Value,Arg> Item<V> makeItem(String groupName, String itemName, BiFunction<Long, Arg, V> valueFactory, String description, long now, Arg arg) get or create a new item with a one-argument factory -
makeHistogram
public static <V extends Value> Item<HistogramState> makeHistogram(String groupName, String itemName, long rangeMin, long rangeMax, int numBuckets) get or create a new histogrammed item -
makeHistogram
public static <V extends Value> Item<HistogramState> makeHistogram(String groupName, String itemName, long now, long rangeMin, long rangeMax, int numBuckets) get or create a new histogrammed item -
makeHistogram
public static <V extends Value> Item<HistogramState> makeHistogram(String groupName, String itemName, String description, long rangeMin, long rangeMax, int numBuckets) get or create a new histogrammed item -
makeHistogram
public static <V extends Value> Item<HistogramState> makeHistogram(String groupName, String itemName, String description, long now, long rangeMin, long rangeMax, int numBuckets) get or create a new histogrammed item -
getGroups
return an array of all groups -
getGroup
Return a specific group by name. -
update
Update the histories of all items in all groups, logging all updated intervals >= logInterval. -
clearAll
public static void clearAll()Throw away all state
-