|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.web.tomcat.service.session.ConvergedSessionReplicationContext
public final class ConvergedSessionReplicationContext
| Method Summary | |
|---|---|
static void |
bindSession(org.jboss.web.tomcat.service.session.ClusteredSession session,
org.jboss.web.tomcat.service.session.SnapshotManager manager)
|
static void |
bindSipApplicationSession(ClusteredSipApplicationSession session,
org.jboss.web.tomcat.service.session.SnapshotManager manager)
|
static void |
bindSipSession(ClusteredSipSession session,
org.jboss.web.tomcat.service.session.SnapshotManager manager)
|
static void |
enterSipapp(SipServletRequestImpl request,
SipServletResponseImpl response,
boolean startCacheActivity)
Associate a SessionReplicationContext with the current thread, if there isn't one already. |
static void |
enterSipappAndBindSessions(SipServletRequestImpl request,
SipServletResponseImpl response,
SipManager manager,
boolean startCacheActivity)
Associate a SessionReplicationContext with the current thread, if there isn't one already. |
static void |
enterWebapp(org.apache.catalina.connector.Request request,
org.apache.catalina.connector.Response response,
boolean startCacheActivity)
Associate a SessionReplicationContext with the current thread, if there isn't one already. |
static ConvergedSessionReplicationContext |
exitSipapp()
Signals that the webapp is finished handling the request (and therefore replication can begin.) |
static ConvergedSessionReplicationContext |
exitWebapp()
Signals that the webapp is finished handling the request (and therefore replication can begin.) |
static void |
finishCacheActivity()
Marks the completion of activity on a given session. |
static void |
finishSipCacheActivity()
Marks the completion of activity on a given session. |
java.util.Map |
getCrossContextSessions()
Gets a Map |
static org.apache.catalina.connector.Request |
getOriginalRequest()
|
static org.apache.catalina.connector.Response |
getOriginalResponse()
|
org.jboss.web.tomcat.service.session.ClusteredSession |
getSoleSession()
Gets the ClusteredSession that was passed to bindSession(ClusteredSession, SnapshotManager) if and only
if only one SnapshotManager was passed. |
ClusteredSipApplicationSession |
getSoleSipApplicationSession()
Gets the ClusteredSession that was passed to bindSession(ClusteredSession, SnapshotManager) if and only
if only one SnapshotManager was passed. |
ClusteredSipSession |
getSoleSipSession()
Gets the ClusteredSession that was passed to bindSession(ClusteredSession, SnapshotManager) if and only
if only one SnapshotManager was passed. |
org.jboss.web.tomcat.service.session.SnapshotManager |
getSoleSnapshotManager()
Gets the SnapshotManager that was passed to bindSession(ClusteredSession, SnapshotManager) if and only
if only one such SnapshotManager was passed. |
static boolean |
isLocallyActive()
|
static boolean |
isSessionBoundAndExpired(java.lang.String realId,
org.jboss.web.tomcat.service.session.SnapshotManager manager)
|
static boolean |
isSipApplicationSessionBoundAndExpired(java.lang.String key,
org.jboss.web.tomcat.service.session.SnapshotManager manager)
|
static boolean |
isSipLocallyActive()
|
static boolean |
isSipSessionBoundAndExpired(java.lang.String key,
org.jboss.web.tomcat.service.session.SnapshotManager manager)
|
static void |
sessionExpired(org.jboss.web.tomcat.service.session.ClusteredSession session,
java.lang.String realId,
org.jboss.web.tomcat.service.session.SnapshotManager manager)
|
static void |
sipApplicationSessionExpired(ClusteredSipApplicationSession session,
java.lang.String realId,
org.jboss.web.tomcat.service.session.SnapshotManager manager)
|
static void |
sipSessionExpired(ClusteredSipSession session,
java.lang.String realId,
org.jboss.web.tomcat.service.session.SnapshotManager manager)
|
static void |
startCacheActivity()
Marks the current thread as actively processing the given session. |
static void |
startSipCacheActivity()
Marks the current thread as actively processing the given session. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void enterWebapp(org.apache.catalina.connector.Request request,
org.apache.catalina.connector.Response response,
boolean startCacheActivity)
exitWebapp()
are supported; once a context is established the number of calls to this
method and exitWebapp() are tracked.
request - response - public static ConvergedSessionReplicationContext exitWebapp()
null.
public static void enterSipapp(SipServletRequestImpl request,
SipServletResponseImpl response,
boolean startCacheActivity)
exitWebapp()
are supported; once a context is established the number of calls to this
method and exitWebapp() are tracked.
request - response -
public static void enterSipappAndBindSessions(SipServletRequestImpl request,
SipServletResponseImpl response,
SipManager manager,
boolean startCacheActivity)
exitWebapp()
are supported; once a context is established the number of calls to this
method and exitWebapp() are tracked.
request - response - public static ConvergedSessionReplicationContext exitSipapp()
null.
public static void bindSession(org.jboss.web.tomcat.service.session.ClusteredSession session,
org.jboss.web.tomcat.service.session.SnapshotManager manager)
public static void bindSipSession(ClusteredSipSession session,
org.jboss.web.tomcat.service.session.SnapshotManager manager)
public static void bindSipApplicationSession(ClusteredSipApplicationSession session,
org.jboss.web.tomcat.service.session.SnapshotManager manager)
public static void sessionExpired(org.jboss.web.tomcat.service.session.ClusteredSession session,
java.lang.String realId,
org.jboss.web.tomcat.service.session.SnapshotManager manager)
public static void sipSessionExpired(ClusteredSipSession session,
java.lang.String realId,
org.jboss.web.tomcat.service.session.SnapshotManager manager)
public static void sipApplicationSessionExpired(ClusteredSipApplicationSession session,
java.lang.String realId,
org.jboss.web.tomcat.service.session.SnapshotManager manager)
public static boolean isSessionBoundAndExpired(java.lang.String realId,
org.jboss.web.tomcat.service.session.SnapshotManager manager)
public static boolean isSipSessionBoundAndExpired(java.lang.String key,
org.jboss.web.tomcat.service.session.SnapshotManager manager)
public static boolean isSipApplicationSessionBoundAndExpired(java.lang.String key,
org.jboss.web.tomcat.service.session.SnapshotManager manager)
public static void startCacheActivity()
public static void finishCacheActivity()
startCacheActivity().
public static void startSipCacheActivity()
public static void finishSipCacheActivity()
startCacheActivity().
public static boolean isLocallyActive()
public static boolean isSipLocallyActive()
public static org.apache.catalina.connector.Request getOriginalRequest()
public static org.apache.catalina.connector.Response getOriginalResponse()
public java.util.Map getCrossContextSessions()
bindSession(ClusteredSession, SnapshotManager) was called
with more than one SnapshotManager (i.e the request crossed session
contexts.)
public org.jboss.web.tomcat.service.session.SnapshotManager getSoleSnapshotManager()
bindSession(ClusteredSession, SnapshotManager) if and only
if only one such SnapshotManager was passed. Returns null
otherwise, in which case a cross-context request is a possibility,
and getCrossContextSessions() should be checked.
public org.jboss.web.tomcat.service.session.ClusteredSession getSoleSession()
bindSession(ClusteredSession, SnapshotManager) if and only
if only one SnapshotManager was passed. Returns null
otherwise, in which case a cross-context request is a possibility,
and getCrossContextSessions() should be checked.
public ClusteredSipSession getSoleSipSession()
bindSession(ClusteredSession, SnapshotManager) if and only
if only one SnapshotManager was passed. Returns null
otherwise, in which case a cross-context request is a possibility,
and getCrossContextSessions() should be checked.
public ClusteredSipApplicationSession getSoleSipApplicationSession()
bindSession(ClusteredSession, SnapshotManager) if and only
if only one SnapshotManager was passed. Returns null
otherwise, in which case a cross-context request is a possibility,
and getCrossContextSessions() should be checked.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||