| javax.management.MBeanRegistration
MBeanRegistration | abstract public interface MBeanRegistration (Code) | | This can be implemented by an MBean in order to carry out operations before
and after being registered or de-registered from the MBean server.
|
Method Summary | |
public void | postDeregister() Allows the MBean to perform any operations needed after having been
de-registered in the MBeanServer. | public void | postRegister(Boolean registrationDone) Allows the MBean to perform any operations needed after having been
registered in the MBean server or after the registration has failed.
Parameters: registrationDone - Indicates whether or not the MBean has beensuccessfully registered in the MBean server. | public void | preDeregister() Allows the MBean to perform any operations it needs before being
de-registered by the MBean server. | public ObjectName | preRegister(MBeanServer server, ObjectName name) Allows the MBean to perform any operations it needs before being
registered in the MBean server. |
postDeregister | public void postDeregister()(Code) | | Allows the MBean to perform any operations needed after having been
de-registered in the MBeanServer.
|
postRegister | public void postRegister(Boolean registrationDone)(Code) | | Allows the MBean to perform any operations needed after having been
registered in the MBean server or after the registration has failed.
Parameters: registrationDone - Indicates whether or not the MBean has beensuccessfully registered in the MBean server. The valuefalse means that the registration phase has failed. |
preDeregister | public void preDeregister() throws Exception(Code) | | Allows the MBean to perform any operations it needs before being
de-registered by the MBean server.
exception: Exception - This exception should be caught by the MBean serverand re-thrown as an MBeanRegistrationException . |
preRegister | public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception(Code) | | 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.
Parameters: server - The MBean server in which the MBean will be registered. Parameters: name - The object name of the MBean. The name of the MBean registered. exception: Exception - This exception should be caught by the MBean serverand re-thrown as an MBeanRegistrationException . |
|
|