public class ContainerMBean extends BaseModelMBean
attributeBroadcaster, generalBroadcaster, managedBean, oname, resource, resourceType| Constructor and Description |
|---|
ContainerMBean()
Construct a
ModelMBean with default
ModelMBeanInfo information. |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(String type,
String name)
Add a new child Container to those associated with this Container,
if supported.
|
void |
addLifeCycleListener(String type)
Add a LifecycleEvent listener to this component.
|
String |
addValve(String valveType)
Adds a valve to this Container instance.
|
String[] |
findContainerListenerNames()
List the class name of each of the container listeners added to this
container.
|
String[] |
findLifecycleListenerNames()
List the class name of each of the lifecycle listeners added to this
container.
|
void |
removeChild(String name)
Remove an existing child Container from association with this parent
Container.
|
void |
removeLifeCycleListeners(String type)
Remove a LifecycleEvent listeners from this component.
|
void |
removeValve(String valveName)
Remove an existing Valve.
|
addAttributeChangeNotificationListener, addNotificationListener, getAttribute, getAttributes, getClassName, getJmxName, getManagedResource, getMBeanInfo, getModelerType, getNotificationInfo, getObjectName, invoke, postDeregister, postRegister, preDeregister, preRegister, removeAttributeChangeNotificationListener, removeAttributeChangeNotificationListener, removeNotificationListener, removeNotificationListener, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setAttribute, setAttributes, setManagedBean, setManagedResource, toStringpublic ContainerMBean()
throws MBeanException,
RuntimeOperationsException
ModelMBean with default
ModelMBeanInfo information.MBeanException - if the initializer of an object
throws an exceptionRuntimeOperationsException - if an IllegalArgumentException
occurspublic void addChild(String type, String name) throws MBeanException
type - ClassName of the child to be addedname - Name of the child to be addedMBeanException - if the child cannot be addedpublic void removeChild(String name) throws MBeanException
name - Name of the existing child Container to be removedMBeanExceptionpublic String addValve(String valveType) throws MBeanException
valveType - ClassName of the valve to be addedMBeanException - if a component cannot be removedpublic void removeValve(String valveName) throws MBeanException
valveName - MBean Name of the Valve to removeMBeanException - if a component cannot be removedpublic void addLifeCycleListener(String type) throws MBeanException
type - ClassName of the listener to addMBeanExceptionpublic void removeLifeCycleListeners(String type) throws MBeanException
type - The ClassName of the listeners to be removed.
Note that all the listeners having given ClassName will be removed.MBeanExceptionpublic String[] findLifecycleListenerNames() throws MBeanException
MBeanExceptionpublic String[] findContainerListenerNames() throws MBeanException
MBeanExceptionCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.