|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.catalina.cluster.session.JvmRouteSessionIDBinderLifecycleListener
Register new JvmRouteSessionIDBinderListener to receive Session ID changes. add following at your server.xml Host section
<Host >... <Listener className="org.apache.catalina.cluster.session.JvmRouteSessionIDBinderLifecycleListener" /> <Cluster ...> </Host>
Field Summary | |
protected static StringManager |
sm
The string resources for this package. |
Constructor Summary | |
JvmRouteSessionIDBinderLifecycleListener()
|
Method Summary | |
java.lang.String |
getInfo()
Return descriptive information about this Listener implementation and the corresponding version number, in the format <description>/<version> . |
protected javax.management.modelmbean.ModelMBean |
getManagedBean(java.lang.Object object)
Returns the ModelMBean |
protected javax.management.MBeanServer |
getMBeanServer()
|
protected javax.management.ObjectName |
getObjectName(StandardHost host)
|
boolean |
isEnabled()
|
void |
lifecycleEvent(LifecycleEvent event)
Acknowledge the occurrence of the specified event. |
void |
setEnabled(boolean enabled)
|
protected void |
startSessionIDListener(StandardHost host)
start sessionID mover at cluster |
protected void |
stopSessionIDListener(StandardHost host)
stop sessionID binder at cluster |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final StringManager sm
Constructor Detail |
public JvmRouteSessionIDBinderLifecycleListener()
Method Detail |
public void lifecycleEvent(LifecycleEvent event)
LifecycleListener
lifecycleEvent
in interface LifecycleListener
event
- LifecycleEvent that has occurredprotected void stopSessionIDListener(StandardHost host)
host
- clustered hostprotected javax.management.ObjectName getObjectName(StandardHost host) throws javax.management.MalformedObjectNameException
host
-
javax.management.MalformedObjectNameException
protected void startSessionIDListener(StandardHost host)
host
- clustered hostprotected javax.management.MBeanServer getMBeanServer() throws java.lang.Exception
java.lang.Exception
protected javax.management.modelmbean.ModelMBean getManagedBean(java.lang.Object object) throws java.lang.Exception
object
- The Object to get the ModelMBean for
java.lang.Exception
- If an error occurs this constructors throws this exceptionpublic boolean isEnabled()
public void setEnabled(boolean enabled)
enabled
- The enabled to set.public java.lang.String getInfo()
<description>/<version>
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |