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, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setAttribute, setAttributes, setManagedBean, setManagedResource, toString
public 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 removedMBeanException
public 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 addMBeanException
public 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
public String[] findLifecycleListenerNames() throws MBeanException
MBeanException
public String[] findContainerListenerNames() throws MBeanException
MBeanException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.