Class StatisticImpl

    • Constructor Detail

      • StatisticImpl

        protected StatisticImpl​(String name,
                                String unit,
                                String desc,
                                long start_time,
                                long sample_time)
    • Method Detail

      • getStaticAsMap

        public Map getStaticAsMap()
      • getName

        public String getName()
        Description copied from interface: Statistic
        The name of this Statistic.
        Specified by:
        getName in interface Statistic
      • getDescription

        public String getDescription()
        Description copied from interface: Statistic
        A human-readable description of the Statistic.
        Specified by:
        getDescription in interface Statistic
      • getUnit

        public String getUnit()
        Description copied from interface: Statistic
        The unit of measurement for this Statistic. Valid values for TimeStatistic measurements are "HOUR", "MINUTE", "SECOND", "MILLISECOND", "MICROSECOND" and "NANOSECOND".
        Specified by:
        getUnit in interface Statistic
      • getLastSampleTime

        public long getLastSampleTime()
        Description copied from interface: Statistic
        The time of the last measurement represented as a long, whose value is the number of milliseconds since January 1, 1970, 00:00:00.
        Specified by:
        getLastSampleTime in interface Statistic
      • getStartTime

        public long getStartTime()
        Description copied from interface: Statistic
        The time of the first measurement represented as a long, whose value is the number of milliseconds since January 1, 1970, 00:00:00.
        Specified by:
        getStartTime in interface Statistic
      • reset

        public void reset()
      • isValidString

        protected static boolean isValidString​(String str)
      • checkMethod

        protected void checkMethod​(Method method)