Class PollCountStatisticImpl

  • All Implemented Interfaces:
    javax.management.j2ee.statistics.CountStatistic, javax.management.j2ee.statistics.Statistic, Resettable

    public class PollCountStatisticImpl
    extends StatisticImpl
    implements javax.management.j2ee.statistics.CountStatistic
    A count statistic implementation
    • Constructor Detail

      • PollCountStatisticImpl

        public PollCountStatisticImpl​(String name,
                                      String description)
      • PollCountStatisticImpl

        public PollCountStatisticImpl​(String name,
                                      String unit,
                                      String description)
    • Method Detail

      • getCount

        public long getCount()
        Specified by:
        getCount in interface javax.management.j2ee.statistics.CountStatistic
      • getPeriod

        public double getPeriod()
        Returns:
        the average time period that elapses between counter increments since the last reset.
      • getFrequency

        public double getFrequency()
        Returns:
        the number of times per second that the counter is incrementing since the last reset.