Interface StatLimiterMBean

    • Method Detail

      • getParameterSet

        String getParameterSet()
                        throws ConfigurationException

        Get the parameter set for the statistic to monitor.

        Returns:
        the parameter set name
        Throws:
        ConfigurationException - if an error occurred reading the limiter configuration.
        Since:
        Rhino 2.7.0
      • setParameterSetStatistic

        void setParameterSetStatistic​(String parameterSet,
                                      String statistic)
                               throws ConfigurationException,
                                      com.opencloud.util.exception.ValidationException

        Set the parameter set and statistic to monitor.

        Parameters:
        parameterSet - the parameter set name
        statistic - the statistic name
        Throws:
        ConfigurationException - if an error occurred updating the limiter configuration.
        com.opencloud.util.exception.ValidationException - if the new limiter configuration is invalid.
        Since:
        Rhino 2.7.0
      • getLimitPercentages

        double[] getLimitPercentages()
                              throws ConfigurationException

        Get the corresponding limit percentages for the limiting tiers.

        Returns:
        an array of the max value limit percentages or an empty array if not configured
        Throws:
        ConfigurationException - if an error occurred reading the limiter configuration.
        Since:
        Rhino 2.7.0
      • getLimitPercentagesForNodes

        double[][] getLimitPercentagesForNodes​(int[] nodeIDs)
                                        throws ConfigurationException,
                                               InvalidArgumentException

        Get the corresponding per-node limit percentages for the limiting tiers.

        Parameters:
        nodeIDs - the IDs of the nodes
        Returns:
        a two-dimensional array of the limit percentages for each node or an empty array if not configured
        Throws:
        ConfigurationException - if an error occurred reading the limiter configuration.
        InvalidArgumentException - if nodeIDs is a zero-length array.
        Since:
        Rhino 2.7.0