java.lang.Object | |
↳ | com.sun.jmx.mbeanserver.MBeanSupport<M> |
![]() |
Base class for MBeans. There is one instance of this class for every Standard MBean and every MXBean. We try to limit the amount of information per instance so we can handle very large numbers of MBeans comfortably.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Obtain the value of a specific attribute of the Dynamic MBean.
| |||||||||||
Get the values of several attributes of the Dynamic MBean.
| |||||||||||
The name of this MBean's class, as used by permission checks.
| |||||||||||
Provides the exposed attributes and actions of the Dynamic MBean using an MBeanInfo object.
| |||||||||||
The resource corresponding to this MBean.
| |||||||||||
Allows an action to be invoked on the Dynamic MBean.
| |||||||||||
Allows the MBean to perform any operations needed after having been
unregistered in the MBean server.
| |||||||||||
Allows the MBean to perform any operations needed after having been
registered in the MBean server or after the registration has failed.
| |||||||||||
Allows the MBean to perform any operations it needs before
being unregistered by the MBean server.
| |||||||||||
Allows the MBean to perform any operations it needs before
being registered in the MBean server.
| |||||||||||
Additional registration hook.
| |||||||||||
Additional registration hook.
| |||||||||||
Set the value of a specific attribute of the Dynamic MBean.
| |||||||||||
Sets the values of several attributes of the Dynamic MBean.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Obtain the value of a specific attribute of the Dynamic MBean.
attribute | The name of the attribute to be retrieved |
---|
Get the values of several attributes of the Dynamic MBean.
attributes | A list of the attributes to be retrieved. |
---|
The name of this MBean's class, as used by permission checks. This is typically equal to getResource().getClass().getName(). This method is typically faster, sometimes much faster, than getMBeanInfo().getClassName(), but should return the same result.
Provides the exposed attributes and actions of the Dynamic MBean using an MBeanInfo object.
MBeanInfo
allowing all attributes and actions
exposed by this Dynamic MBean to be retrieved.
The resource corresponding to this MBean. This is the object whose class name should be reflected by the MBean's getMBeanInfo().getClassName() for example. For a "plain" DynamicMBean it will be "this". For an MBean that wraps another object, like javax.management.StandardMBean, it will be the wrapped object.
Allows an action to be invoked on the Dynamic MBean.
operation | The name of the action to be invoked. |
---|---|
params | An array containing the parameters to be set when the action is invoked. |
signature | An array containing the signature of the action. The class objects will be loaded through the same class loader as the one used for loading the MBean on which the action is invoked. |
Allows the MBean to perform any operations needed after having been unregistered in the MBean server.
Allows the MBean to perform any operations needed after having been registered in the MBean server or after the registration has failed.
registrationDone | Indicates whether or not the MBean has been successfully registered in the MBean server. The value false means that the registration phase has failed. |
---|
Allows the MBean to perform any operations it needs before being unregistered by the MBean server.
Exception |
---|
Allows the MBean to perform any operations it needs before being registered in the MBean server. If the name of the MBean is not specified, the MBean can provide a name for its registration. If any exception is raised, the MBean will not be registered in the MBean server.
server | The MBean server in which the MBean will be registered. |
---|---|
name | The object name of the MBean. This name is null if
the name parameter to one of the createMBean or
registerMBean methods in the MBeanServer
interface is null. In that case, this method must return a
non-null ObjectName for the new MBean. |
name
parameter is not null, it will usually but not necessarily be
the returned value.Exception |
---|
Additional registration hook. This method is called after
preRegister
.
Unlike that method, if it throws an exception and the MBean implements
MBeanRegistration
, then postRegister(false)
will be called on the MBean. This is the behavior that the MBean
expects for a problem that does not come from its own preRegister
method.
Exception |
---|
Additional registration hook. This method is called if preRegister and preRegister2 succeed, but then the MBean cannot be registered (for example because there is already another MBean of the same name).
Set the value of a specific attribute of the Dynamic MBean.
attribute | The identification of the attribute to be set and the value it is to be set to. |
---|
Sets the values of several attributes of the Dynamic MBean.
attributes | A list of attributes: The identification of the attributes to be set and the values they are to be set to. |
---|