org.exoplatform.container.jmx
Class ExoModelMBean
java.lang.Object
javax.management.modelmbean.RequiredModelMBean
org.exoplatform.container.jmx.ExoModelMBean
- All Implemented Interfaces:
- DynamicMBean, MBeanRegistration, ModelMBean, ModelMBeanNotificationBroadcaster, NotificationBroadcaster, NotificationEmitter, PersistentMBean, ManagementContext
public class ExoModelMBean
- extends RequiredModelMBean
- implements ManagementContext
A convenient subclass of RequiredModelMBean) that routes the invocation of the interface
{@link MBeanRegistration} to the managed resource when it implements the method.
- Version:
- $Revision$
- Author:
- Julien Viet
| Methods inherited from class javax.management.modelmbean.RequiredModelMBean |
addAttributeChangeNotificationListener, addNotificationListener, getAttribute, getAttributes, getClassLoaderRepository, getMBeanInfo, getNotificationInfo, invoke, load, removeAttributeChangeNotificationListener, removeNotificationListener, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setAttribute, setAttributes, setManagedResource, setModelMBeanInfo, store |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExoModelMBean
public ExoModelMBean(ManagementContextImpl parentContext,
Object mr,
ModelMBeanInfo mbi)
throws MBeanException,
RuntimeOperationsException,
InstanceNotFoundException,
InvalidTargetObjectTypeException
- Throws:
MBeanException
RuntimeOperationsException
InstanceNotFoundException
InvalidTargetObjectTypeException
preRegister
public ObjectName preRegister(MBeanServer server,
ObjectName name)
throws Exception
- Specified by:
preRegister in interface MBeanRegistration- Overrides:
preRegister in class RequiredModelMBean
- Throws:
Exception
postRegister
public void postRegister(Boolean registrationDone)
- Specified by:
postRegister in interface MBeanRegistration- Overrides:
postRegister in class RequiredModelMBean
preDeregister
public void preDeregister()
throws Exception
- Specified by:
preDeregister in interface MBeanRegistration- Overrides:
preDeregister in class RequiredModelMBean
- Throws:
Exception
postDeregister
public void postDeregister()
- Specified by:
postDeregister in interface MBeanRegistration- Overrides:
postDeregister in class RequiredModelMBean
getManagedResource
public Object getManagedResource()
register
public void register(Object o)
throws IllegalArgumentException,
NullPointerException
- Description copied from interface:
ManagementContext
- Register an object as a managed object.
- Specified by:
register in interface ManagementContext
- Parameters:
o - the object to be managed
- Throws:
IllegalArgumentException - if the object is not manageable
NullPointerException - if the object is null
unregister
public void unregister(Object o)
throws IllegalArgumentException,
NullPointerException
- Description copied from interface:
ManagementContext
- Unregisters an object from its managed life cycle.
- Specified by:
unregister in interface ManagementContext
- Parameters:
o - the object to be unmanaged
- Throws:
IllegalArgumentException - if the object is not manageable
NullPointerException - if the object is null
Copyright © 2009 eXo Platform SAS. All Rights Reserved.