Class MeterServiceImpl

    • Constructor Detail

      • MeterServiceImpl

        public MeterServiceImpl()
    • Method Detail

      • list

        public List<? extends Meter> list()
        Return all known meters, based on the data recorded so far.
        Specified by:
        list in interface MeterService
        Returns:
        list of all known meters
      • samples

        public List<? extends MeterSample> samples​(String meterName)
        Returns samples for the specified Meter
        Specified by:
        samples in interface MeterService
        Parameters:
        meterName - the name of the meter to fetch samples from
        Returns:
        List of Samples
      • samples

        public List<? extends MeterSample> samples​(String meterName,
                                                   SampleCriteria criteria)
        Returns samples for the specified Meter
        Specified by:
        samples in interface MeterService
        Parameters:
        meterName - the name of the meter to fetch samples from
        criteria - the sample query criteria for filtering results
        Returns:
        List of Samples
      • statistics

        public List<? extends Statistics> statistics​(String meterName)
        Returns computed statistics for the given meterName
        Specified by:
        statistics in interface MeterService
        Parameters:
        meterName - the name of the meter to fetch statistics for
        Returns:
        List of Statistics
      • statistics

        public List<? extends Statistics> statistics​(String meterName,
                                                     int period)
        Description copied from interface: MeterService
        Returns computed statistics for the given meterName for the given time range
        Specified by:
        statistics in interface MeterService
        Parameters:
        meterName - the name of the meter to fetch statistics for
        period - the result will be statistics for a period long of that number of seconds
        Returns:
        List of Statistics
      • statistics

        public List<? extends Statistics> statistics​(String meterName,
                                                     SampleCriteria criteria)
        Description copied from interface: MeterService
        Returns computed statistics for the given meterName
        Specified by:
        statistics in interface MeterService
        Parameters:
        meterName - the name of the meter to fetch statistics for
        criteria - additional query criteria
        Returns:
        List of Statistics
      • statistics

        public List<? extends Statistics> statistics​(String meterName,
                                                     SampleCriteria criteria,
                                                     int period)
        Description copied from interface: MeterService
        Returns computed statistics for the given meterName
        Specified by:
        statistics in interface MeterService
        Parameters:
        meterName - the name of the meter to fetch statistics for
        criteria - additional query criteria
        period - the result will be statistics for a period long of that number of seconds
        Returns:
        List of Statistics