public interface SleeManagementMBean
SleeManagementMBean
interface defines the central management
interface for the SLEE. This interface provides access a management client with
the JMX Object Names of other SLEE management MBeans, and allows the operational
state of the SLEE to be changed.
Note: As of SLEE 1.1, the JMX Object Names of the MBeans defined by the SLEE specification have been standardized. Each MBean interface defines one or more constants that specify the name and properties of the MBean's Object Name.
Notifications
Every time the operational state of the SLEE changes, the SleeManagementMBean
object must emit a SleeStateChangeNotification
. Therefore it is required
that the SleeManagementMBean
object implement the
javax.management.NotificationBroadcaster
interface.
Modifier and Type | Field and Description |
---|---|
static String |
OBJECT_NAME
The JMX Object Name string of the SLEE Management MBean, equal to the string
"javax.slee.management:name=SleeManagement".
|
static String |
SLEE_STATE_CHANGE_NOTIFICATION_TYPE
The notification type of
SleeStateChange
notifications emitted by this MBean. |
Modifier and Type | Method and Description |
---|---|
ObjectName |
getAlarmMBean()
Get the JMX Object Name of the SLEE's
AlarmMBean object. |
ObjectName |
getDeploymentMBean()
Get the JMX Object Name of the SLEE's
DeploymentMBean object. |
ObjectName |
getProfileProvisioningMBean()
Get the JMX Object Name of the SLEE's
ProfileProvisioningMBean object. |
ObjectName |
getResourceManagementMBean()
Get the JMX Object Name of the SLEE's
ResourceManagementMBean object. |
ObjectName |
getServiceManagementMBean()
Get the JMX Object Name of the SLEE's
ServiceManagementMBean object. |
String |
getSleeName()
Get the name of the SLEE implementation.
|
String |
getSleeVendor()
Get the vendor of the SLEE implementation.
|
String |
getSleeVersion()
Get the version of the SLEE implementation.
|
SleeState |
getState()
Get the current operational state of the SLEE.
|
String[] |
getSubsystems()
Get the names of the SLEE internal components or subsystems defined by the
SLEE implementation.
|
ObjectName |
getTraceMBean()
Get the JMX Object Name of the SLEE's
TraceMBean object. |
ObjectName |
getUsageMBean(String subsystemName)
Get the JMX Object Name of a
UsageMBean object that
provides management access to the unnamed usage parameter set for the specified
SLEE internal component or subsystem. |
ObjectName |
getUsageMBean(String subsystemName,
String paramSetName)
Get the JMX Object Name of a
UsageMBean object that
provides management access to the named usage parameter set for the specified
SLEE internal component or subsystem. |
ObjectName |
getUsageNotificationManagerMBean(String subsystemName)
Get the JMX Object Name of a
UsageNotificationManagerMBean
that provides management access to the usage notification manager for the specified
SLEE internal component or subsystem. |
String[] |
getUsageParameterSets(String subsystemName)
Get the names of the usage parameter sets that the specified SLEE internal
component or subsystem is permitted to use.
|
boolean |
hasUsage(String subsystemName)
Determine if usage information is available for the specified SLEE internal
component or subsystem.
|
void |
shutdown()
Shutdown and terminate all SLEE processes related to this server image.
|
void |
start()
Request that the SLEE's event routing subsystem be started.
|
void |
stop()
Request that the SLEE's event routing subsystem be stopped.
|
static final String OBJECT_NAME
static final String SLEE_STATE_CHANGE_NOTIFICATION_TYPE
SleeStateChange
notifications emitted by this MBean. The notification type is equal to the
string "javax.slee.management.sleestatechange
".String getSleeName()
String getSleeVendor()
String getSleeVersion()
SleeState getState() throws ManagementException
SleeState
object that indicates the current operational
state of the SLEE.ManagementException
- if the operatioanl state could not be determined
due to a system-level failure.void start() throws InvalidStateException, ManagementException
InvalidStateException
- if the SLEE is not currently in the
Stopped state.ManagementException
- if the operational state of the SLEE could not
be changed due to a system-level failure.void stop() throws InvalidStateException, ManagementException
InvalidStateException
- if the SLEE is not currently in the
Running state.ManagementException
- if the operational state of the SLEE could not
be changed due to a system-level failure.void shutdown() throws InvalidStateException, ManagementException
SleeStateChange
notification.InvalidStateException
- if the SLEE is not currently in the
Stopped state.ManagementException
- if the operational state of the SLEE could not
be changed due to a system-level failure.ObjectName getDeploymentMBean()
DeploymentMBean
object.DeploymentMBean
object.ObjectName getServiceManagementMBean()
ServiceManagementMBean
object.ServiceManagementMBean
object.ObjectName getProfileProvisioningMBean()
ProfileProvisioningMBean
object.ProfileProvisioningMBean
object.ObjectName getTraceMBean()
TraceMBean
object.TraceMBean
object.ObjectName getAlarmMBean()
AlarmMBean
object.AlarmMBean
object.ObjectName getResourceManagementMBean()
ResourceManagementMBean
object.ResourceManagementMBean
object.String[] getSubsystems() throws ManagementException
TraceNotifications
, AlarmNotifications
,
or UsageNotifications
should be
named in the return value of this method.
Subsystem names may be any vendor-defined string. The SLEE specification does not define any restrictions on the format of these names.
null
or a zero-length array.ManagementException
- if the name could not obtained due to a system-level
failure.boolean hasUsage(String subsystemName) throws NullPointerException, UnrecognizedSubsystemException, ManagementException
subsystemName
- the name of the SLEE internal component or subsystem.true
if the SLEE implementation provides usage information
for the specified subsystem, false
otherwise.NullPointerException
- if subsystemName
is null
.UnrecognizedSubsystemException
- if subsystemName
does not
correspond with a recognized SLEE internal component or subsystem.ManagementException
- if a system-level failure occurrs.String[] getUsageParameterSets(String subsystemName) throws NullPointerException, UnrecognizedSubsystemException, InvalidArgumentException, ManagementException
subsystemName
- the name of the internal component or subsystem.NullPointerException
- if subsystemName
is null
.UnrecognizedSubsystemException
- if subsystemName
does not
correspond with a recognized SLEE internal component or subsystem.InvalidArgumentException
- if the SLEE does not provide usage information
for the specified subsystem.ManagementException
- if the usage parameter set names could not be obtained
due to a system-level failure.ObjectName getUsageMBean(String subsystemName) throws NullPointerException, UnrecognizedSubsystemException, InvalidArgumentException, ManagementException
UsageMBean
object that
provides management access to the unnamed usage parameter set for the specified
SLEE internal component or subsystem. The subsystem must be providing usage
information, ie. hasUsage(subsystemName)
returns true
.subsystemName
- the name of the internal component or subsystem.UsageMBean
object for the subsystem.NullPointerException
- if subsystemName
is null
.UnrecognizedSubsystemException
- if subsystemName
does not
correspond with a recognized SLEE internal component or subsystem.InvalidArgumentException
- if usage information is not available for the
specified subsystem.ManagementException
- if the Object Name could not be obtained due to a
system-level failure.ObjectName getUsageMBean(String subsystemName, String paramSetName) throws NullPointerException, UnrecognizedSubsystemException, InvalidArgumentException, UnrecognizedUsageParameterSetNameException, ManagementException
UsageMBean
object that
provides management access to the named usage parameter set for the specified
SLEE internal component or subsystem. The subsystem must be providing usage
information, ie. hasUsage(subsystemName)
returns true
.subsystemName
- the name of the internal component or subsystem.paramSetName
- the name of the usage parameter set. The name must be one of the
names returned by getUsageParameterSets
(subsystemName)
.UsageMBean
object for the subsystem.NullPointerException
- if either argument is null
.UnrecognizedSubsystemException
- if subsystemName
does not
correspond with a recognized SLEE internal component or subsystem.InvalidArgumentException
- if usage information is not available for the
specified subsystem.UnrecognizedUsageParameterSetNameException
- if the named usage parameter set
does not exist for the specified subsystem.ManagementException
- if the Object Name could not be obtained due to a
system-level failure.ObjectName getUsageNotificationManagerMBean(String subsystemName) throws NullPointerException, UnrecognizedSubsystemException, InvalidArgumentException, ManagementException
UsageNotificationManagerMBean
that provides management access to the usage notification manager for the specified
SLEE internal component or subsystem. The subsystem must be providing usage
information, ie. hasUsage(subsystemName)
returns true
.subsystemName
- the name of the internal component or subsystem.UsageNotificationManagerMBean
object
for the subsystem.NullPointerException
- if subsystemName
is null
.UnrecognizedSubsystemException
- if subsystemName
does not
correspond with a recognized SLEE internal component or subsystem.InvalidArgumentException
- if usage information is not available for the
specified subsystem.ManagementException
- if the Object Name could not be obtained due to a
system-level failure.