|
Apache Tomcat 7.0.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.catalina.mbeans.ServerLifecycleListener
public class ServerLifecycleListener
Implementation of LifecycleListener
that
instantiates the set of MBeans associated with the components of a
running instance of Catalina.
Field Summary | |
---|---|
protected String |
descriptors
Semicolon separated list of paths containing MBean descriptor resources. |
Constructor Summary | |
---|---|
ServerLifecycleListener()
|
Method Summary | |
---|---|
void |
containerEvent(ContainerEvent event)
Handle a ContainerEvent from one of the Containers we are
interested in. |
protected void |
createMBeans(Connector connector)
Create the MBeans for the specified Connector and its nested components. |
protected void |
createMBeans(Context context)
Create the MBeans for the specified Context and its nested components. |
protected void |
createMBeans(ContextEnvironment environment)
Create the MBeans for the specified ContextEnvironment entry. |
protected void |
createMBeans(ContextResource resource)
Create the MBeans for the specified ContextResource entry. |
protected void |
createMBeans(ContextResourceLink resourceLink)
Create the MBeans for the specified ContextResourceLink entry. |
protected void |
createMBeans(Engine engine)
Create the MBeans for the specified Engine and its nested components. |
protected void |
createMBeans(Host host)
Create the MBeans for the specified Host and its nested components. |
protected void |
createMBeans(MBeanFactory factory)
Create the MBeans for MBeanFactory. |
protected void |
createMBeans(NamingResources resources)
Create the MBeans for the specified NamingResources and its nested components. |
protected void |
createMBeans(Server server)
Create the MBeans for the specified Server and its nested components. |
protected void |
createMBeans(Service service)
Create the MBeans for the specified Service and its nested components. |
protected void |
destroyMBeans(Connector connector,
Service service)
Deregister the MBeans for the specified Connector and its nested components. |
protected void |
destroyMBeans(Context context)
Deregister the MBeans for the specified Context and its nested components. |
protected void |
destroyMBeans(ContextEnvironment environment)
Deregister the MBeans for the specified ContextEnvironment entry. |
protected void |
destroyMBeans(ContextResource resource)
Deregister the MBeans for the specified ContextResource entry. |
protected void |
destroyMBeans(ContextResourceLink resourceLink)
Deregister the MBeans for the specified ContextResourceLink entry. |
protected void |
destroyMBeans(Engine engine)
Deregister the MBeans for the specified Engine and its nested components. |
protected void |
destroyMBeans(Host host)
Deregister the MBeans for the specified Host and its nested components. |
protected void |
destroyMBeans(NamingResources resources)
Deregister the MBeans for the specified NamingResources and its nested components. |
protected void |
destroyMBeans(Server server)
Deregister the MBeans for the specified Server and its related components. |
protected void |
destroyMBeans(Service service)
Deregister the MBeans for the specified Service and its nested components. |
String |
getDescriptors()
|
void |
lifecycleEvent(LifecycleEvent event)
Primary entry point for startup and shutdown events. |
protected void |
processContainerAddChild(Container parent,
Container child)
Process the addition of a new child Container to a parent Container. |
protected void |
processContainerPropertyChange(Container container,
String propertyName,
Object oldValue,
Object newValue)
Process a property change event on a Container. |
protected void |
processContainerRemoveChild(Container parent,
Container child)
Process the removal of a child Container from a parent Container. |
protected void |
processNamingResourcesPropertyChange(NamingResources resources,
String propertyName,
Object oldValue,
Object newValue)
Process a property change event on a NamingResources. |
protected void |
processServerPropertyChange(Server server,
String propertyName,
Object oldValue,
Object newValue)
Process a property change event on a Server. |
protected void |
processServicePropertyChange(Service service,
String propertyName,
Object oldValue,
Object newValue)
Process a property change event on a Service. |
void |
propertyChange(PropertyChangeEvent event)
Handle a PropertyChangeEvent from one of the Containers
we are interested in. |
void |
setDescriptors(String descriptors)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String descriptors
Constructor Detail |
---|
public ServerLifecycleListener()
Method Detail |
---|
public String getDescriptors()
public void setDescriptors(String descriptors)
public void containerEvent(ContainerEvent event)
ContainerEvent
from one of the Containers we are
interested in.
containerEvent
in interface ContainerListener
event
- The event that has occurredpublic void lifecycleEvent(LifecycleEvent event)
lifecycleEvent
in interface LifecycleListener
event
- The event that has occurredpublic void propertyChange(PropertyChangeEvent event)
PropertyChangeEvent
from one of the Containers
we are interested in.
propertyChange
in interface PropertyChangeListener
event
- The event that has occurredprotected void createMBeans(Connector connector) throws Exception
connector
- Connector for which to create MBeans
Exception
- if an exception is thrown during MBean creationprotected void createMBeans(Context context) throws Exception
context
- Context for which to create MBeans
Exception
- if an exception is thrown during MBean creationprotected void createMBeans(ContextEnvironment environment) throws Exception
environment
- ContextEnvironment for which to create MBeans
Exception
- if an exception is thrown during MBean creationprotected void createMBeans(ContextResource resource) throws Exception
resource
- ContextResource for which to create MBeans
Exception
- if an exception is thrown during MBean creationprotected void createMBeans(ContextResourceLink resourceLink) throws Exception
resourceLink
- ContextResourceLink for which to create MBeans
Exception
- if an exception is thrown during MBean creationprotected void createMBeans(Engine engine) throws Exception
engine
- Engine for which to create MBeans
Exception
- if an exception is thrown during MBean creationprotected void createMBeans(Host host) throws Exception
host
- Host for which to create MBeans
Exception
- if an exception is thrown during MBean creationprotected void createMBeans(MBeanFactory factory) throws Exception
factory
- MBeanFactory for which to create MBean
Exception
- if an exception is thrown during MBean creationprotected void createMBeans(NamingResources resources) throws Exception
resources
- NamingResources for which to create MBeans
Exception
protected void createMBeans(Server server) throws Exception
server
- Server for which to create MBeans
Exception
- if an exception is thrown during MBean creationprotected void createMBeans(Service service) throws Exception
service
- Service for which to create MBeans
Exception
- if an exception is thrown during MBean creationprotected void destroyMBeans(Connector connector, Service service) throws Exception
connector
- Connector for which to deregister MBeans
Exception
- if an exception is thrown during MBean destructionprotected void destroyMBeans(Context context) throws Exception
context
- Context for which to deregister MBeans
Exception
- if an exception is thrown during MBean destructionprotected void destroyMBeans(ContextEnvironment environment) throws Exception
environment
- ContextEnvironment for which to destroy MBeans
Exception
- if an exception is thrown during MBean destructionprotected void destroyMBeans(ContextResource resource) throws Exception
resource
- ContextResource for which to destroy MBeans
Exception
- if an exception is thrown during MBean destructionprotected void destroyMBeans(ContextResourceLink resourceLink) throws Exception
resourceLink
- ContextResourceLink for which to destroy MBeans
Exception
- if an exception is thrown during MBean destructionprotected void destroyMBeans(Engine engine) throws Exception
engine
- Engine for which to destroy MBeans
Exception
- if an exception is thrown during MBean destructionprotected void destroyMBeans(Host host) throws Exception
host
- Host for which to destroy MBeans
Exception
- if an exception is thrown during MBean destructionprotected void destroyMBeans(NamingResources resources) throws Exception
resources
- NamingResources for which to destroy MBeans
Exception
- if an exception is thrown during MBean destructionprotected void destroyMBeans(Server server) throws Exception
server
- Server for which to destroy MBeans
Exception
- if an exception is thrown during MBean destructionprotected void destroyMBeans(Service service) throws Exception
service
- Service for which to destroy MBeans
Exception
- if an exception is thrown during MBean destructionprotected void processContainerAddChild(Container parent, Container child)
parent
- Parent containerchild
- Child containerprotected void processContainerPropertyChange(Container container, String propertyName, Object oldValue, Object newValue) throws Exception
container
- The container on which this event occurredpropertyName
- The name of the property that changedoldValue
- The previous value (may be null
)newValue
- The new value (may be null
)
Exception
- if an exception is thrownprotected void processContainerRemoveChild(Container parent, Container child)
parent
- Parent containerchild
- Child containerprotected void processNamingResourcesPropertyChange(NamingResources resources, String propertyName, Object oldValue, Object newValue) throws Exception
resources
- The global naming resources on which this
event occurredpropertyName
- The name of the property that changedoldValue
- The previous value (may be null
)newValue
- The new value (may be null
)
Exception
- if an exception is thrownprotected void processServerPropertyChange(Server server, String propertyName, Object oldValue, Object newValue) throws Exception
server
- The server on which this event occurredpropertyName
- The name of the property that changedoldValue
- The previous value (may be null
)newValue
- The new value (may be null
)
Exception
- if an exception is thrownprotected void processServicePropertyChange(Service service, String propertyName, Object oldValue, Object newValue) throws Exception
service
- The service on which this event occurredpropertyName
- The name of the property that changedoldValue
- The previous value (may be null
)newValue
- The new value (may be null
)
Exception
- if an exception is thrown
|
Apache Tomcat 7.0.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |