public interface LimiterMBean
Defines the base JMX interface for controlling a single limiter.
Modifier and Type | Method and Description |
---|---|
String[] |
getChildLimiters()
Get the names of all limiters for which this limiter is their parent.
|
TabularData |
getConfigSummary()
Get the default and per node configuration values stored for this limiter.
|
String[] |
getConnectedEndPoints()
Get the IDs of the limiter endpoints connected to this limiter.
|
TabularData |
getInfoSummary(int[] nodeIDs)
Get a summary of the configuration of this limiter on the specified nodes (as derived from default and per node settings).
|
String |
getName()
Get the name of this limiter.
|
String |
getParent()
Get the name of the parent of this limiter (or null if no parent is set).
|
String |
getType()
Get the type of this limiter.
|
boolean |
isBypassedDefault()
Get the default "bypassed" property for this limiter (if bypassed is true this limiter will delegate all decisions to its parent or if the is no parent will allow all useUnit/s()).
|
boolean[] |
isBypassedForNode(int[] nodeIDs)
Get the per-node "bypassed" property for this limiter on the specified nodes (if bypassed is true this limiter will delegate all decisions to its parent or if the is no parent will allow all useUnit/s()).
|
void |
setBypassedDefault(boolean bypassed)
Set the default "bypassed" property for this limiter (if bypassed is true this limiter will delegate all decisions to its parent or if the is no parent will allow all useUnit/s()).
|
void |
setBypassedForNode(boolean[] bypassed,
int[] nodeIDs)
Set the per-node "bypassed" property for this limiter on the specified nodes (if bypassed is true this limiter will delegate all decisions to its parent or if the is no parent will allow all useUnit/s()).
|
void |
setParent(String parentName)
Set the specified limiter as the parent of this limiter.
|
void |
useDefaultConfig(int[] nodeIDs)
Removes any node specific configuration settings for the limiter on the given node(s), causing the nodes to use the cluster wide settings.
|
boolean isBypassedDefault() throws ConfigurationException
Get the default "bypassed" property for this limiter (if bypassed is true this limiter will delegate all decisions to its parent or if the is no parent will allow all useUnit/s()). This value will be used when no per-node setting exists for a given node.
ConfigurationException
boolean[] isBypassedForNode(int[] nodeIDs) throws NullPointerException, ConfigurationException, InvalidArgumentException
Get the per-node "bypassed" property for this limiter on the specified nodes (if bypassed is true this limiter will delegate all decisions to its parent or if the is no parent will allow all useUnit/s()).
void setBypassedDefault(boolean bypassed) throws ConfigurationException
Set the default "bypassed" property for this limiter (if bypassed is true this limiter will delegate all decisions to its parent or if the is no parent will allow all useUnit/s()). This value will be used when no per-node setting exists for a given node.
ConfigurationException
void setBypassedForNode(boolean[] bypassed, int[] nodeIDs) throws NullPointerException, ConfigurationException, InvalidArgumentException
Set the per-node "bypassed" property for this limiter on the specified nodes (if bypassed is true this limiter will delegate all decisions to its parent or if the is no parent will allow all useUnit/s()).
TabularData getConfigSummary() throws ConfigurationException
Get the default and per node configuration values stored for this limiter.
ConfigurationException
String[] getConnectedEndPoints() throws ConfigurationException
Get the IDs of the limiter endpoints connected to this limiter.
Limiter endpoints in the default namespace are presented simply by their ID.
Limiter endpoints in user-defined namespaces are presented in the format "[<namespace>]/<ID>"
.
ConfigurationException
String[] getChildLimiters() throws ConfigurationException
Get the names of all limiters for which this limiter is their parent.
ConfigurationException
TabularData getInfoSummary(int[] nodeIDs) throws ConfigurationException, InvalidArgumentException
Get a summary of the configuration of this limiter on the specified nodes (as derived from default and per node settings).
void useDefaultConfig(int[] nodeIDs) throws ConfigurationException, InvalidArgumentException
Removes any node specific configuration settings for the limiter on the given node(s), causing the nodes to use the cluster wide settings.
String getName() throws ConfigurationException
Get the name of this limiter.
ConfigurationException
String getType() throws ConfigurationException
Get the type of this limiter. "RATE" indicates a rate limiter, while "QUEUE_SATURATION" indicates a queue saturation limiter.
ConfigurationException
String getParent() throws ConfigurationException
Get the name of the parent of this limiter (or null if no parent is set).
ConfigurationException
void setParent(String parentName) throws ConfigurationException, com.opencloud.util.exception.ValidationException, NullPointerException, InvalidArgumentException
Set the specified limiter as the parent of this limiter.
parentName
- ConfigurationException
com.opencloud.util.exception.ValidationException
NullPointerException
InvalidArgumentException