public static class RemoteUsage.Subsystems extends Object
Create proxies for SLEE Subsystem Usage MBeans and helper classes to read usage parameters.
| Modifier and Type | Method and Description |
|---|---|
static UsageMBean |
getUsageMBean(MBeanServerConnection server,
String subsystemName)
Get a UsageMBean for the unnamed parameter set for a subsystem.
|
static UsageMBean |
getUsageMBean(MBeanServerConnection server,
String subsystemName,
String paramSetName)
Get a UsageMBean for a named parameter set for a subsystem.
|
static RemoteUsage.UsageNotificationManager |
getUsageNotificationManager(MBeanServerConnection server,
String subsystemName)
|
static UsageNotificationManagerMBean |
getUsageNotificationManagerMBean(MBeanServerConnection server,
String subsystemName)
Get a UsageNotificationManagerMBean for a SLEE subsystem.
|
static RemoteUsage.UsageReader |
getUsageReader(MBeanServerConnection server,
String subsystemName)
Get a
RemoteUsage.UsageReader. |
static RemoteUsage.UsageReader |
getUsageReader(MBeanServerConnection server,
String subsystemName,
String paramSetName)
Get a
RemoteUsage.UsageReader. |
public static UsageMBean getUsageMBean(MBeanServerConnection server, String subsystemName) throws NullPointerException, UnrecognizedSubsystemException, InvalidArgumentException, ManagementException
Get a UsageMBean for the unnamed parameter set for a subsystem.
server - a server connectionsubsystemName - the name of the SLEE subsystemNullPointerExceptionUnrecognizedSubsystemExceptionInvalidArgumentExceptionManagementException - if the Usage MBean Object Name could not be obtained due to a system-level failurepublic static UsageMBean getUsageMBean(MBeanServerConnection server, String subsystemName, String paramSetName) throws NullPointerException, UnrecognizedSubsystemException, InvalidArgumentException, UnrecognizedUsageParameterSetNameException, ManagementException
Get a UsageMBean for a named parameter set for a subsystem.
server - a server connectionsubsystemName - the name of the SLEE subsystemparamSetName - the name of the usage parameter setNullPointerExceptionUnrecognizedSubsystemExceptionInvalidArgumentExceptionUnrecognizedUsageParameterSetNameExceptionManagementException - if the Usage MBean Object Name could not be obtained due to a system-level failurepublic static UsageNotificationManagerMBean getUsageNotificationManagerMBean(MBeanServerConnection server, String subsystemName) throws NullPointerException, UnrecognizedSubsystemException, InvalidArgumentException, ManagementException
Get a UsageNotificationManagerMBean for a SLEE subsystem.
server - a server connectionsubsystemName - the name of the SLEE subsystemNullPointerExceptionUnrecognizedSubsystemExceptionInvalidArgumentExceptionManagementExceptionpublic static RemoteUsage.UsageReader getUsageReader(MBeanServerConnection server, String subsystemName) throws InvalidArgumentException, UnrecognizedSubsystemException, ManagementException
Get a RemoteUsage.UsageReader.
server - a server connectionsubsystemName - the name of the SLEE subsystemInvalidArgumentExceptionUnrecognizedSubsystemExceptionManagementExceptionpublic static RemoteUsage.UsageReader getUsageReader(MBeanServerConnection server, String subsystemName, String paramSetName) throws InvalidArgumentException, UnrecognizedUsageParameterSetNameException, UnrecognizedSubsystemException, ManagementException
Get a RemoteUsage.UsageReader.
server - a server connectionsubsystemName - the name of the SLEE subsystemparamSetName - the name of the usage parameter setInvalidArgumentExceptionUnrecognizedUsageParameterSetNameExceptionUnrecognizedSubsystemExceptionManagementExceptionpublic static RemoteUsage.UsageNotificationManager getUsageNotificationManager(MBeanServerConnection server, String subsystemName) throws InvalidArgumentException, UnrecognizedSubsystemException, ManagementException
server - a server connectionsubsystemName - the name of the SLEE subsystemInvalidArgumentExceptionUnrecognizedSubsystemExceptionManagementException