public class ContainerMBean extends BaseCatalinaMBean<ContainerBase>
attributeBroadcaster, generalBroadcaster, managedBean, oname, resource, resourceType
Constructor and Description |
---|
ContainerMBean() |
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.
|
doGetManagedResource, newInstance
addAttributeChangeNotificationListener, 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, toString
public 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 removedMBeanException
- if the child cannot be removedpublic String addValve(String valveType) throws MBeanException
valveType
- ClassName of the valve to be addedMBeanException
- if adding the valve failedpublic 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 addMBeanException
- if adding the listener failedpublic 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.MBeanException
- propagated from the managed resource accesspublic String[] findLifecycleListenerNames() throws MBeanException
MBeanException
- propagated from the managed resource accesspublic String[] findContainerListenerNames() throws MBeanException
MBeanException
- propagated from the managed resource accessCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.