Top Constructors Methods
org.apache.catalina.mbeans

public Class ContainerMBean

extends BaseCatalinaMBean<ContainerBase>
Class Inheritance
Imports
java.util.ArrayList, .List, javax.management.MBeanException, .MalformedObjectNameException, .ObjectName, org.apache.catalina.Container, .ContainerListener, .JmxEnabled, .LifecycleException, .LifecycleListener, .Valve, org.apache.catalina.core.ContainerBase, .StandardContext, .StandardHost, org.apache.catalina.startup.ContextConfig, .HostConfig

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addChild(String
ClassName of the child to be added
type
,
String
Name of the child to be added
name
)

Add a new child Container to those associated with this Container, if supported.

public void
addLifecycleListener(String
ClassName of the listener to add
type
)

Add a LifecycleEvent listener to this component.

public String

Returns:

the MBean name of the new valve
addValve
(String
ClassName of the valve to be added
valveType
)

Adds a valve to this Container instance.

public String[]

Returns:

the container listeners class names
findContainerListenerNames
()

List the class name of each of the container listeners added to this container.

public String[]

Returns:

the lifecycle listeners class names
findLifecycleListenerNames
()

List the class name of each of the lifecycle listeners added to this container.

public void
removeChild(String
Name of the existing child Container to be removed
name
)

Remove an existing child Container from association with this parent Container.

public void
removeLifecycleListeners(String
The ClassName of the listeners to be removed. Note that all the listeners having given ClassName will be removed.
type
)

Remove a LifecycleEvent listeners from this component.

public void
removeValve(String
MBean Name of the Valve to remove
valveName
)

Remove an existing Valve.

Inherited from org.apache.catalina.mbeans.BaseCatalinaMBean:
doGetManagedResourcenewInstance

Constructor Detail

ContainerMBeanback to summary
public ContainerMBean()

Method Detail

addChildback to summary
public void addChild(String type, String name) throws MBeanException

Add a new child Container to those associated with this Container, if supported. Won't start the child yet. Has to be started with a call to Start method after necessary configurations are done.

Parameters
type:String

ClassName of the child to be added

name:String

Name of the child to be added

Exceptions
MBeanException:
if the child cannot be added
addLifecycleListenerback to summary
public void addLifecycleListener(String type) throws MBeanException

Add a LifecycleEvent listener to this component.

Parameters
type:String

ClassName of the listener to add

Exceptions
MBeanException:
if adding the listener failed
addValveback to summary
public String addValve(String valveType) throws MBeanException

Adds a valve to this Container instance.

Parameters
valveType:String

ClassName of the valve to be added

Returns:String

the MBean name of the new valve

Exceptions
MBeanException:
if adding the valve failed
findContainerListenerNamesback to summary
public String[] findContainerListenerNames() throws MBeanException

List the class name of each of the container listeners added to this container.

Returns:String[]

the container listeners class names

Exceptions
MBeanException:
propagated from the managed resource access
findLifecycleListenerNamesback to summary
public String[] findLifecycleListenerNames() throws MBeanException

List the class name of each of the lifecycle listeners added to this container.

Returns:String[]

the lifecycle listeners class names

Exceptions
MBeanException:
propagated from the managed resource access
removeChildback to summary
public void removeChild(String name) throws MBeanException

Remove an existing child Container from association with this parent Container.

Parameters
name:String

Name of the existing child Container to be removed

Exceptions
MBeanException:
if the child cannot be removed
removeLifecycleListenersback to summary
public void removeLifecycleListeners(String type) throws MBeanException

Remove a LifecycleEvent listeners from this component.

Parameters
type:String

The ClassName of the listeners to be removed. Note that all the listeners having given ClassName will be removed.

Exceptions
MBeanException:
propagated from the managed resource access
removeValveback to summary
public void removeValve(String valveName) throws MBeanException

Remove an existing Valve.

Parameters
valveName:String

MBean Name of the Valve to remove

Exceptions
MBeanException:
if a component cannot be removed