Package com.opencloud.slee.remote
Class RemoteUsage.Profiles
- java.lang.Object
-
- com.opencloud.slee.remote.RemoteUsage.Profiles
-
- Enclosing class:
- RemoteUsage
public static class RemoteUsage.Profiles extends Object
Create proxies for Profile Table Usage MBeans and helper classes to read usage parameters.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ProfileTableUsageMBeangetProfileTableUsageMBean(MBeanServerConnection server, String profileTableName)Provides aProfileTableUsageMBeanproxy object for a profile table.static UsageMBeangetUsageMBean(MBeanServerConnection server, ProfileTableUsageMBean profileTableUsageMBean)Get a UsageMBean for the unnamed parameter set of a profile table.static UsageMBeangetUsageMBean(MBeanServerConnection server, ProfileTableUsageMBean profileTableUsageMBean, int nodeID)Get a UsageMBean for a named parameter set of a profile table on the specified node.static UsageMBeangetUsageMBean(MBeanServerConnection server, ProfileTableUsageMBean profileTableUsageMBean, String paramSetName)Get a UsageMBean for a named parameter set of a profile table on the specified node.static UsageMBeangetUsageMBean(MBeanServerConnection server, ProfileTableUsageMBean profileTableUsageMBean, String paramSetName, int nodeID)Get a UsageMBean for a named parameter set of a profile table on the specified node.static UsageMBeangetUsageMBean(MBeanServerConnection server, String profileTableName)Get a UsageMBean for the unnamed parameter set of a profile table.static UsageMBeangetUsageMBean(MBeanServerConnection server, String profileTableName, int nodeID)Get a UsageMBean for the unnamed parameter set of a profile table on the specified node.static UsageMBeangetUsageMBean(MBeanServerConnection server, String profileTableName, String paramSetName)Get a UsageMBean for the specified parameter set of a profile table.static UsageMBeangetUsageMBean(MBeanServerConnection server, String profileTableName, String paramSetName, int nodeID)Get a UsageMBean for specified parameter set of a profile table on the specified node.static RemoteUsage.UsageNotificationManagergetUsageNotificationManager(MBeanServerConnection server, String profileTableName)static RemoteUsage.UsageNotificationManagergetUsageNotificationManager(MBeanServerConnection server, String profileTableName, String upiType)static UsageNotificationManagerMBeangetUsageNotificationManagerMBean(MBeanServerConnection server, ProfileTableUsageMBean profileTableUsageMBean)Get a UsageNotificationManagerMBean for a profile table.static UsageNotificationManagerMBeangetUsageNotificationManagerMBean(MBeanServerConnection server, ProfileTableUsageMBean profileTableUsageMBean, String paramSetType)Get a UsageNotificationManagerMBean for a profile table.static RemoteUsage.UsageReadergetUsageReader(MBeanServerConnection server, String profileTableName)Get aRemoteUsage.UsageReader.static RemoteUsage.UsageReadergetUsageReader(MBeanServerConnection server, String profileTableName, int nodeID)Get aRemoteUsage.UsageReaderfor the unnamed parameter set on the specified node.static RemoteUsage.UsageReadergetUsageReader(MBeanServerConnection server, String profileTableName, String paramSetName)Get aRemoteUsage.UsageReaderfor the specified parameter set.static RemoteUsage.UsageReadergetUsageReader(MBeanServerConnection server, String profileTableName, String paramSetName, int nodeID)Get aRemoteUsage.UsageReaderfor the specified parameter set on the specified node.
-
-
-
Method Detail
-
getProfileTableUsageMBean
public static ProfileTableUsageMBean getProfileTableUsageMBean(MBeanServerConnection server, String profileTableName) throws NullPointerException, InvalidArgumentException, UnrecognizedProfileTableNameException, ManagementException
Provides aProfileTableUsageMBeanproxy object for a profile table.- Parameters:
server- a server connectionprofileTableName- the name of the profile table- Returns:
- a
ProfileTableUsageMBeanproxy - Throws:
NullPointerException- if profileTableName is nullUnrecognizedProfileTableNameException- if the profile table name is unrecognized.InvalidArgumentException- if the profile specification component that the specified profile table was created from does not define a usage parameters interface.ManagementException- if the ProfileTableUsageMBean Object Name could not be obtained due to a system-level failure.
-
getUsageMBean
public static UsageMBean getUsageMBean(MBeanServerConnection server, String profileTableName) throws ManagementException, InvalidArgumentException, UnrecognizedProfileTableNameException
Get a UsageMBean for the unnamed parameter set of a profile table.- Parameters:
server- a server connectionprofileTableName- the name of the profile table- Returns:
- a proxy to a UsageMBean on the server
- Throws:
InvalidArgumentExceptionUnrecognizedProfileTableNameExceptionManagementException- if an Object Name could not be obtained due to a system-level failure.
-
getUsageMBean
public static UsageMBean getUsageMBean(MBeanServerConnection server, String profileTableName, String paramSetName) throws ManagementException, InvalidArgumentException, UnrecognizedProfileTableNameException, UnrecognizedUsageParameterSetNameException
Get a UsageMBean for the specified parameter set of a profile table.- Parameters:
server- a server connectionprofileTableName- the name of the profile tableparamSetName- the name of the usage parameter set- Returns:
- a proxy to a UsageMBean on the server
- Throws:
InvalidArgumentExceptionUnrecognizedProfileTableNameExceptionUnrecognizedUsageParameterSetNameExceptionManagementException- if an Object Name could not be obtained due to a system-level failure.
-
getUsageMBean
public static UsageMBean getUsageMBean(MBeanServerConnection server, String profileTableName, int nodeID) throws ManagementException, InvalidArgumentException, UnrecognizedProfileTableNameException, UnrecognizedUsageParameterSetNameException
Get a UsageMBean for the unnamed parameter set of a profile table on the specified node.- Parameters:
server- a server connectionprofileTableName- the name of the profile tablenodeID- 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:
InvalidArgumentExceptionUnrecognizedProfileTableNameExceptionUnrecognizedUsageParameterSetNameExceptionManagementException- if an Object Name could not be obtained due to a system-level failure.
-
getUsageMBean
public static UsageMBean getUsageMBean(MBeanServerConnection server, String profileTableName, String paramSetName, int nodeID) throws ManagementException, InvalidArgumentException, UnrecognizedProfileTableNameException, UnrecognizedUsageParameterSetNameException
Get a UsageMBean for specified parameter set of a profile table on the specified node.- Parameters:
server- a server connectionprofileTableName- the name of the profile tableparamSetName- 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:
InvalidArgumentExceptionUnrecognizedProfileTableNameExceptionUnrecognizedUsageParameterSetNameExceptionManagementException- if an Object Name could not be obtained due to a system-level failure.
-
getUsageMBean
public static UsageMBean getUsageMBean(MBeanServerConnection server, ProfileTableUsageMBean profileTableUsageMBean) throws ManagementException
Get a UsageMBean for the unnamed parameter set of a profile table. Use this method if you already have a ProfileTableUsageMBean reference.- Parameters:
server- a server connectionprofileTableUsageMBean-- Returns:
- a proxy to a UsageMBean on the server
- Throws:
ManagementException
-
getUsageMBean
public static UsageMBean getUsageMBean(MBeanServerConnection server, ProfileTableUsageMBean profileTableUsageMBean, String paramSetName) throws NullPointerException, UnrecognizedUsageParameterSetNameException, ManagementException
Get a UsageMBean for a named parameter set of a profile table on the specified node. Use this method if you already have a ProfileTableUsageMBean reference.- Parameters:
server- a server connectionprofileTableUsageMBean- a ProfileTableUsageMBean 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, ProfileTableUsageMBean profileTableUsageMBean, int nodeID) throws NullPointerException, UnrecognizedUsageParameterSetNameException, ManagementException
Get a UsageMBean for a named parameter set of a profile table on the specified node. Use this method if you already have a ProfileTableUsageMBean reference.- Parameters:
server- a server connectionprofileTableUsageMBean- a ProfileTableUsageMBean 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, ProfileTableUsageMBean profileTableUsageMBean, String paramSetName, int nodeID) throws NullPointerException, UnrecognizedUsageParameterSetNameException, ManagementException
Get a UsageMBean for a named parameter set of a profile table on the specified node. Use this method if you already have a ProfileTableUsageMBean reference.- Parameters:
server- a server connectionprofileTableUsageMBean- a ProfileTableUsageMBean 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, ProfileTableUsageMBean profileTableUsageMBean) throws ManagementException
Get a UsageNotificationManagerMBean for a profile table.- Parameters:
server- a server connectionprofileTableUsageMBean-- Returns:
- a proxy to a UsageNotificationManagerMBean on the server
- Throws:
ManagementException
-
getUsageNotificationManagerMBean
public static UsageNotificationManagerMBean getUsageNotificationManagerMBean(MBeanServerConnection server, ProfileTableUsageMBean profileTableUsageMBean, String paramSetType) throws UnrecognizedUsageParametersInterfaceTypeException, ManagementException
Get a UsageNotificationManagerMBean for a profile table.- Parameters:
server- a server connectionprofileTableUsageMBean-paramSetType- the usage parameter set type- Returns:
- a proxy to a UsageNotificationManagerMBean on the server
- Throws:
UnrecognizedUsageParametersInterfaceTypeExceptionManagementException
-
getUsageReader
public static RemoteUsage.UsageReader getUsageReader(MBeanServerConnection server, String profileTableName) throws InvalidArgumentException, UnrecognizedProfileTableNameException, ManagementException
Get aRemoteUsage.UsageReader.- Parameters:
server- a server connectionprofileTableName- the name of the profile table- Returns:
- a UsageReader helper object
- Throws:
InvalidArgumentExceptionUnrecognizedProfileTableNameExceptionManagementException
-
getUsageReader
public static RemoteUsage.UsageReader getUsageReader(MBeanServerConnection server, String profileTableName, String paramSetName) throws InvalidArgumentException, UnrecognizedProfileTableNameException, ManagementException, UnrecognizedUsageParameterSetNameException
Get aRemoteUsage.UsageReaderfor the specified parameter set.- Parameters:
server- a server connectionprofileTableName- the name of the profile tableparamSetName- the name of the usage parameter set- Returns:
- a UsageReader helper object
- Throws:
InvalidArgumentExceptionUnrecognizedProfileTableNameExceptionManagementExceptionUnrecognizedUsageParameterSetNameException
-
getUsageReader
public static RemoteUsage.UsageReader getUsageReader(MBeanServerConnection server, String profileTableName, int nodeID) throws InvalidArgumentException, UnrecognizedProfileTableNameException, ManagementException, UnrecognizedUsageParameterSetNameException
Get aRemoteUsage.UsageReaderfor the unnamed parameter set on the specified node.- Parameters:
server- a server connectionprofileTableName- the name of the profile tablenodeID- the node ID of the node whose usage state should be accessed by the Usage MBean- Returns:
- a UsageReader helper object
- Throws:
InvalidArgumentExceptionUnrecognizedProfileTableNameExceptionManagementExceptionUnrecognizedUsageParameterSetNameException
-
getUsageReader
public static RemoteUsage.UsageReader getUsageReader(MBeanServerConnection server, String profileTableName, String paramSetName, int nodeID) throws InvalidArgumentException, UnrecognizedProfileTableNameException, ManagementException, UnrecognizedUsageParameterSetNameException
Get aRemoteUsage.UsageReaderfor the specified parameter set on the specified node.- Parameters:
server- a server connectionprofileTableName- the name of the profile tableparamSetName- 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:
InvalidArgumentExceptionUnrecognizedProfileTableNameExceptionManagementExceptionUnrecognizedUsageParameterSetNameException
-
getUsageNotificationManager
public static RemoteUsage.UsageNotificationManager getUsageNotificationManager(MBeanServerConnection server, String profileTableName) throws InvalidArgumentException, ManagementException, UnrecognizedProfileTableNameException
- Parameters:
server- a server connectionprofileTableName-- Returns:
- a UsageNotificationManager helper object
- Throws:
InvalidArgumentExceptionManagementExceptionUnrecognizedProfileTableNameException
-
getUsageNotificationManager
public static RemoteUsage.UsageNotificationManager getUsageNotificationManager(MBeanServerConnection server, String profileTableName, String upiType) throws InvalidArgumentException, ManagementException, UnrecognizedProfileTableNameException, UnrecognizedUsageParametersInterfaceTypeException
- Parameters:
server- a server connectionprofileTableName-upiType-- Returns:
- a UsageNotificationManager helper object
- Throws:
InvalidArgumentExceptionManagementExceptionUnrecognizedProfileTableNameExceptionUnrecognizedUsageParametersInterfaceTypeException
-
-