public class JndiJmx extends BaseModelMBean implements javax.management.NotificationListener
BaseModelMBean.MethodKey
Modifier and Type | Field and Description |
---|---|
(package private) java.util.Hashtable |
attributes |
protected javax.naming.Context |
componentContext |
protected javax.naming.Context |
configContext |
protected javax.naming.Context |
descriptorContext |
(package private) java.util.Hashtable |
instances |
private static org.apache.commons.logging.Log |
log |
(package private) javax.management.MBeanServer |
mserver |
attributeBroadcaster, generalBroadcaster, info, NO_ARGS_PARAM, NO_ARGS_PARAM_SIG, oname, registry, resource, resourceType, source
Constructor and Description |
---|
JndiJmx()
Protected constructor to require use of the factory create method.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
dumpStatus() |
void |
handleNotification(javax.management.Notification notification,
java.lang.Object handback) |
void |
init() |
void |
replay() |
void |
setComponentContext(javax.naming.Context ctx)
If a JNDI context is set, all components
will be registered in the context.
|
void |
setConfigContext(javax.naming.Context ctx)
JNDI context where attributes will be stored for persistence
|
void |
setDescriptorContext(javax.naming.Context ctx)
JNDI context for component descriptors ( metadata ).
|
addAttributeChangeNotificationListener, addNotificationListener, createDefaultModelMBeanInfo, createResource, getAttribute, getAttributes, getClassName, getJmxName, getManagedResource, getMBeanInfo, getModelerType, getNotificationInfo, getObjectName, getRegistry, initModelInfo, invoke, isModelMBeanInfoValid, load, postDeregister, postRegister, preDeregister, preRegister, removeAttributeChangeNotificationListener, removeAttributeChangeNotificationListener, removeNotificationListener, removeNotificationListener, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setAttribute, setAttributes, setManagedResource, setModeledType, setModelMBeanInfo, setRegistry, store, toString
private static org.apache.commons.logging.Log log
protected javax.naming.Context componentContext
protected javax.naming.Context descriptorContext
protected javax.naming.Context configContext
javax.management.MBeanServer mserver
java.util.Hashtable attributes
java.util.Hashtable instances
public JndiJmx() throws javax.management.MBeanException
javax.management.MBeanException
public void setComponentContext(javax.naming.Context ctx)
ctx
- public void setDescriptorContext(javax.naming.Context ctx)
ctx
- public void setConfigContext(javax.naming.Context ctx)
public void handleNotification(javax.management.Notification notification, java.lang.Object handback)
handleNotification
in interface javax.management.NotificationListener
public java.lang.String dumpStatus() throws java.lang.Exception
java.lang.Exception
public void replay() throws java.lang.Exception
java.lang.Exception
public void init() throws java.lang.Exception
java.lang.Exception
Copyright (c) 2001-2003 - Apache Software Foundation