Class ExoModelMBean
- java.lang.Object
-
- javax.management.modelmbean.RequiredModelMBean
-
- org.exoplatform.management.jmx.impl.ExoModelMBean
-
- All Implemented Interfaces:
DynamicMBean,MBeanRegistration,ModelMBean,ModelMBeanNotificationBroadcaster,NotificationBroadcaster,NotificationEmitter,PersistentMBean
public class ExoModelMBean extends RequiredModelMBean
A convenient subclass ofRequiredModelMBeanthat routes the invocation of the interfaceMBeanRegistrationto the managed resource when it implements the method.- Version:
- $Revision$
- Author:
- Julien Viet
-
-
Constructor Summary
Constructors Constructor Description ExoModelMBean(ManagedResource context, Object mr, ModelMBeanInfo mbi)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectinvoke(String opName, Object[] opArgs, String[] sig)voidpostDeregister()voidpostRegister(Boolean registrationDone)voidpreDeregister()ObjectNamepreRegister(MBeanServer server, ObjectName name)-
Methods inherited from class javax.management.modelmbean.RequiredModelMBean
addAttributeChangeNotificationListener, addNotificationListener, getAttribute, getAttributes, getClassLoaderRepository, getMBeanInfo, getNotificationInfo, load, removeAttributeChangeNotificationListener, removeNotificationListener, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setAttribute, setAttributes, setManagedResource, setModelMBeanInfo, store
-
-
-
-
Constructor Detail
-
ExoModelMBean
public ExoModelMBean(ManagedResource context, Object mr, ModelMBeanInfo mbi) throws MBeanException, RuntimeOperationsException, InstanceNotFoundException, InvalidTargetObjectTypeException
-
-
Method Detail
-
invoke
public Object invoke(String opName, Object[] opArgs, String[] sig) throws MBeanException, ReflectionException
- Specified by:
invokein interfaceDynamicMBean- Overrides:
invokein classRequiredModelMBean- Throws:
MBeanExceptionReflectionException
-
preRegister
public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception
- Specified by:
preRegisterin interfaceMBeanRegistration- Overrides:
preRegisterin classRequiredModelMBean- Throws:
Exception
-
postRegister
public void postRegister(Boolean registrationDone)
- Specified by:
postRegisterin interfaceMBeanRegistration- Overrides:
postRegisterin classRequiredModelMBean
-
preDeregister
public void preDeregister() throws Exception- Specified by:
preDeregisterin interfaceMBeanRegistration- Overrides:
preDeregisterin classRequiredModelMBean- Throws:
Exception
-
postDeregister
public void postDeregister()
- Specified by:
postDeregisterin interfaceMBeanRegistration- Overrides:
postDeregisterin classRequiredModelMBean
-
-