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(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.
|
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, toString
public ContainerMBean() throws javax.management.MBeanException, javax.management.RuntimeOperationsException
ModelMBean
with default
ModelMBeanInfo
information.javax.management.MBeanException
- if the initializer of an object
throws an exceptionjavax.management.RuntimeOperationsException
- if an IllegalArgumentException
occurspublic 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
public java.lang.String addValve(java.lang.String valveType) throws javax.management.MBeanException
valveType
- ClassName of the valve to be addedjavax.management.MBeanException
- if a component cannot be removedpublic 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
public 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
public java.lang.String[] findLifecycleListenerNames() throws javax.management.MBeanException
javax.management.MBeanException
public java.lang.String[] findContainerListenerNames() throws javax.management.MBeanException
javax.management.MBeanException
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.