|
Apache Tomcat 7.0.6 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.catalina.util.LifecycleBase
org.apache.catalina.util.LifecycleMBeanBase
org.apache.catalina.connector.MapperListener
public class MapperListener
Mapper listener.
Field Summary |
---|
Fields inherited from class org.apache.catalina.util.LifecycleMBeanBase |
---|
mserver |
Fields inherited from interface org.apache.catalina.Lifecycle |
---|
AFTER_DESTROY_EVENT, AFTER_INIT_EVENT, AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_DESTROY_EVENT, BEFORE_INIT_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, CONFIGURE_START_EVENT, CONFIGURE_STOP_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT |
Constructor Summary | |
---|---|
MapperListener(Mapper mapper,
Connector connector)
Create mapper listener. |
Method Summary | |
---|---|
void |
containerEvent(ContainerEvent event)
Acknowledge the occurrence of the specified event. |
String |
getConnectorName()
|
protected String |
getDomainInternal()
Method implemented by sub-classes to identify the domain in which MBeans should be registered. |
protected String |
getObjectNameKeyProperties()
Allow sub-classes to specify the key properties component of the ObjectName that will be used to register this component. |
void |
lifecycleEvent(LifecycleEvent event)
Acknowledge the occurrence of the specified event. |
void |
startInternal()
Sub-classes must ensure that: the Lifecycle.START_EVENT is fired during the execution of
this method
the state is changed to LifecycleState.STARTING when the
Lifecycle.START_EVENT is fired
If a component fails to start it may either throw a
LifecycleException which will cause it's parent to fail to start
or it can place itself in the error state in which case LifecycleBase.stop()
will be called on the failed component but the parent component will
continue to start normally. |
void |
stopInternal()
Sub-classes must ensure that: the Lifecycle.STOP_EVENT is fired during the execution of
this method
the state is changed to LifecycleState.STOPPING when the
Lifecycle.STOP_EVENT is fired
|
Methods inherited from class org.apache.catalina.util.LifecycleMBeanBase |
---|
destroyInternal, getDomain, getObjectName, initInternal, postDeregister, postRegister, preDeregister, preRegister, register, setDomain, unregister |
Methods inherited from class org.apache.catalina.util.LifecycleBase |
---|
addLifecycleListener, destroy, findLifecycleListeners, fireLifecycleEvent, getState, getStateName, init, removeLifecycleListener, setState, setState, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapperListener(Mapper mapper, Connector connector)
Method Detail |
---|
public String getConnectorName()
public void startInternal()
LifecycleBase
Lifecycle.START_EVENT
is fired during the execution of
this methodLifecycleState.STARTING
when the
Lifecycle.START_EVENT
is fired
LifecycleException
which will cause it's parent to fail to start
or it can place itself in the error state in which case LifecycleBase.stop()
will be called on the failed component but the parent component will
continue to start normally.
startInternal
in class LifecycleBase
public void stopInternal()
LifecycleBase
Lifecycle.STOP_EVENT
is fired during the execution of
this methodLifecycleState.STOPPING
when the
Lifecycle.STOP_EVENT
is fired
stopInternal
in class LifecycleBase
protected String getDomainInternal()
LifecycleMBeanBase
getDomainInternal
in class LifecycleMBeanBase
protected String getObjectNameKeyProperties()
LifecycleMBeanBase
ObjectName
that will be used to register this component.
getObjectNameKeyProperties
in class LifecycleMBeanBase
ObjectName
public void containerEvent(ContainerEvent event)
ContainerListener
containerEvent
in interface ContainerListener
event
- ContainerEvent that has occurredpublic void lifecycleEvent(LifecycleEvent event)
LifecycleListener
lifecycleEvent
in interface LifecycleListener
event
- LifecycleEvent that has occurred
|
Apache Tomcat 7.0.6 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |