|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectStandardManager
org.jboss.web.tomcat.tc5.session.JBossManagerCMP
Implementation of a clustered session manager for catalina.
ClusteredHTTPSessionService
(src) ,
Serialized FormField Summary | |
protected int |
invalidateSessionPolicy
|
protected ObjectName (src) |
objectName
The objectname this Manager is associated with |
protected int |
replicationType
|
protected boolean |
started
Is the reaper-thread started? |
Constructor Summary | |
JBossManagerCMP()
|
Method Summary | |
void |
add(Session session)
Add session to this Manager |
Session |
createSession()
Create a new session |
Session |
findSession(java.lang.String id)
Find the session for the given id |
java.lang.String |
getInfo()
Get a informational string about this class |
int |
getInvalidateSessionPolicy()
The session invalidation policy. |
java.lang.String |
getJvmRouteId(java.lang.String id)
Generate new sessionid for a new jvmRoute - during failover |
java.lang.Integer |
getLocalActiveSessionCount()
|
int |
getReplicationType()
|
org.jboss.web.tomcat.tc5.session.ClusteredSession[] |
getSessions()
|
void |
init(java.lang.String name,
WebMetaData (src) webMetaData,
boolean useJK,
boolean useLocalCache)
Initialize the manager with the web metadata and |
boolean |
isUseLocalCache()
|
void |
load()
Load persisted sessions (NOT supported by this Manager) |
protected org.jboss.web.tomcat.tc5.session.ClusteredSessionCMP |
loadSession(java.lang.String id)
Load a session from the distributed store |
void |
processExpires()
Go through all sessions and look if they have expired |
protected void |
recycle(Session session)
|
void |
remove(Session session)
Removes a session from this Manager |
void |
removeLocal(Session session)
Remove a session from the local store only |
protected void |
removeSession(java.lang.String id)
Remove a session from the distributed store |
void |
run()
Overloaded run()-method of the session-cleanup-thread. |
void |
setNewSessionCookie(java.lang.String sessionId,
HttpServletResponse response)
Sets a new cookie for the given session id and response |
void |
setSessionCookie(java.lang.String sessionId)
Sets a new cookie for the given session id and response |
void |
start()
Start this Manager |
protected void |
startManager()
Prepare for the beginning of active use of the public methods of this component. |
void |
stop()
Stop this Manager |
protected void |
stopManager()
Gracefully terminate the active use of the public methods of this component. |
boolean |
storeSession(Session session)
Store a session in the distributed store |
void |
unload()
Load persisted sessions (NOT supported by this Manager) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.web.tomcat.tc5.session.AbstractJBossManager (src) |
getJvmRoute |
Field Detail |
protected ObjectName (src) objectName
protected boolean started
protected int invalidateSessionPolicy
protected int replicationType
Constructor Detail |
public JBossManagerCMP()
Method Detail |
public void init(java.lang.String name, WebMetaData (src) webMetaData, boolean useJK, boolean useLocalCache) throws ClusteringNotSupportedException (src)
AbstractJBossManager (src)
init
in interface AbstractJBossManager (src)
name
- webMetaData
- useJK
- useLocalCache
-
ClusteringNotSupportedException (src)
public boolean isUseLocalCache()
public java.lang.Integer getLocalActiveSessionCount()
getLocalActiveSessionCount
in interface JBossManagerCMPMBean (src)
public org.jboss.web.tomcat.tc5.session.ClusteredSession[] getSessions()
public int getInvalidateSessionPolicy()
AbstractJBossManager (src)
getInvalidateSessionPolicy
in interface AbstractJBossManager (src)
public int getReplicationType()
public Session createSession()
public java.lang.String getJvmRouteId(java.lang.String id)
id
- The session idpublic void setSessionCookie(java.lang.String sessionId)
sessionId
- The session idpublic void setNewSessionCookie(java.lang.String sessionId, HttpServletResponse response)
AbstractJBossManager (src)
setNewSessionCookie
in interface AbstractJBossManager (src)
sessionId
- The session idpublic Session findSession(java.lang.String id) throws java.io.IOException
id
- The session id
java.io.IOException
public void add(Session session)
session
- The session that wants to be addedpublic void remove(Session session)
session
- that wants to be removedpublic void removeLocal(Session session)
removeLocal
in interface AbstractJBossManager (src)
session
- the session to be removedprotected void recycle(Session session)
public java.lang.String getInfo()
public void start() throws LifecycleException
LifecycleException
public void stop() throws LifecycleException
LifecycleException
protected void startManager() throws LifecycleException
configure()
,
and before any of the public methods of the component are utilized.
java.lang.IllegalStateException
- if this component has already been
started
LifecycleException
- if this component detects a fatal error
that prevents this component from being usedprotected void stopManager() throws LifecycleException
java.lang.IllegalStateException
- if this component has not been started
LifecycleException
- if this component detects a fatal error
that needs to be reportedpublic void load() throws java.lang.ClassNotFoundException, java.io.IOException
java.lang.ClassNotFoundException
java.io.IOException
public void unload() throws java.io.IOException
java.io.IOException
public void run()
public boolean storeSession(Session session)
storeSession
in interface AbstractJBossManager (src)
session
- The session to storeprotected org.jboss.web.tomcat.tc5.session.ClusteredSessionCMP loadSession(java.lang.String id)
id
- The session-id for the session to load
protected void removeSession(java.lang.String id)
id
- The session-id for the session to removepublic void processExpires()
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |