Annotation Interface StatisticsGroup


@Retention(RUNTIME) @Target(TYPE) public @interface StatisticsGroup
Marks a group of public statistics of an application, a class implementing Statistics: SmartGears finds every such class of the application, computes each group on its own schedule, once or in each Context (perContext()), and serves the last results without a token at /smartgears/<application>/statistics.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    Where the group comes among the groups of the application: the groups are given by their order, then by their identifier.
    boolean
    Whether the group is computed in each Context of the node, each time with the secret of that Context, and published as the total; otherwise it is computed once, with the secret of the container in the Context it publishes from.
  • Element Details

    • order

      int order
      Where the group comes among the groups of the application: the groups are given by their order, then by their identifier.
      Returns:
      the order, 0 unless the group says otherwise
      Default:
      0
    • perContext

      boolean perContext
      Whether the group is computed in each Context of the node, each time with the secret of that Context, and published as the total; otherwise it is computed once, with the secret of the container in the Context it publishes from. In a group computed per Context, the figures of the same id are summed: numbers, and the numbers by name of distributions, states and values; of instants the latest is kept. Averages, medians and maxima do not belong to such a group.
      Returns:
      true for a group computed per Context, false unless the group says otherwise
      Default:
      false