public interface QueueSaturationLimiterMBean extends LimiterMBean
Defines the JMX interface for controlling a single queue saturation limiter.
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 |
type |
String |
The type of this limiter.
Always |
node-id |
Integer |
The node ID that this row applies to. |
parent |
String |
The name of the parent of this limiter or null if it has no parent.
Always |
max-saturation |
Double |
The maximum saturation setting for this limiter |
bypassed |
Boolean |
The bypassed setting for this limiter |
Modifier and Type | Method and Description |
---|---|
double |
getMaxSaturationDefault()
Get the default maximum amount of saturation allowed in the queue, as a percentage, before this limiter will reject work.
|
double[] |
getMaxSaturationForNode(int[] nodeIDs)
Get the per-node maximum amount of saturation allowed in the queue on the specified nodes, as a percentage, before this limiter will reject work.
|
void |
setMaxSaturationDefault(double maxSaturation)
Set the default maximum amount of saturation allowed in the queue, as a percentage, before this limiter will reject work (the range of valid values is from "0" to "100").
|
void |
setMaxSaturationForNode(double[] maxSaturation,
int[] nodeIDs)
Set the per-node maximum amount of saturation allowed in the queue on the specified nodes, as a percentage, before this limiter will reject work (the range of valid values is from "0" to "100").
|
void |
setMaxSaturationForNode(Double[] maxSaturation,
int[] nodeIDs)
Set the per-node maximum amount of saturation allowed in the queue on the specified nodes, as a percentage, before this limiter will reject work (the range of valid values is from "0" to "100").
|
getChildLimiters, getConfigSummary, getConnectedEndPoints, getInfoSummary, getName, getParent, getType, isBypassedDefault, isBypassedForNode, setBypassedDefault, setBypassedForNode, setBypassedForNode, setParent, useDefaultConfig
double getMaxSaturationDefault() throws ConfigurationException
Get the default maximum amount of saturation allowed in the queue, as a percentage, before this limiter will reject work. E.g. "80" means that the limiter will reject work when the queue is over 80% full. The range of valid values is from "0" to "100". This value will be used when no per-node setting exists for a given node.
ConfigurationException
double[] getMaxSaturationForNode(int[] nodeIDs) throws ConfigurationException, NullPointerException, InvalidArgumentException
Get the per-node maximum amount of saturation allowed in the queue on the specified nodes, as a percentage, before this limiter will reject work. E.g. "80" means that the limiter will reject work when the queue is over 80% full. The range of valid values is from "0" to "100".
void setMaxSaturationDefault(double maxSaturation) throws ConfigurationException, com.opencloud.util.exception.ValidationException
Set the default maximum amount of saturation allowed in the queue, as a percentage, before this limiter will reject work (the range of valid values is from "0" to "100"). E.g. "80" means that the limiter will reject work when the queue is over 80% full. This value will be used when no per-node setting exists for a given node.
ConfigurationException
com.opencloud.util.exception.ValidationException
void setMaxSaturationForNode(double[] maxSaturation, int[] nodeIDs) throws ConfigurationException, com.opencloud.util.exception.ValidationException, NullPointerException, InvalidArgumentException
Set the per-node maximum amount of saturation allowed in the queue on the specified nodes, as a percentage, before this limiter will reject work (the range of valid values is from "0" to "100"). E.g. "80" means that the limiter will reject work when the queue is over 80% full.
ConfigurationException
com.opencloud.util.exception.ValidationException
NullPointerException
InvalidArgumentException
void setMaxSaturationForNode(Double[] maxSaturation, int[] nodeIDs) throws ConfigurationException, com.opencloud.util.exception.ValidationException, NullPointerException, InvalidArgumentException
Set the per-node maximum amount of saturation allowed in the queue on the specified nodes, as a percentage, before this limiter will reject work (the range of valid values is from "0" to "100"). E.g. "80" means that the limiter will reject work when the queue is over 80% full.
This method is identical to setMaxSaturationForNode(double[], int[])
but it allows a previously set per-node value to be deleted by specifying a null value for that node in the input array.
ConfigurationException
com.opencloud.util.exception.ValidationException
NullPointerException
InvalidArgumentException