Package com.opencloud.rhino.limiting
Interface StatLimiterMBean
-
- All Superinterfaces:
LimiterMBean
- All Known Subinterfaces:
AbsoluteStatLimiterMBean,RelativeStatLimiterMBean
public interface StatLimiterMBean extends LimiterMBean
Defines the JMX interface for controlling a single stat limiter.
- Since:
- Rhino 2.7.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double[]getLimitPercentages()Get the corresponding limit percentages for the limiting tiers.double[][]getLimitPercentagesForNodes(int[] nodeIDs)Get the corresponding per-node limit percentages for the limiting tiers.StringgetParameterSet()Get the parameter set for the statistic to monitor.StringgetStatistic()Get the statistic to monitor.voidsetParameterSetStatistic(String parameterSet, String statistic)Set the parameter set and statistic to monitor.-
Methods inherited from interface com.opencloud.rhino.limiting.LimiterMBean
getChildLimiters, getConfigSummary, getConnectedEndPoints, getInfoSummary, getName, getParent, getType, isBypassedDefault, isBypassedForNode, setBypassedDefault, setBypassedForNode, setBypassedForNode, setParent, useDefaultConfig
-
-
-
-
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
-
getStatistic
String getStatistic() throws ConfigurationException
Get the statistic to monitor.
- Returns:
- the statistic 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 namestatistic- 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 ConfigurationExceptionGet 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, InvalidArgumentExceptionGet 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
-
-