Package com.opencloud.slee.remote
Class RemoteUsage.Sbbs
- java.lang.Object
-
- com.opencloud.slee.remote.RemoteUsage.Sbbs
-
- Enclosing class:
- RemoteUsage
public static class RemoteUsage.Sbbs extends Object
Create proxies for SBB Usage MBeans and helper classes to read usage parameters.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ServiceUsageMBeangetServiceUsageMBean(MBeanServerConnection server, ServiceID serviceID)Provides aServiceUsageMBeanproxy object for a ServiceID.static UsageMBeangetUsageMBean(MBeanServerConnection server, ServiceUsageMBean serviceUsageMBean, SbbID sbbID)Get a UsageMBean for the unnamed parameter set of an SBB.static UsageMBeangetUsageMBean(MBeanServerConnection server, ServiceUsageMBean serviceUsageMBean, SbbID sbbID, int nodeID)Get a UsageMBean for the unnamed parameter set of an SBB on the specified node.static UsageMBeangetUsageMBean(MBeanServerConnection server, ServiceUsageMBean serviceUsageMBean, SbbID sbbID, String paramSetName)Get a UsageMBean for the specified parameter set of an SBB.static UsageMBeangetUsageMBean(MBeanServerConnection server, ServiceUsageMBean serviceUsageMBean, SbbID sbbID, String paramSetName, int nodeID)Get a UsageMBean for the specified parameter set of an SBB on the specified node.static UsageMBeangetUsageMBean(MBeanServerConnection server, ServiceID serviceID, SbbID sbbID)Get a UsageMBean for the unnamed parameter set for an SBB.static UsageMBeangetUsageMBean(MBeanServerConnection server, ServiceID serviceID, SbbID sbbID, int nodeID)Get a UsageMBean for the unnamed parameter set of an SBB on the specified node.static UsageMBeangetUsageMBean(MBeanServerConnection server, ServiceID serviceID, SbbID sbbID, String paramSetName)Get a UsageMBean for the specified parameter set of an SBB.static UsageMBeangetUsageMBean(MBeanServerConnection server, ServiceID serviceID, SbbID sbbID, String paramSetName, int nodeID)Get a UsageMBean for the specified parameter set of an SBB on the specified node.static RemoteUsage.UsageNotificationManagergetUsageNotificationManager(MBeanServerConnection server, ServiceID serviceID, SbbID sbbID)static RemoteUsage.UsageNotificationManagergetUsageNotificationManager(MBeanServerConnection server, ServiceID serviceID, SbbID sbbID, String upiType)static UsageNotificationManagerMBeangetUsageNotificationManagerMBean(MBeanServerConnection server, ServiceUsageMBean serviceUsageMBean, SbbID sbbID)Get a UsageNotificationManagerMBean for an SBB.static UsageNotificationManagerMBeangetUsageNotificationManagerMBean(MBeanServerConnection server, ServiceUsageMBean serviceUsageMBean, SbbID sbbID, String upiType)Get a UsageNotificationManagerMBean for an SBB.static RemoteUsage.UsageReadergetUsageReader(MBeanServerConnection server, ServiceID serviceID, SbbID sbbID)Get aRemoteUsage.UsageReaderfor the unnamed parameter set.static RemoteUsage.UsageReadergetUsageReader(MBeanServerConnection server, ServiceID serviceID, SbbID sbbID, int nodeID)Get aRemoteUsage.UsageReaderfor the unnamed parameter set on the specified node.static RemoteUsage.UsageReadergetUsageReader(MBeanServerConnection server, ServiceID serviceID, SbbID sbbID, String paramSetName)Get aRemoteUsage.UsageReaderfor the specified usage parameter set.static RemoteUsage.UsageReadergetUsageReader(MBeanServerConnection server, ServiceID serviceID, SbbID sbbID, String paramSetName, int nodeID)Get aRemoteUsage.UsageReaderfor the specified usage parameter set on the specified node.
-
-
-
Method Detail
-
getServiceUsageMBean
public static ServiceUsageMBean getServiceUsageMBean(MBeanServerConnection server, ServiceID serviceID) throws NullPointerException, UnrecognizedServiceException, ManagementException
Provides aServiceUsageMBeanproxy object for a ServiceID.- Parameters:
serviceID- the component identifier of the Service- Returns:
- a
ServiceUsageMBeanproxy - Throws:
NullPointerException- if serviceId is nullUnrecognizedServiceException- if serviceId is not a recognizable ServiceID for the SLEE or it does not correspond with a Service installed in the SLEEManagementException- if the Usage MBean Object Name could not be obtained due to a system-level failure
-
getUsageMBean
public static UsageMBean getUsageMBean(MBeanServerConnection server, ServiceID serviceID, SbbID sbbID) throws UnrecognizedServiceException, ManagementException, InvalidArgumentException, UnrecognizedSbbException
Get a UsageMBean for the unnamed parameter set for an SBB.- Parameters:
server- a server connectionserviceID- the component identifier of the ServicesbbID- the component identifier of the SBB. The SBB must be an SBB that is used in the Service whose usage information is being managed by this MBean.- Returns:
- a proxy to a UsageMBean on the server
- Throws:
UnrecognizedServiceException- if serviceId is not a recognizable ServiceID for the SLEE or it does not correspond with a Service installed in the SLEEUnrecognizedSbbException- if `sbbId` 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 MBeanInvalidArgumentExceptionManagementException- if the Usage MBean Object Name could not be obtained due to a system-level failure
-
getUsageMBean
public static UsageMBean getUsageMBean(MBeanServerConnection server, ServiceID serviceID, SbbID sbbID, String paramSetName) throws UnrecognizedServiceException, ManagementException, InvalidArgumentException, UnrecognizedUsageParameterSetNameException, UnrecognizedSbbException
Get a UsageMBean for the specified parameter set of an SBB.- Parameters:
server- a server connectionserviceID- the component identifier of the ServicesbbID- the component identifier of the SBB. The SBB must be an SBB that is used in the Service whose usage information is being managed by this MBean.paramSetName- the name of the usage parameter set- Returns:
- a proxy to a UsageMBean on the server
- Throws:
UnrecognizedServiceException- if `serviceID` is not a recognizable ServiceID for the SLEE or it does not correspond with a Service installed in the SLEEUnrecognizedSbbException- if `sbbID` 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 the Usage MBean Object Name could not be obtained due to a system-level failureInvalidArgumentExceptionUnrecognizedUsageParameterSetNameException
-
getUsageMBean
public static UsageMBean getUsageMBean(MBeanServerConnection server, ServiceID serviceID, SbbID sbbID, int nodeID) throws UnrecognizedServiceException, ManagementException, InvalidArgumentException, UnrecognizedUsageParameterSetNameException, UnrecognizedSbbException
Get a UsageMBean for the unnamed parameter set of an SBB on the specified node.- Parameters:
server- a server connectionserviceID- the component identifier of the ServicesbbID- the component identifier of the SBB. The SBB must be an SBB that is used in the Service whose usage information is being managed by this MBean.nodeID- 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:
UnrecognizedServiceException- if `serviceID` is not a recognizable ServiceID for the SLEE or it does not correspond with a Service installed in the SLEEUnrecognizedSbbException- if `sbbID` 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 the Usage MBean Object Name could not be obtained due to a system-level failureInvalidArgumentExceptionUnrecognizedUsageParameterSetNameException
-
getUsageMBean
public static UsageMBean getUsageMBean(MBeanServerConnection server, ServiceID serviceID, SbbID sbbID, String paramSetName, int nodeID) throws UnrecognizedServiceException, ManagementException, InvalidArgumentException, UnrecognizedUsageParameterSetNameException, UnrecognizedSbbException
Get a UsageMBean for the specified parameter set of an SBB on the specified node.- Parameters:
server- a server connectionserviceID- the component identifier of the ServicesbbID- the component identifier of the SBB. The SBB must be an SBB that is used in the Service whose usage information is being managed by this MBean.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:
UnrecognizedServiceException- if `serviceID` is not a recognizable ServiceID for the SLEE or it does not correspond with a Service installed in the SLEEUnrecognizedSbbException- if `sbbID` 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 the Usage MBean Object Name could not be obtained due to a system-level failureInvalidArgumentExceptionUnrecognizedUsageParameterSetNameException
-
getUsageMBean
public static UsageMBean getUsageMBean(MBeanServerConnection server, ServiceUsageMBean serviceUsageMBean, SbbID sbbID) throws NullPointerException, UnrecognizedSbbException, InvalidArgumentException, ManagementException
Get a UsageMBean for the unnamed parameter set of an SBB. Use this method if you already have a ServiceUsageMBean reference.- Parameters:
server- a server connectionserviceUsageMBean-sbbID- the component identifier of the SBB. The SBB must be an SBB that is used in the Service whose usage information is being managed by this MBean.- Returns:
- a proxy to a UsageMBean on the server
- Throws:
NullPointerExceptionUnrecognizedSbbException- if `sbbId` 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 MBeanInvalidArgumentExceptionManagementException- if the Usage MBean Object Name could not be obtained due to a system-level failure
-
getUsageMBean
public static UsageMBean getUsageMBean(MBeanServerConnection server, ServiceUsageMBean serviceUsageMBean, SbbID sbbID, String paramSetName) throws NullPointerException, UnrecognizedSbbException, InvalidArgumentException, UnrecognizedUsageParameterSetNameException, ManagementException
Get a UsageMBean for the specified parameter set of an SBB. Use this method if you already have a ServiceUsageMBean reference.- Parameters:
server- a server connectionserviceUsageMBean-sbbID- the component identifier of the SBB. The SBB must be an SBB that is used in the Service whose usage information is being managed by this MBean.paramSetName- the name of the usage parameter set- Returns:
- a proxy to a UsageMBean on the server
- Throws:
NullPointerExceptionUnrecognizedSbbException- if `sbbId` 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 MBeanInvalidArgumentExceptionUnrecognizedUsageParameterSetNameExceptionManagementException- if the Usage MBean Object Name could not be obtained due to a system-level failure
-
getUsageMBean
public static UsageMBean getUsageMBean(MBeanServerConnection server, ServiceUsageMBean serviceUsageMBean, SbbID sbbID, int nodeID) throws NullPointerException, UnrecognizedSbbException, InvalidArgumentException, UnrecognizedUsageParameterSetNameException, ManagementException
Get a UsageMBean for the unnamed parameter set of an SBB on the specified node. Use this method if you already have a ServiceUsageMBean reference.- Parameters:
server- a server connectionserviceUsageMBean-sbbID- the component identifier of the SBB. The SBB must be an SBB that is used in the Service whose usage information is being managed by this MBean.nodeID- 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:
NullPointerExceptionUnrecognizedSbbException- if `sbbId` 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 MBeanInvalidArgumentExceptionUnrecognizedUsageParameterSetNameExceptionManagementException- if the Usage MBean Object Name could not be obtained due to a system-level failure
-
getUsageMBean
public static UsageMBean getUsageMBean(MBeanServerConnection server, ServiceUsageMBean serviceUsageMBean, SbbID sbbID, String paramSetName, int nodeID) throws NullPointerException, UnrecognizedSbbException, InvalidArgumentException, UnrecognizedUsageParameterSetNameException, ManagementException
Get a UsageMBean for the specified parameter set of an SBB on the specified node. Use this method if you already have a ServiceUsageMBean reference.- Parameters:
server- a server connectionserviceUsageMBean-sbbID- the component identifier of the SBB. The SBB must be an SBB that is used in the Service whose usage information is being managed by this MBean.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:
NullPointerExceptionUnrecognizedSbbException- if `sbbId` 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 MBeanInvalidArgumentExceptionUnrecognizedUsageParameterSetNameExceptionManagementException- if the Usage MBean Object Name could not be obtained due to a system-level failure
-
getUsageNotificationManagerMBean
public static UsageNotificationManagerMBean getUsageNotificationManagerMBean(MBeanServerConnection server, ServiceUsageMBean serviceUsageMBean, SbbID sbbID) throws NullPointerException, UnrecognizedSbbException, InvalidArgumentException, ManagementException
Get a UsageNotificationManagerMBean for an SBB.- Parameters:
server- a server connectionserviceUsageMBean-sbbID- the component identifier of the SBB. The SBB must be an SBB that is used in the Service whose usage information is being managed by this MBean.- Returns:
- a proxy to a UsageNotificationManagerMBean on the server
- Throws:
NullPointerExceptionUnrecognizedSbbExceptionInvalidArgumentExceptionManagementException
-
getUsageNotificationManagerMBean
public static UsageNotificationManagerMBean getUsageNotificationManagerMBean(MBeanServerConnection server, ServiceUsageMBean serviceUsageMBean, SbbID sbbID, String upiType) throws NullPointerException, UnrecognizedSbbException, InvalidArgumentException, UnrecognizedUsageParametersInterfaceTypeException, ManagementException
Get a UsageNotificationManagerMBean for an SBB.- Parameters:
server- a server connectionserviceUsageMBean-sbbID- the component identifier of the SBB. The SBB must be an SBB that is used in the Service whose usage information is being managed by this MBean.upiType- the usage parameter set type- Returns:
- a proxy to a UsageNotificationManagerMBean on the server
- Throws:
NullPointerExceptionUnrecognizedSbbExceptionInvalidArgumentExceptionManagementExceptionUnrecognizedUsageParametersInterfaceTypeException
-
getUsageReader
public static RemoteUsage.UsageReader getUsageReader(MBeanServerConnection server, ServiceID serviceID, SbbID sbbID) throws UnrecognizedServiceException, ManagementException, InvalidArgumentException, UnrecognizedSbbException
Get aRemoteUsage.UsageReaderfor the unnamed parameter set.- Parameters:
server- a server connectionserviceID- the component identifier of the ServicesbbID- the component identifier of the SBB. The SBB must be an SBB that is used in the Service whose usage information is being managed by this MBean.- Returns:
- a UsageReader helper object
- Throws:
UnrecognizedServiceExceptionManagementExceptionInvalidArgumentExceptionUnrecognizedSbbException
-
getUsageReader
public static RemoteUsage.UsageReader getUsageReader(MBeanServerConnection server, ServiceID serviceID, SbbID sbbID, String paramSetName) throws UnrecognizedServiceException, ManagementException, InvalidArgumentException, UnrecognizedUsageParameterSetNameException, UnrecognizedSbbException
Get aRemoteUsage.UsageReaderfor the specified usage parameter set.- Parameters:
server- a server connectionserviceID- the component identifier of the ServicesbbID- the component identifier of the SBB. The SBB must be an SBB that is used in the Service whose usage information is being managed by this MBean.paramSetName- the name of the usage parameter set- Returns:
- a UsageReader helper object
- Throws:
UnrecognizedServiceExceptionManagementExceptionInvalidArgumentExceptionUnrecognizedUsageParameterSetNameExceptionUnrecognizedSbbException
-
getUsageReader
public static RemoteUsage.UsageReader getUsageReader(MBeanServerConnection server, ServiceID serviceID, SbbID sbbID, int nodeID) throws UnrecognizedServiceException, ManagementException, InvalidArgumentException, UnrecognizedUsageParameterSetNameException, UnrecognizedSbbException
Get aRemoteUsage.UsageReaderfor the unnamed parameter set on the specified node.- Parameters:
server- a server connectionserviceID- the component identifier of the ServicesbbID- the component identifier of the SBB. The SBB must be an SBB that is used in the Service whose usage information is being managed by this MBean.nodeID- the node ID of the node whose usage state should be accessed by the Usage MBean- Returns:
- a UsageReader helper object
- Throws:
UnrecognizedServiceExceptionManagementExceptionInvalidArgumentExceptionUnrecognizedUsageParameterSetNameExceptionUnrecognizedSbbException
-
getUsageReader
public static RemoteUsage.UsageReader getUsageReader(MBeanServerConnection server, ServiceID serviceID, SbbID sbbID, String paramSetName, int nodeID) throws UnrecognizedServiceException, ManagementException, InvalidArgumentException, UnrecognizedUsageParameterSetNameException, UnrecognizedSbbException
Get aRemoteUsage.UsageReaderfor the specified usage parameter set on the specified node.- Parameters:
server- a server connectionserviceID- the component identifier of the ServicesbbID- the component identifier of the SBB. The SBB must be an SBB that is used in the Service whose usage information is being managed by this MBean.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:
UnrecognizedServiceExceptionManagementExceptionInvalidArgumentExceptionUnrecognizedUsageParameterSetNameExceptionUnrecognizedSbbException
-
getUsageNotificationManager
public static RemoteUsage.UsageNotificationManager getUsageNotificationManager(MBeanServerConnection server, ServiceID serviceID, SbbID sbbID) throws InvalidArgumentException, ManagementException, UnrecognizedServiceException, UnrecognizedSbbException
- Parameters:
server- a server connectionserviceID- the component identifier of the ServicesbbID- the component identifier of the SBB. The SBB must be an SBB that is used in the Service whose usage information is being managed by this MBean.- Returns:
- a UsageNotificationManager helper object
- Throws:
InvalidArgumentExceptionManagementExceptionUnrecognizedServiceExceptionUnrecognizedSbbException
-
getUsageNotificationManager
public static RemoteUsage.UsageNotificationManager getUsageNotificationManager(MBeanServerConnection server, ServiceID serviceID, SbbID sbbID, String upiType) throws InvalidArgumentException, ManagementException, UnrecognizedServiceException, UnrecognizedSbbException, UnrecognizedUsageParametersInterfaceTypeException
- Parameters:
server- a server connectionserviceID- the component identifier of the ServicesbbID- the component identifier of the SBB. The SBB must be an SBB that is used in the Service whose usage information is being managed by this MBean.upiType- the usage parameters interface type- Returns:
- a UsageNotificationManager helper object
- Throws:
InvalidArgumentExceptionManagementExceptionUnrecognizedServiceExceptionUnrecognizedSbbExceptionUnrecognizedUsageParametersInterfaceTypeException
-
-