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 ProfileTableUsageMBean
getProfileTableUsageMBean(MBeanServerConnection server, String profileTableName)
Provides aProfileTableUsageMBean
proxy object for a profile table.static UsageMBean
getUsageMBean(MBeanServerConnection server, ProfileTableUsageMBean profileTableUsageMBean)
Get a UsageMBean for the unnamed parameter set of a profile table.static UsageMBean
getUsageMBean(MBeanServerConnection server, ProfileTableUsageMBean profileTableUsageMBean, int nodeID)
Get a UsageMBean for a named parameter set of a profile table on the specified node.static UsageMBean
getUsageMBean(MBeanServerConnection server, ProfileTableUsageMBean profileTableUsageMBean, String paramSetName)
Get a UsageMBean for a named parameter set of a profile table on the specified node.static UsageMBean
getUsageMBean(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 UsageMBean
getUsageMBean(MBeanServerConnection server, String profileTableName)
Get a UsageMBean for the unnamed parameter set of a profile table.static UsageMBean
getUsageMBean(MBeanServerConnection server, String profileTableName, int nodeID)
Get a UsageMBean for the unnamed parameter set of a profile table on the specified node.static UsageMBean
getUsageMBean(MBeanServerConnection server, String profileTableName, String paramSetName)
Get a UsageMBean for the specified parameter set of a profile table.static UsageMBean
getUsageMBean(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.UsageNotificationManager
getUsageNotificationManager(MBeanServerConnection server, String profileTableName)
static RemoteUsage.UsageNotificationManager
getUsageNotificationManager(MBeanServerConnection server, String profileTableName, String upiType)
static UsageNotificationManagerMBean
getUsageNotificationManagerMBean(MBeanServerConnection server, ProfileTableUsageMBean profileTableUsageMBean)
Get a UsageNotificationManagerMBean for a profile table.static UsageNotificationManagerMBean
getUsageNotificationManagerMBean(MBeanServerConnection server, ProfileTableUsageMBean profileTableUsageMBean, String paramSetType)
Get a UsageNotificationManagerMBean for a profile table.static RemoteUsage.UsageReader
getUsageReader(MBeanServerConnection server, String profileTableName)
Get aRemoteUsage.UsageReader
.static RemoteUsage.UsageReader
getUsageReader(MBeanServerConnection server, String profileTableName, int nodeID)
Get aRemoteUsage.UsageReader
for the unnamed parameter set on the specified node.static RemoteUsage.UsageReader
getUsageReader(MBeanServerConnection server, String profileTableName, String paramSetName)
Get aRemoteUsage.UsageReader
for the specified parameter set.static RemoteUsage.UsageReader
getUsageReader(MBeanServerConnection server, String profileTableName, String paramSetName, int nodeID)
Get aRemoteUsage.UsageReader
for 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 aProfileTableUsageMBean
proxy object for a profile table.- Parameters:
server
- a server connectionprofileTableName
- the name of the profile table- Returns:
- a
ProfileTableUsageMBean
proxy - 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:
InvalidArgumentException
UnrecognizedProfileTableNameException
ManagementException
- 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:
InvalidArgumentException
UnrecognizedProfileTableNameException
UnrecognizedUsageParameterSetNameException
ManagementException
- 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:
InvalidArgumentException
UnrecognizedProfileTableNameException
UnrecognizedUsageParameterSetNameException
ManagementException
- 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:
InvalidArgumentException
UnrecognizedProfileTableNameException
UnrecognizedUsageParameterSetNameException
ManagementException
- 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:
NullPointerException
UnrecognizedUsageParameterSetNameException
ManagementException
-
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:
NullPointerException
UnrecognizedUsageParameterSetNameException
ManagementException
-
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:
NullPointerException
UnrecognizedUsageParameterSetNameException
ManagementException
-
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:
UnrecognizedUsageParametersInterfaceTypeException
ManagementException
-
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:
InvalidArgumentException
UnrecognizedProfileTableNameException
ManagementException
-
getUsageReader
public static RemoteUsage.UsageReader getUsageReader(MBeanServerConnection server, String profileTableName, String paramSetName) throws InvalidArgumentException, UnrecognizedProfileTableNameException, ManagementException, UnrecognizedUsageParameterSetNameException
Get aRemoteUsage.UsageReader
for 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:
InvalidArgumentException
UnrecognizedProfileTableNameException
ManagementException
UnrecognizedUsageParameterSetNameException
-
getUsageReader
public static RemoteUsage.UsageReader getUsageReader(MBeanServerConnection server, String profileTableName, int nodeID) throws InvalidArgumentException, UnrecognizedProfileTableNameException, ManagementException, UnrecognizedUsageParameterSetNameException
Get aRemoteUsage.UsageReader
for 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:
InvalidArgumentException
UnrecognizedProfileTableNameException
ManagementException
UnrecognizedUsageParameterSetNameException
-
getUsageReader
public static RemoteUsage.UsageReader getUsageReader(MBeanServerConnection server, String profileTableName, String paramSetName, int nodeID) throws InvalidArgumentException, UnrecognizedProfileTableNameException, ManagementException, UnrecognizedUsageParameterSetNameException
Get aRemoteUsage.UsageReader
for 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:
InvalidArgumentException
UnrecognizedProfileTableNameException
ManagementException
UnrecognizedUsageParameterSetNameException
-
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:
InvalidArgumentException
ManagementException
UnrecognizedProfileTableNameException
-
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:
InvalidArgumentException
ManagementException
UnrecognizedProfileTableNameException
UnrecognizedUsageParametersInterfaceTypeException
-
-