public interface RateLimiterMBean extends LimiterMBean
A CompositeData object containing detailed Limiter information for specified nodes is returned by
the methods LimiterMBean.getInfoSummary(int[]) and LimiterMBean.getConfigSummary().
| Field | Open Type | Description |
|---|---|---|
| limiter-name | String | The name of this limiter. Always null for per-node values returned by LimiterMBean.getConfigSummary(). |
| type | String | The type of this limiter. Always null for per-node values returned by LimiterMBean.getConfigSummary(). |
| node-id | Integer | The node ID that this row applies to.
-1 for the cluster-wide values row returned by LimiterMBean.getConfigSummary(). |
| parent | String | The name of the parent of this limiter or null if it has no parent.
Always null for per-node values returned by LimiterMBean.getConfigSummary(). |
| maxrate | Double | The maximum rate setting for this limiter |
| time-unit | String | The time unit setting for this limiter. Always null for per-node values returned by LimiterMBean.getConfigSummary(). |
| bypassed | Boolean | The bypassed setting for this limiter |
| depth | Double | The depth setting for this limiter |
| Modifier and Type | Method and Description |
|---|---|
double |
getDepthDefault()
Get the default "depth" of this limiter (depth is the number of time units' worth of work capacity can be stored
by the rate limiter).
|
double[] |
getDepthForNode(int[] nodeIDs)
Get the per-node "depth" of this limiter on the specified nodes (depth is the number of time units' worth
of work capacity can be stored by the rate limiter).
|
double |
getMaxRateDefault()
Get the default maximum number of units which can be consumed per time unit by this limiter,
eg "100" for a rate of 100 per second.
|
double[] |
getMaxRateForNode(int[] nodeIDs)
Get the per-node maximum number of units which can be consumed per time unit by this limiter on the specified nodes,
eg "100" for a rate of 100 per second.
|
String |
getTimeUnit()
Get the type of time unit to be used by this limiter when setting the rate,
eg the "seconds" in a rate of 100 per second.
|
void |
setDepthDefault(double depth)
Set the default "depth" of this limiter (depth is the number of time units' worth of work capacity can be stored
by the rate limiter).
|
void |
setDepthForNode(double[] depth,
int[] nodeIDs)
Set the per-node "depth" of this limiter on the specified nodes (depth is the number of time units' worth
of work capacity can be stored by the rate limiter).
|
void |
setMaxRateDefault(double maxRate)
Set the default maximum number of units which can be consumed per time unit by this limiter,
eg "100" for a rate of 100 per second.
|
void |
setMaxRateForNode(double[] maxRate,
int[] nodeIDs)
Set the per-node maximum number of units which can be consumed per time unit by this limiter on the specified nodes,
eg "100" for a rate of 100 per second.
|
void |
setTimeUnit(String timeUnit)
Set the type of time unit to be used by this limiter when setting the rate,
eg the "seconds" in a rate of 100 per second.
|
getChildLimiters, getConfigSummary, getConnectedEndPoints, getInfoSummary, getName, getParent, getType, isBypassedDefault, isBypassedForNode, setBypassedDefault, setBypassedForNode, setParent, useDefaultConfigdouble getMaxRateDefault()
throws ConfigurationException
ConfigurationExceptiondouble[] getMaxRateForNode(int[] nodeIDs)
throws ConfigurationException,
NullPointerException,
InvalidArgumentException
void setMaxRateDefault(double maxRate)
throws ConfigurationException,
com.opencloud.util.exception.ValidationException
ConfigurationExceptioncom.opencloud.util.exception.ValidationExceptionvoid setMaxRateForNode(double[] maxRate,
int[] nodeIDs)
throws ConfigurationException,
NullPointerException,
InvalidArgumentException,
com.opencloud.util.exception.ValidationException
ConfigurationExceptionNullPointerExceptionInvalidArgumentExceptioncom.opencloud.util.exception.ValidationExceptionString getTimeUnit() throws ConfigurationException
ConfigurationExceptionvoid setTimeUnit(String timeUnit) throws ConfigurationException, com.opencloud.util.exception.ValidationException
ConfigurationExceptioncom.opencloud.util.exception.ValidationExceptiondouble getDepthDefault()
throws ConfigurationException
ConfigurationExceptiondouble[] getDepthForNode(int[] nodeIDs)
throws ConfigurationException,
NullPointerException,
InvalidArgumentException
void setDepthDefault(double depth)
throws ConfigurationException,
com.opencloud.util.exception.ValidationException
ConfigurationExceptioncom.opencloud.util.exception.ValidationExceptionvoid setDepthForNode(double[] depth,
int[] nodeIDs)
throws ConfigurationException,
com.opencloud.util.exception.ValidationException,
NullPointerException,
InvalidArgumentException
ConfigurationExceptioncom.opencloud.util.exception.ValidationExceptionNullPointerExceptionInvalidArgumentException