public class JmxBuilderModelMBean
extends javax.management.modelmbean.RequiredModelMBean
implements javax.management.NotificationListener
Constructor and Description |
---|
JmxBuilderModelMBean() |
JmxBuilderModelMBean(javax.management.modelmbean.ModelMBeanInfo mbi) |
JmxBuilderModelMBean(java.lang.Object objectRef) |
Modifier and Type | Method and Description |
---|---|
void |
addEventListeners(javax.management.MBeanServer server,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> descriptor)
Sets up event listeners for this MBean as described in the descriptor.
|
void |
addOperationCallListeners(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>>> descriptor)
Registers listeners for operation calls (i.e.
|
void |
handleNotification(javax.management.Notification note,
java.lang.Object handback) |
java.lang.Object |
invoke(java.lang.String opName,
java.lang.Object[] opArgs,
java.lang.String[] signature) |
void |
setManagedResource(java.lang.Object obj) |
addAttributeChangeNotificationListener, addNotificationListener, getAttribute, getAttributes, getClassLoaderRepository, getMBeanInfo, getNotificationInfo, load, postDeregister, postRegister, preDeregister, preRegister, removeAttributeChangeNotificationListener, removeNotificationListener, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setAttribute, setAttributes, setManagedResource, setModelMBeanInfo, store
public JmxBuilderModelMBean(java.lang.Object objectRef) throws javax.management.MBeanException, javax.management.RuntimeOperationsException, javax.management.InstanceNotFoundException, javax.management.modelmbean.InvalidTargetObjectTypeException
javax.management.MBeanException
javax.management.RuntimeOperationsException
javax.management.InstanceNotFoundException
javax.management.modelmbean.InvalidTargetObjectTypeException
public JmxBuilderModelMBean() throws javax.management.MBeanException, javax.management.RuntimeOperationsException
javax.management.MBeanException
javax.management.RuntimeOperationsException
public JmxBuilderModelMBean(javax.management.modelmbean.ModelMBeanInfo mbi) throws javax.management.MBeanException, javax.management.RuntimeOperationsException
javax.management.MBeanException
javax.management.RuntimeOperationsException
public void setManagedResource(java.lang.Object obj)
public void addOperationCallListeners(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>>> descriptor)
descriptor
- MetaMap descriptor containing description of operation call listenerspublic void addEventListeners(javax.management.MBeanServer server, java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> descriptor)
server
- the MBeanServer is to be registered.descriptor
- a map containing info about the eventpublic java.lang.Object invoke(java.lang.String opName, java.lang.Object[] opArgs, java.lang.String[] signature) throws javax.management.MBeanException, javax.management.ReflectionException
invoke
in interface javax.management.DynamicMBean
invoke
in class javax.management.modelmbean.RequiredModelMBean
javax.management.MBeanException
javax.management.ReflectionException
public void handleNotification(javax.management.Notification note, java.lang.Object handback)
handleNotification
in interface javax.management.NotificationListener