Interface LimiterManagementMBean
-
public interface LimiterManagementMBeanDefines the JMX interface used for managing the limiting sub-system.
-
-
Field Summary
Fields Modifier and Type Field Description static StringENDPOINT_ID_PREFIX_RA_ENTITYstatic StringENDPOINT_ID_PREFIX_SERVICE_ENTITYstatic StringMBEAN_NAMEstatic StringOBJECT_NAMEThe JMX Object Name of this MBean.static StringRA_ENTITY_INPUT_ENDPOINT_NAMEstatic StringSYSTEM_INPUT_LIMITER_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconnectLimiterEndpoint(String limiterEndpointID, String limiterName)Connect a limiter to a limiter endpoint.voidcreateLimiter(String type, String name)Create a limiter using the specified properties.voiddisconnectLimiterEndpoint(String limiterEndpointID)Disconnect a limiter from a limiter endpoint.StringgetHierarchySummary()Get a (multiline) string describing all limiter hierarchies and the connected endpoints.String[]getLimiterEndpoints()Get the set of endpoint IDs that identify all the endpoints in the SLEE.TabularDatagetLimiterEndpointsInfo()Returns a TabularData object containing two String columns:StringgetLimiterForEndpoint(String limiterEndpointID)Get the name of the limiter connected to the specified limiter endpointObjectNamegetLimiterMBean(String name)Get the JMX ObjectName for a com.opencloud.rhino.limiting.LimiterMBean object for the specified limiter.ObjectNamegetLimiterRampUpMBean()Get the JMX ObjectName for aLimiterRampUpMBeanobject for the SystemInput limiter.ObjectNamegetLimiterRampUpMBean(String name)Get the JMX ObjectName for aLimiterRampUpMBeanobject for the specified limiter.String[]getLimiters()Get the set of limiter names that identify all the limiters in the SLEE.ObjectNamegetSystemInputLimiterMBean()Get the JMX ObjectName for aLimiterMBeanobject for the SystemInput limiter.voidremoveLimiter(String name)Remove a limiter.
-
-
-
Field Detail
-
ENDPOINT_ID_PREFIX_RA_ENTITY
static final String ENDPOINT_ID_PREFIX_RA_ENTITY
- See Also:
- Constant Field Values
-
ENDPOINT_ID_PREFIX_SERVICE_ENTITY
static final String ENDPOINT_ID_PREFIX_SERVICE_ENTITY
- See Also:
- Constant Field Values
-
MBEAN_NAME
static final String MBEAN_NAME
- See Also:
- Constant Field Values
-
RA_ENTITY_INPUT_ENDPOINT_NAME
static final String RA_ENTITY_INPUT_ENDPOINT_NAME
- See Also:
- Constant Field Values
-
SYSTEM_INPUT_LIMITER_NAME
static final String SYSTEM_INPUT_LIMITER_NAME
- See Also:
- Constant Field Values
-
OBJECT_NAME
static final String OBJECT_NAME
The JMX Object Name of this MBean.
- See Also:
- Constant Field Values
-
-
Method Detail
-
createLimiter
void createLimiter(String type, String name) throws NullPointerException, InvalidArgumentException, ConfigurationException, com.opencloud.util.exception.ValidationException, LimitingManagementException
Create a limiter using the specified properties.
- Parameters:
type- The type of the limiter to be created. Must be the name of aLimiterTypeconstant.name- The name of the limiter to be created- Throws:
NullPointerExceptionInvalidArgumentExceptionConfigurationExceptioncom.opencloud.util.exception.ValidationExceptionLimitingManagementException
-
removeLimiter
void removeLimiter(String name) throws NullPointerException, InvalidArgumentException, ConfigurationException, LimitingManagementException
Remove a limiter.
- Parameters:
name- The name of the limiter to be removed- Throws:
NullPointerExceptionInvalidArgumentExceptionConfigurationExceptionLimitingManagementException
-
getLimiters
String[] getLimiters() throws ConfigurationException
Get the set of limiter names that identify all the limiters in the SLEE.
- Returns:
- an array of limiter names. An empty array is returned if there are no limiters.
- Throws:
ConfigurationException
-
connectLimiterEndpoint
void connectLimiterEndpoint(String limiterEndpointID, String limiterName) throws NullPointerException, InvalidArgumentException, ConfigurationException, ManagementException, LimitingManagementException
Connect a limiter to a limiter endpoint.
This method operates only on limiter endpoints for the currently active namespace for the client connection. The appropriate namespace must therefore be selected before trying to manage any given limiter endpoint.
- Parameters:
limiterEndpointID- The ID of the limiter endpoint to connect tolimiterName- The name of the limiter to be connected to the endpoint- Throws:
NullPointerExceptionInvalidArgumentExceptionConfigurationExceptionManagementExceptionLimitingManagementException
-
getLimiterForEndpoint
String getLimiterForEndpoint(String limiterEndpointID) throws NullPointerException, InvalidArgumentException, ConfigurationException, ManagementException
Get the name of the limiter connected to the specified limiter endpoint
This method operates only on limiter endpoints for the currently active namespace for the client connection. The appropriate namespace must therefore be selected before trying to manage any given limiter endpoint.
- Parameters:
limiterEndpointID- The ID of the limiter endpoint- Returns:
- The name of the limiter the endpoint is connected to (or null if it is not connected).
- Throws:
NullPointerExceptionInvalidArgumentExceptionConfigurationExceptionManagementException
-
disconnectLimiterEndpoint
void disconnectLimiterEndpoint(String limiterEndpointID) throws NullPointerException, InvalidArgumentException, ConfigurationException, LimitingManagementException, ManagementException
Disconnect a limiter from a limiter endpoint.
This method operates only on limiter endpoints for the currently active namespace for the client connection. The appropriate namespace must therefore be selected before trying to manage any given limiter endpoint.
- Parameters:
limiterEndpointID- The ID of the limiter endpoint- Throws:
NullPointerExceptionInvalidArgumentExceptionConfigurationExceptionLimitingManagementExceptionManagementException
-
getLimiterEndpoints
String[] getLimiterEndpoints() throws ConfigurationException, ManagementException
Get the set of endpoint IDs that identify all the endpoints in the SLEE.
This method operates only on limiter endpoints for the currently active namespace for the client connection. The appropriate namespace must therefore be selected before trying to query limiter endpoints.
- Returns:
- an array of endpoint IDs. An empty array is returned if there are no endpoints.
- Throws:
ConfigurationExceptionManagementException
-
getLimiterEndpointsInfo
TabularData getLimiterEndpointsInfo() throws ConfigurationException, ManagementException
Returns a TabularData object containing two String columns:
-
A "limiterendpoint" column containing the endpoint ID
-
A "connected-limiter" column containing the name of the connected limiter, or
nullif the endpoint is not connected to a limiter
This method operates only on limiter endpoints for the currently active namespace for the client connection. The appropriate namespace must therefore be selected before trying to query limiter endpoints.
-
-
getLimiterMBean
ObjectName getLimiterMBean(String name) throws NullPointerException, InvalidArgumentException, ConfigurationException, ManagementException
Get the JMX ObjectName for a com.opencloud.rhino.limiting.LimiterMBean object for the specified limiter.
- Parameters:
name- The name of the limiter- Returns:
- a JMX ObjectName for a
LimiterMBeanobject for the specified limiter. - Throws:
NullPointerExceptionInvalidArgumentExceptionConfigurationExceptionManagementException
-
getSystemInputLimiterMBean
ObjectName getSystemInputLimiterMBean() throws NullPointerException, InvalidArgumentException, ConfigurationException, ManagementException
Get the JMX ObjectName for a
LimiterMBeanobject for the SystemInput limiter.- Returns:
- a JMX ObjectName for a
LimiterMBeanobject for the SystemInput limiter. - Throws:
NullPointerExceptionInvalidArgumentExceptionConfigurationExceptionManagementException
-
getLimiterRampUpMBean
ObjectName getLimiterRampUpMBean() throws ConfigurationException, ManagementException
Get the JMX ObjectName for a
LimiterRampUpMBeanobject for the SystemInput limiter.- Returns:
- a JMX ObjectName for a
LimiterRampUpMBeanobject for the SystemInput limiter. - Throws:
ConfigurationExceptionManagementException
-
getLimiterRampUpMBean
ObjectName getLimiterRampUpMBean(String name) throws InvalidArgumentException, ConfigurationException, ManagementException
Get the JMX ObjectName for a
LimiterRampUpMBeanobject for the specified limiter.- Returns:
- a JMX ObjectName for a
LimiterRampUpMBeanobject for the specified limiter. - Throws:
ConfigurationExceptionManagementExceptionInvalidArgumentException
-
getHierarchySummary
String getHierarchySummary() throws ConfigurationException, ManagementException
Get a (multiline) string describing all limiter hierarchies and the connected endpoints. The returned String is intended for display purpose, e.g. for printing to a terminal.
- Returns:
- a (multiline) string describing all limiter hierarchies and the connected endpoints.
- Throws:
ConfigurationExceptionManagementException
-
-