Package com.opencloud.slee.remote
Class RemoteUsage.Subsystems
- java.lang.Object
-
- com.opencloud.slee.remote.RemoteUsage.Subsystems
-
- Enclosing class:
- RemoteUsage
public static class RemoteUsage.Subsystems extends Object
Create proxies for SLEE Subsystem Usage MBeans and helper classes to read usage parameters.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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 aRemoteUsage.UsageReader
.static RemoteUsage.UsageReader
getUsageReader(MBeanServerConnection server, String subsystemName, String paramSetName)
Get aRemoteUsage.UsageReader
.
-
-
-
Method Detail
-
getUsageMBean
public static UsageMBean getUsageMBean(MBeanServerConnection server, String subsystemName) throws NullPointerException, UnrecognizedSubsystemException, InvalidArgumentException, ManagementException
Get a UsageMBean for the unnamed parameter set for a subsystem.- Parameters:
server
- a server connectionsubsystemName
- the name of the SLEE subsystem- Returns:
- a proxy to a UsageMBean on the server
- Throws:
NullPointerException
UnrecognizedSubsystemException
InvalidArgumentException
ManagementException
- if the Usage MBean Object Name could not be obtained due to a system-level failure
-
getUsageMBean
public 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.- Parameters:
server
- a server connectionsubsystemName
- the name of the SLEE subsystemparamSetName
- the name of the usage parameter set- Returns:
- a proxy to a UsageMBean on the server
- Throws:
NullPointerException
UnrecognizedSubsystemException
InvalidArgumentException
UnrecognizedUsageParameterSetNameException
ManagementException
- if the Usage MBean Object Name could not be obtained due to a system-level failure
-
getUsageNotificationManagerMBean
public static UsageNotificationManagerMBean getUsageNotificationManagerMBean(MBeanServerConnection server, String subsystemName) throws NullPointerException, UnrecognizedSubsystemException, InvalidArgumentException, ManagementException
Get a UsageNotificationManagerMBean for a SLEE subsystem.- Parameters:
server
- a server connectionsubsystemName
- the name of the SLEE subsystem- Returns:
- a proxy to a UsageNotificationManagerMBean on the server
- Throws:
NullPointerException
UnrecognizedSubsystemException
InvalidArgumentException
ManagementException
-
getUsageReader
public static RemoteUsage.UsageReader getUsageReader(MBeanServerConnection server, String subsystemName) throws InvalidArgumentException, UnrecognizedSubsystemException, ManagementException
Get aRemoteUsage.UsageReader
.- Parameters:
server
- a server connectionsubsystemName
- the name of the SLEE subsystem- Returns:
- a UsageReader helper object
- Throws:
InvalidArgumentException
UnrecognizedSubsystemException
ManagementException
-
getUsageReader
public static RemoteUsage.UsageReader getUsageReader(MBeanServerConnection server, String subsystemName, String paramSetName) throws InvalidArgumentException, UnrecognizedUsageParameterSetNameException, UnrecognizedSubsystemException, ManagementException
Get aRemoteUsage.UsageReader
.- Parameters:
server
- a server connectionsubsystemName
- the name of the SLEE subsystemparamSetName
- the name of the usage parameter set- Returns:
- a UsageReader helper object
- Throws:
InvalidArgumentException
UnrecognizedUsageParameterSetNameException
UnrecognizedSubsystemException
ManagementException
-
getUsageNotificationManager
public static RemoteUsage.UsageNotificationManager getUsageNotificationManager(MBeanServerConnection server, String subsystemName) throws InvalidArgumentException, UnrecognizedSubsystemException, ManagementException
- Parameters:
server
- a server connectionsubsystemName
- the name of the SLEE subsystem- Returns:
- a UsageNotificationManager helper object
- Throws:
InvalidArgumentException
UnrecognizedSubsystemException
ManagementException
-
-