Package com.opencloud.slee.remote
Class RemoteUsage.Resources
- java.lang.Object
-
- com.opencloud.slee.remote.RemoteUsage.Resources
-
- Enclosing class:
- RemoteUsage
public static class RemoteUsage.Resources extends Object
Create proxies for Resource Adaptor Entity Usage MBeans and helper classes to read usage parameters.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ResourceUsageMBeangetResourceUsageMBean(MBeanServerConnection server, String entityName)Provides aResourceUsageMBeanproxy object for a RA entity name.static UsageMBeangetUsageMBean(MBeanServerConnection server, ResourceUsageMBean resourceUsageMBean)Get a UsageMBean for the unnamed parameter set of an RA entity.static UsageMBeangetUsageMBean(MBeanServerConnection server, ResourceUsageMBean resourceUsageMBean, int nodeID)Get a UsageMBean for the unnamed parameter set of an RA entity on the specified node.static UsageMBeangetUsageMBean(MBeanServerConnection server, ResourceUsageMBean resourceUsageMBean, String paramSetName)Get a UsageMBean for the specified parameter set of an RA entity.static UsageMBeangetUsageMBean(MBeanServerConnection server, ResourceUsageMBean resourceUsageMBean, String paramSetName, int nodeID)Get a UsageMBean for the specified parameter set of an RA entity on the specified node.static UsageMBeangetUsageMBean(MBeanServerConnection server, String raEntityName)Get a UsageMBean for the unnamed parameter set of an RA entity.static UsageMBeangetUsageMBean(MBeanServerConnection server, String raEntityName, int nodeID)Get a UsageMBean for the unnamed usage parameter set of an RA entity on the specified node.static UsageMBeangetUsageMBean(MBeanServerConnection server, String raEntityName, String paramSetName)Get a UsageMBean for the specified usage parameter set of an RA entity.static UsageMBeangetUsageMBean(MBeanServerConnection server, String raEntityName, String paramSetName, int nodeID)Get a UsageMBean for the specified usage parameter set of an RA entity on the specified node.static RemoteUsage.UsageNotificationManagergetUsageNotificationManager(MBeanServerConnection server, String entityName)static RemoteUsage.UsageNotificationManagergetUsageNotificationManager(MBeanServerConnection server, String entityName, String upiType)static UsageNotificationManagerMBeangetUsageNotificationManagerMBean(MBeanServerConnection server, ResourceUsageMBean resourceUsageMBean)Get a UsageNotificationManagerMBean for an RA entity.static UsageNotificationManagerMBeangetUsageNotificationManagerMBean(MBeanServerConnection server, ResourceUsageMBean resourceUsageMBean, String paramSetType)Get a UsageNotificationManagerMBean for an RA entity.static RemoteUsage.UsageReadergetUsageReader(MBeanServerConnection server, String entityName)Get aRemoteUsage.UsageReaderfor the unnamed usage parameter set.static RemoteUsage.UsageReadergetUsageReader(MBeanServerConnection server, String entityName, int nodeID)Get aRemoteUsage.UsageReaderfor the unnamed usage parameter set on the specified node.static RemoteUsage.UsageReadergetUsageReader(MBeanServerConnection server, String entityName, String paramSetName)Get aRemoteUsage.UsageReaderfor the specified usage parameter set.static RemoteUsage.UsageReadergetUsageReader(MBeanServerConnection server, String entityName, String paramSetName, int nodeID)Get aRemoteUsage.UsageReaderfor the specified usage parameter set on the specified node.
-
-
-
Method Detail
-
getResourceUsageMBean
public static ResourceUsageMBean getResourceUsageMBean(MBeanServerConnection server, String entityName) throws InvalidArgumentException, UnrecognizedResourceAdaptorEntityException, ManagementException
Provides aResourceUsageMBeanproxy object for a RA entity name.- Parameters:
entityName- the RA entity name- Returns:
- a
ResourceUsageMBeanproxy - Throws:
NullPointerException- if entityName is nullUnrecognizedResourceAdaptorEntityException- if the entity is unrecognizedManagementException- if a management exception occursInvalidArgumentException
-
getUsageMBean
public static UsageMBean getUsageMBean(MBeanServerConnection server, String raEntityName) throws ManagementException, InvalidArgumentException, UnrecognizedResourceAdaptorEntityException
Get a UsageMBean for the unnamed parameter set of an RA entity.- Parameters:
server- a server connectionraEntityName-- Returns:
- a proxy to a UsageMBean on the server
- Throws:
ManagementExceptionInvalidArgumentExceptionUnrecognizedResourceAdaptorEntityException
-
getUsageMBean
public static UsageMBean getUsageMBean(MBeanServerConnection server, String raEntityName, String paramSetName) throws NullPointerException, UnrecognizedUsageParameterSetNameException, ManagementException, InvalidArgumentException, UnrecognizedResourceAdaptorEntityException
Get a UsageMBean for the specified usage parameter set of an RA entity.- Parameters:
server- a server connectionraEntityName- the name of the resource adaptor entityparamSetName- the name of the usage parameter set- Returns:
- a proxy to a UsageMBean on the server
- Throws:
NullPointerExceptionUnrecognizedUsageParameterSetNameExceptionManagementExceptionInvalidArgumentExceptionUnrecognizedResourceAdaptorEntityException
-
getUsageMBean
public static UsageMBean getUsageMBean(MBeanServerConnection server, String raEntityName, int nodeID) throws NullPointerException, UnrecognizedUsageParameterSetNameException, ManagementException, InvalidArgumentException, UnrecognizedResourceAdaptorEntityException
Get a UsageMBean for the unnamed usage parameter set of an RA entity on the specified node.- Parameters:
server- a server connectionraEntityName- the name of the resource adaptor entitynodeID- the node ID of the node whose usage state should be accessed by the Usage MBean.- Returns:
- a proxy to a UsageMBean on the server
- Throws:
NullPointerExceptionUnrecognizedUsageParameterSetNameExceptionManagementExceptionInvalidArgumentExceptionUnrecognizedResourceAdaptorEntityException
-
getUsageMBean
public static UsageMBean getUsageMBean(MBeanServerConnection server, String raEntityName, String paramSetName, int nodeID) throws NullPointerException, UnrecognizedUsageParameterSetNameException, ManagementException, InvalidArgumentException, UnrecognizedResourceAdaptorEntityException
Get a UsageMBean for the specified usage parameter set of an RA entity on the specified node.- Parameters:
server- a server connectionraEntityName- the name of the resource adaptor entity.paramSetName- the name of the usage parameter setnodeID- the node ID of the node whose usage state should be accessed by the Usage MBean.- Returns:
- a proxy to a UsageMBean on the server
- Throws:
NullPointerExceptionUnrecognizedUsageParameterSetNameExceptionManagementExceptionInvalidArgumentExceptionUnrecognizedResourceAdaptorEntityException
-
getUsageMBean
public static UsageMBean getUsageMBean(MBeanServerConnection server, ResourceUsageMBean resourceUsageMBean) throws ManagementException
Get a UsageMBean for the unnamed parameter set of an RA entity. Use this method if you already have a ResourceUsageMBean reference.- Parameters:
server- a server connectionresourceUsageMBean- a ResourceUsageMBean obtained previously- Returns:
- a proxy to a UsageMBean on the server
- Throws:
ManagementException
-
getUsageMBean
public static UsageMBean getUsageMBean(MBeanServerConnection server, ResourceUsageMBean resourceUsageMBean, String paramSetName) throws NullPointerException, UnrecognizedUsageParameterSetNameException, ManagementException
Get a UsageMBean for the specified parameter set of an RA entity. Use this method if you already have a ResourceUsageMBean reference.- Parameters:
server- a server connectionresourceUsageMBean- a ResourceUsageMBean obtained previouslyparamSetName- the name of the usage parameter set- Returns:
- a proxy to a UsageMBean on the server
- Throws:
NullPointerExceptionUnrecognizedUsageParameterSetNameExceptionManagementException
-
getUsageMBean
public static UsageMBean getUsageMBean(MBeanServerConnection server, ResourceUsageMBean resourceUsageMBean, int nodeID) throws NullPointerException, UnrecognizedUsageParameterSetNameException, ManagementException
Get a UsageMBean for the unnamed parameter set of an RA entity on the specified node. Use this method if you already have a ResourceUsageMBean reference.- Parameters:
server- a server connectionresourceUsageMBean- a ResourceUsageMBean obtained previouslynodeID- the node ID of the node whose usage state should be accessed by the Usage MBean.- Returns:
- a proxy to a UsageMBean on the server
- Throws:
NullPointerExceptionUnrecognizedUsageParameterSetNameExceptionManagementException
-
getUsageMBean
public static UsageMBean getUsageMBean(MBeanServerConnection server, ResourceUsageMBean resourceUsageMBean, String paramSetName, int nodeID) throws NullPointerException, UnrecognizedUsageParameterSetNameException, ManagementException
Get a UsageMBean for the specified parameter set of an RA entity on the specified node. Use this method if you already have a ResourceUsageMBean reference.- Parameters:
server- a server connectionresourceUsageMBean- a ResourceUsageMBean obtained previouslyparamSetName- the name of the usage parameter setnodeID- the node ID of the node whose usage state should be accessed by the Usage MBean.- Returns:
- a proxy to a UsageMBean on the server
- Throws:
NullPointerExceptionUnrecognizedUsageParameterSetNameExceptionManagementException
-
getUsageNotificationManagerMBean
public static UsageNotificationManagerMBean getUsageNotificationManagerMBean(MBeanServerConnection server, ResourceUsageMBean resourceUsageMBean) throws ManagementException
Get a UsageNotificationManagerMBean for an RA entity.- Parameters:
server- a server connectionresourceUsageMBean- a ResourceUsageMBean obtained previously- Returns:
- a proxy to a UsageNotificationManagerMBean on the server
- Throws:
ManagementException
-
getUsageNotificationManagerMBean
public static UsageNotificationManagerMBean getUsageNotificationManagerMBean(MBeanServerConnection server, ResourceUsageMBean resourceUsageMBean, String paramSetType) throws UnrecognizedUsageParametersInterfaceTypeException, ManagementException
Get a UsageNotificationManagerMBean for an RA entity.- Parameters:
server- a server connectionresourceUsageMBean- a ResourceUsageMBean obtained previouslyparamSetType- the usage parameter set type- Returns:
- a proxy to a UsageNotificationManagerMBean on the server
- Throws:
ManagementExceptionUnrecognizedUsageParametersInterfaceTypeException
-
getUsageReader
public static RemoteUsage.UsageReader getUsageReader(MBeanServerConnection server, String entityName) throws InvalidArgumentException, UnrecognizedResourceAdaptorEntityException, ManagementException
Get aRemoteUsage.UsageReaderfor the unnamed usage parameter set.- Parameters:
server- a server connectionentityName-- Returns:
- a UsageReader helper object
- Throws:
InvalidArgumentExceptionUnrecognizedResourceAdaptorEntityExceptionManagementException
-
getUsageReader
public static RemoteUsage.UsageReader getUsageReader(MBeanServerConnection server, String entityName, String paramSetName) throws InvalidArgumentException, UnrecognizedResourceAdaptorEntityException, ManagementException, UnrecognizedUsageParameterSetNameException
Get aRemoteUsage.UsageReaderfor the specified usage parameter set.- Parameters:
server- a server connectionentityName- the name of the resource adaptor entity.paramSetName- the name of the usage parameter set- Returns:
- a UsageReader helper object
- Throws:
InvalidArgumentExceptionUnrecognizedResourceAdaptorEntityExceptionUnrecognizedUsageParameterSetNameExceptionManagementException
-
getUsageReader
public static RemoteUsage.UsageReader getUsageReader(MBeanServerConnection server, String entityName, int nodeID) throws InvalidArgumentException, UnrecognizedResourceAdaptorEntityException, ManagementException, UnrecognizedUsageParameterSetNameException
Get aRemoteUsage.UsageReaderfor the unnamed usage parameter set on the specified node.- Parameters:
server- a server connectionentityName- the name of the resource adaptor entity.nodeID- the node ID of the node whose usage state should be accessed by the Usage MBean.- Returns:
- a UsageReader helper object
- Throws:
InvalidArgumentExceptionUnrecognizedResourceAdaptorEntityExceptionUnrecognizedUsageParameterSetNameExceptionManagementException
-
getUsageReader
public static RemoteUsage.UsageReader getUsageReader(MBeanServerConnection server, String entityName, String paramSetName, int nodeID) throws InvalidArgumentException, UnrecognizedResourceAdaptorEntityException, ManagementException, UnrecognizedUsageParameterSetNameException
Get aRemoteUsage.UsageReaderfor the specified usage parameter set on the specified node.- Parameters:
server- a server connectionentityName- the name of the resource adaptor entity.paramSetName- the name of the usage parameter setnodeID- the node ID of the node whose usage state should be accessed by the Usage MBean.- Returns:
- a UsageReader helper object
- Throws:
InvalidArgumentExceptionUnrecognizedResourceAdaptorEntityExceptionUnrecognizedUsageParameterSetNameExceptionManagementException
-
getUsageNotificationManager
public static RemoteUsage.UsageNotificationManager getUsageNotificationManager(MBeanServerConnection server, String entityName) throws InvalidArgumentException, ManagementException, UnrecognizedResourceAdaptorEntityException
- Parameters:
server- a server connectionentityName- the name of the resource adaptor entity.- Returns:
- a UsageNotificationManager helper object
- Throws:
InvalidArgumentExceptionUnrecognizedResourceAdaptorEntityExceptionManagementException
-
getUsageNotificationManager
public static RemoteUsage.UsageNotificationManager getUsageNotificationManager(MBeanServerConnection server, String entityName, String upiType) throws InvalidArgumentException, ManagementException, UnrecognizedResourceAdaptorEntityException, UnrecognizedUsageParametersInterfaceTypeException
- Parameters:
server- a server connectionentityName- the name of the resource adaptor entity.upiType- the usage parameters interface type- Returns:
- a UsageNotificationManager helper object
- Throws:
InvalidArgumentExceptionUnrecognizedResourceAdaptorEntityExceptionUnrecognizedUsageParametersInterfaceTypeExceptionManagementException
-
-