Class Stats

java.lang.Object
io.deephaven.base.stats.Stats

public class Stats extends Object
  • Field Details

  • Constructor Details

    • Stats

      public Stats()
  • Method Details

    • setTimeSource

      public static void setTimeSource(Stats.TimeSource ts)
    • makeGroup

      public static Group makeGroup(String name, String description)
      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

      public static Group[] getGroups()
      return an array of all groups
    • getGroup

      public static Group getGroup(String name)
      Return a specific group by name.
    • update

      public 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.
    • clearAll

      public static void clearAll()
      Throw away all state