Package com.opencloud.slee.remote
Class RemoteUsage
- java.lang.Object
-
- com.opencloud.slee.remote.RemoteUsage
-
public class RemoteUsage extends Object
Create proxies for Usage-related MBeans and helper classes to read usage parameters.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRemoteUsage.ProfilesCreate proxies for Profile Table Usage MBeans and helper classes to read usage parameters.static classRemoteUsage.ResourcesCreate proxies for Resource Adaptor Entity Usage MBeans and helper classes to read usage parameters.static classRemoteUsage.SbbsCreate proxies for SBB Usage MBeans and helper classes to read usage parameters.static classRemoteUsage.SubsystemsCreate proxies for SLEE Subsystem Usage MBeans and helper classes to read usage parameters.static classRemoteUsage.UsageNotificationManagerHelps enabling/disabling notifications for usage parameters.static classRemoteUsage.UsageReaderHelps obtaining usage parameters by name.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UsageMBeangetUsageMBean(MBeanServerConnection server, ObjectName objectName)Get a proxy for a UsageMBean with the given object name.static UsageMBeangetUsageMBean(MBeanServerConnection server, NotificationSource notificationSource)Get a UsageMBean for a notification source.static UsageMBeangetUsageMBean(MBeanServerConnection server, NotificationSource notificationSource, String paramSetName)Get a UsageMBean for a notification source and parameter set.static RemoteUsage.UsageNotificationManagergetUsageNotificationManager(MBeanServerConnection server, NotificationSource notificationSource)Get a UsageNotificationManager helper for a notification source.static RemoteUsage.UsageNotificationManagergetUsageNotificationManager(MBeanServerConnection server, NotificationSource notificationSource, String upiType)Get a UsageNotificationManager helper for a notification source and usage parameters interface type.static UsageNotificationManagerMBeangetUsageNotificationManagerMBean(MBeanServerConnection server, ObjectName objectName)Get a proxy for a UsageNotificationManagerMBean with the given object name.static UsageNotificationManagerMBeangetUsageNotificationManagerMBean(MBeanServerConnection server, NotificationSource notificationSource)Get a UsageNotificationManagerMBean for a notification source.static UsageNotificationManagerMBeangetUsageNotificationManagerMBean(MBeanServerConnection server, NotificationSource notificationSource, String upiType)Get a UsageNotificationManagerMBean for a notification source and usage parameters interface type.
-
-
-
Method Detail
-
getUsageMBean
public static UsageMBean getUsageMBean(MBeanServerConnection server, ObjectName objectName)
Get a proxy for a UsageMBean with the given object name.- Parameters:
server- a server connectionobjectName- the objectName of the Usage MBean- Returns:
- a proxy to a UsageMBean on the server
-
getUsageNotificationManagerMBean
public static UsageNotificationManagerMBean getUsageNotificationManagerMBean(MBeanServerConnection server, ObjectName objectName)
Get a proxy for a UsageNotificationManagerMBean with the given object name.- Parameters:
server- a server connectionobjectName- the objectName of the Usage MBean- Returns:
- a proxy to a UsageNotificationManagerMBean on the server
-
getUsageMBean
public static UsageMBean getUsageMBean(MBeanServerConnection server, NotificationSource notificationSource) throws InvalidArgumentException, UnrecognizedServiceException, UnrecognizedSbbException, ManagementException, UnrecognizedProfileTableNameException, UnrecognizedResourceAdaptorEntityException, UnrecognizedSubsystemException
Get a UsageMBean for a notification source.- Parameters:
server- a server connectionnotificationSource- a NotificationSource instance to determine the type of usage and the name of the component- Returns:
- a proxy to a UsageMBean on the server
- Throws:
InvalidArgumentExceptionUnrecognizedServiceException- if the notification source contains a ServiceID that not a recognizable ServiceID for the SLEE or it does not correspond with a Service installed in the SLEEUnrecognizedSbbException- if the notification source contains a SbbID that is not a recognizable `SbbID` for the SLEE, does not correspond with an SBB installed in the SLEE, or is not an SBB that participates in the Service whose usage information is being managed by this MBeanManagementException- if a UsageMBean could not be obtained due to a system-level failureUnrecognizedProfileTableNameExceptionUnrecognizedResourceAdaptorEntityExceptionUnrecognizedSubsystemException
-
getUsageMBean
public static UsageMBean getUsageMBean(MBeanServerConnection server, NotificationSource notificationSource, String paramSetName) throws InvalidArgumentException, UnrecognizedUsageParameterSetNameException, UnrecognizedServiceException, UnrecognizedSbbException, ManagementException, UnrecognizedProfileTableNameException, UnrecognizedResourceAdaptorEntityException, UnrecognizedSubsystemException
Get a UsageMBean for a notification source and parameter set.- Parameters:
server- a server connectionnotificationSource- a NotificationSource instance to determine the type of usage and the name of the componentparamSetName- the name of the usage parameter set- Returns:
- a proxy to a UsageMBean on the server
- Throws:
InvalidArgumentExceptionUnrecognizedUsageParameterSetNameExceptionUnrecognizedServiceException- if the notification source contains a ServiceID that not a recognizable ServiceID for the SLEE or it does not correspond with a Service installed in the SLEEUnrecognizedSbbException- if the notification source contains a SbbID that is not a recognizable `SbbID` for the SLEE, does not correspond with an SBB installed in the SLEE, or is not an SBB that participates in the Service whose usage information is being managed by this MBeanManagementExceptionUnrecognizedProfileTableNameExceptionUnrecognizedResourceAdaptorEntityExceptionUnrecognizedSubsystemException
-
getUsageNotificationManagerMBean
public static UsageNotificationManagerMBean getUsageNotificationManagerMBean(MBeanServerConnection server, NotificationSource notificationSource) throws InvalidArgumentException, UnrecognizedServiceException, UnrecognizedSbbException, ManagementException, UnrecognizedProfileTableNameException, UnrecognizedResourceAdaptorEntityException, UnrecognizedSubsystemException
Get a UsageNotificationManagerMBean for a notification source.- Parameters:
server- a server connectionnotificationSource- a NotificationSource instance to determine the type of usage and the name of the component- Returns:
- a proxy to a UsageNotificationManagerMBean on the server
- Throws:
InvalidArgumentExceptionUnrecognizedServiceException- if the notification source contains a ServiceID that not a recognizable ServiceID for the SLEE or it does not correspond with a Service installed in the SLEEUnrecognizedSbbException- if the notification source contains a SbbID that is not a recognizable `SbbID` for the SLEE, does not correspond with an SBB installed in the SLEE, or is not an SBB that participates in the Service whose usage information is being managed by this MBeanManagementExceptionUnrecognizedProfileTableNameExceptionUnrecognizedResourceAdaptorEntityExceptionUnrecognizedSubsystemException
-
getUsageNotificationManagerMBean
public static UsageNotificationManagerMBean getUsageNotificationManagerMBean(MBeanServerConnection server, NotificationSource notificationSource, String upiType) throws InvalidArgumentException, UnrecognizedServiceException, UnrecognizedSbbException, ManagementException, UnrecognizedProfileTableNameException, UnrecognizedResourceAdaptorEntityException, UnrecognizedSubsystemException, UnrecognizedUsageParametersInterfaceTypeException
Get a UsageNotificationManagerMBean for a notification source and usage parameters interface type.- Parameters:
server- a server connectionnotificationSource- a NotificationSource instance to determine the type of usage and the name of the componentupiType- the usage parameters interface type- Returns:
- a proxy to a UsageNotificationManagerMBean on the server
- Throws:
InvalidArgumentExceptionUnrecognizedServiceException- if the notification source contains a ServiceID that not a recognizable ServiceID for the SLEE or it does not correspond with a Service installed in the SLEEUnrecognizedSbbException- if the notification source contains a SbbID that is not a recognizable `SbbID` for the SLEE, does not correspond with an SBB installed in the SLEE, or is not an SBB that participates in the Service whose usage information is being managed by this MBeanManagementExceptionUnrecognizedProfileTableNameExceptionUnrecognizedResourceAdaptorEntityExceptionUnrecognizedSubsystemExceptionUnrecognizedUsageParametersInterfaceTypeException
-
getUsageNotificationManager
public static RemoteUsage.UsageNotificationManager getUsageNotificationManager(MBeanServerConnection server, NotificationSource notificationSource) throws InvalidArgumentException, UnrecognizedServiceException, UnrecognizedSbbException, ManagementException, UnrecognizedProfileTableNameException, UnrecognizedResourceAdaptorEntityException, UnrecognizedSubsystemException
Get a UsageNotificationManager helper for a notification source.- Parameters:
server- a server connectionnotificationSource- a NotificationSource instance to determine the type of usage and the name of the component- Returns:
- a UsageNotificationManager helper object
- Throws:
InvalidArgumentExceptionUnrecognizedServiceException- if the notification source contains a ServiceID that not a recognizable ServiceID for the SLEE or it does not correspond with a Service installed in the SLEEUnrecognizedSbbException- if the notification source contains a SbbID that is not a recognizable `SbbID` for the SLEE, does not correspond with an SBB installed in the SLEE, or is not an SBB that participates in the Service whose usage information is being managed by this MBeanManagementExceptionUnrecognizedProfileTableNameExceptionUnrecognizedResourceAdaptorEntityExceptionUnrecognizedSubsystemException
-
getUsageNotificationManager
public static RemoteUsage.UsageNotificationManager getUsageNotificationManager(MBeanServerConnection server, NotificationSource notificationSource, String upiType) throws InvalidArgumentException, UnrecognizedServiceException, UnrecognizedSbbException, ManagementException, UnrecognizedProfileTableNameException, UnrecognizedResourceAdaptorEntityException, UnrecognizedSubsystemException, UnrecognizedUsageParametersInterfaceTypeException
Get a UsageNotificationManager helper for a notification source and usage parameters interface type.- Parameters:
server- a server connectionnotificationSource- a NotificationSource instance to determine the type of usage and the name of the componentupiType- the usage parameters interface type- Returns:
- a UsageNotificationManager helper object
- Throws:
InvalidArgumentExceptionUnrecognizedServiceException- if the notification source contains a ServiceID that not a recognizable ServiceID for the SLEE or it does not correspond with a Service installed in the SLEEUnrecognizedSbbException- if the notification source contains a SbbID that is not a recognizable `SbbID` for the SLEE, does not correspond with an SBB installed in the SLEE, or is not an SBB that participates in the Service whose usage information is being managed by this MBeanManagementExceptionUnrecognizedProfileTableNameExceptionUnrecognizedResourceAdaptorEntityExceptionUnrecognizedSubsystemExceptionUnrecognizedUsageParametersInterfaceTypeException
-
-