Class RemoteUsage.UsageReader

    • Method Detail

      • isSample

        public boolean isSample​(String name)
        Check whether a usage parameter is a sample statistic.
        Parameters:
        name - usage parameter name
        Returns:
        true if the usage parameter is a sample statistic, false if not
      • isCounter

        public boolean isCounter​(String name)
        Check whether a usage parameter is a counter.
        Parameters:
        name - usage parameter name
        Returns:
        true if the usage parameter is a counter statistic, false if not
      • getCounterValue

        public long getCounterValue​(String name,
                                    boolean reset)
                             throws ManagementException
        Get the value of a counter usage parameter.
        Parameters:
        name - usage parameter name
        reset - if true, counter will be reset to zero
        Returns:
        the value of usage parameter value
        Throws:
        ManagementException
      • getSampleStatistics

        public SampleStatistics getSampleStatistics​(String name,
                                                    boolean reset)
                                             throws ManagementException
        Get the value of a sample usage parameter.
        Parameters:
        name - usage parameter name
        reset - if true, sample will be reset
        Returns:
        the value of usage parameter value
        Throws:
        ManagementException