public class RemoteUsage extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RemoteUsage.Profiles
Create proxies for Profile Table Usage MBeans and helper classes to read usage parameters.
|
static class |
RemoteUsage.Resources
Create proxies for Resource Adaptor Entity Usage MBeans and helper classes to read usage parameters.
|
static class |
RemoteUsage.Sbbs
Create proxies for SBB Usage MBeans and helper classes to read usage parameters.
|
static class |
RemoteUsage.Subsystems
Create proxies for SLEE Subsystem Usage MBeans and helper classes to read usage parameters.
|
static class |
RemoteUsage.UsageNotificationManager
Helps enabling/disabling notifications for usage parameters.
|
static class |
RemoteUsage.UsageReader
Helps obtaining usage parameters by name.
|
Modifier and Type | Method and Description |
---|---|
static UsageMBean |
getUsageMBean(MBeanServerConnection server,
NotificationSource notificationSource)
Get a UsageMBean for a notification source.
|
static UsageMBean |
getUsageMBean(MBeanServerConnection server,
NotificationSource notificationSource,
String paramSetName)
Get a UsageMBean for a notification source and parameter set.
|
static UsageMBean |
getUsageMBean(MBeanServerConnection server,
ObjectName objectName)
Get a proxy for a UsageMBean with the given object name.
|
static RemoteUsage.UsageNotificationManager |
getUsageNotificationManager(MBeanServerConnection server,
NotificationSource notificationSource)
Get a UsageNotificationManager helper for a notification source.
|
static RemoteUsage.UsageNotificationManager |
getUsageNotificationManager(MBeanServerConnection server,
NotificationSource notificationSource,
String upiType)
Get a UsageNotificationManager helper for a notification source and usage parameters interface type.
|
static UsageNotificationManagerMBean |
getUsageNotificationManagerMBean(MBeanServerConnection server,
NotificationSource notificationSource)
Get a UsageNotificationManagerMBean for a notification source.
|
static UsageNotificationManagerMBean |
getUsageNotificationManagerMBean(MBeanServerConnection server,
NotificationSource notificationSource,
String upiType)
Get a UsageNotificationManagerMBean for a notification source and usage parameters interface type.
|
static UsageNotificationManagerMBean |
getUsageNotificationManagerMBean(MBeanServerConnection server,
ObjectName objectName)
Get a proxy for a UsageNotificationManagerMBean with the given object name.
|
public static UsageMBean getUsageMBean(MBeanServerConnection server, ObjectName objectName)
server
- a server connectionobjectName
- the objectName of the Usage MBeanpublic static UsageNotificationManagerMBean getUsageNotificationManagerMBean(MBeanServerConnection server, ObjectName objectName)
server
- a server connectionobjectName
- the objectName of the Usage MBeanpublic static UsageMBean getUsageMBean(MBeanServerConnection server, NotificationSource notificationSource) throws InvalidArgumentException, UnrecognizedServiceException, UnrecognizedSbbException, ManagementException, UnrecognizedProfileTableNameException, UnrecognizedResourceAdaptorEntityException, UnrecognizedSubsystemException
server
- a server connectionnotificationSource
- a NotificationSource instance to determine the type of usage and the name of the componentInvalidArgumentException
UnrecognizedServiceException
- 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 failureUnrecognizedProfileTableNameException
UnrecognizedResourceAdaptorEntityException
UnrecognizedSubsystemException
public static UsageMBean getUsageMBean(MBeanServerConnection server, NotificationSource notificationSource, String paramSetName) throws InvalidArgumentException, UnrecognizedUsageParameterSetNameException, UnrecognizedServiceException, UnrecognizedSbbException, ManagementException, UnrecognizedProfileTableNameException, UnrecognizedResourceAdaptorEntityException, UnrecognizedSubsystemException
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 setInvalidArgumentException
UnrecognizedUsageParameterSetNameException
UnrecognizedServiceException
- 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
UnrecognizedProfileTableNameException
UnrecognizedResourceAdaptorEntityException
UnrecognizedSubsystemException
public static UsageNotificationManagerMBean getUsageNotificationManagerMBean(MBeanServerConnection server, NotificationSource notificationSource) throws InvalidArgumentException, UnrecognizedServiceException, UnrecognizedSbbException, ManagementException, UnrecognizedProfileTableNameException, UnrecognizedResourceAdaptorEntityException, UnrecognizedSubsystemException
server
- a server connectionnotificationSource
- a NotificationSource instance to determine the type of usage and the name of the componentInvalidArgumentException
UnrecognizedServiceException
- 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
UnrecognizedProfileTableNameException
UnrecognizedResourceAdaptorEntityException
UnrecognizedSubsystemException
public static UsageNotificationManagerMBean getUsageNotificationManagerMBean(MBeanServerConnection server, NotificationSource notificationSource, String upiType) throws InvalidArgumentException, UnrecognizedServiceException, UnrecognizedSbbException, ManagementException, UnrecognizedProfileTableNameException, UnrecognizedResourceAdaptorEntityException, UnrecognizedSubsystemException, UnrecognizedUsageParametersInterfaceTypeException
server
- a server connectionnotificationSource
- a NotificationSource instance to determine the type of usage and the name of the componentupiType
- the usage parameters interface typeInvalidArgumentException
UnrecognizedServiceException
- 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
UnrecognizedProfileTableNameException
UnrecognizedResourceAdaptorEntityException
UnrecognizedSubsystemException
UnrecognizedUsageParametersInterfaceTypeException
public static RemoteUsage.UsageNotificationManager getUsageNotificationManager(MBeanServerConnection server, NotificationSource notificationSource) throws InvalidArgumentException, UnrecognizedServiceException, UnrecognizedSbbException, ManagementException, UnrecognizedProfileTableNameException, UnrecognizedResourceAdaptorEntityException, UnrecognizedSubsystemException
server
- a server connectionnotificationSource
- a NotificationSource instance to determine the type of usage and the name of the componentInvalidArgumentException
UnrecognizedServiceException
- 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
UnrecognizedProfileTableNameException
UnrecognizedResourceAdaptorEntityException
UnrecognizedSubsystemException
public static RemoteUsage.UsageNotificationManager getUsageNotificationManager(MBeanServerConnection server, NotificationSource notificationSource, String upiType) throws InvalidArgumentException, UnrecognizedServiceException, UnrecognizedSbbException, ManagementException, UnrecognizedProfileTableNameException, UnrecognizedResourceAdaptorEntityException, UnrecognizedSubsystemException, UnrecognizedUsageParametersInterfaceTypeException
server
- a server connectionnotificationSource
- a NotificationSource instance to determine the type of usage and the name of the componentupiType
- the usage parameters interface typeInvalidArgumentException
UnrecognizedServiceException
- 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
UnrecognizedProfileTableNameException
UnrecognizedResourceAdaptorEntityException
UnrecognizedSubsystemException
UnrecognizedUsageParametersInterfaceTypeException