public class ContainerMBean extends BaseCatalinaMBean<ContainerBase>
attributeBroadcaster, generalBroadcaster, managedBean, oname, resource, resourceType| Constructor and Description |
|---|
ContainerMBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(java.lang.String type,
java.lang.String name)
Add a new child Container to those associated with this Container,
if supported.
|
void |
addLifecycleListener(java.lang.String type)
Add a LifecycleEvent listener to this component.
|
java.lang.String |
addValve(java.lang.String valveType)
Adds a valve to this Container instance.
|
java.lang.String[] |
findContainerListenerNames()
List the class name of each of the container listeners added to this
container.
|
java.lang.String[] |
findLifecycleListenerNames()
List the class name of each of the lifecycle listeners added to this
container.
|
void |
removeChild(java.lang.String name)
Remove an existing child Container from association with this parent
Container.
|
void |
removeLifecycleListeners(java.lang.String type)
Remove a LifecycleEvent listeners from this component.
|
void |
removeValve(java.lang.String valveName)
Remove an existing Valve.
|
doGetManagedResource, newInstanceaddAttributeChangeNotificationListener, addNotificationListener, getAttribute, getAttributes, getClassName, getJmxName, getManagedResource, getMBeanInfo, getModelerType, getNotificationInfo, getObjectName, invoke, postDeregister, postRegister, preDeregister, preRegister, removeAttributeChangeNotificationListener, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setAttribute, setAttributes, setManagedBean, setManagedResource, toStringpublic void addChild(java.lang.String type,
java.lang.String name)
throws javax.management.MBeanException
type - ClassName of the child to be addedname - Name of the child to be addedjavax.management.MBeanException - if the child cannot be addedpublic void removeChild(java.lang.String name)
throws javax.management.MBeanException
name - Name of the existing child Container to be removedjavax.management.MBeanException - if the child cannot be removedpublic java.lang.String addValve(java.lang.String valveType)
throws javax.management.MBeanException
valveType - ClassName of the valve to be addedjavax.management.MBeanException - if adding the valve failedpublic void removeValve(java.lang.String valveName)
throws javax.management.MBeanException
valveName - MBean Name of the Valve to removejavax.management.MBeanException - if a component cannot be removedpublic void addLifecycleListener(java.lang.String type)
throws javax.management.MBeanException
type - ClassName of the listener to addjavax.management.MBeanException - if adding the listener failedpublic void removeLifecycleListeners(java.lang.String type)
throws javax.management.MBeanException
type - The ClassName of the listeners to be removed.
Note that all the listeners having given ClassName will be removed.javax.management.MBeanException - propagated from the managed resource accesspublic java.lang.String[] findLifecycleListenerNames()
throws javax.management.MBeanException
javax.management.MBeanException - propagated from the managed resource accesspublic java.lang.String[] findContainerListenerNames()
throws javax.management.MBeanException
javax.management.MBeanException - propagated from the managed resource accessCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.