|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SessionIdManager
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.mortbay.component.LifeCycle |
---|
LifeCycle.Listener |
Method Summary | |
---|---|
void |
addSession(HttpSession session)
Add a session to the list of known sessions for a given ID. |
String |
getClusterId(String nodeId)
Get a cluster ID from a node ID. |
String |
getNodeId(String clusterId,
HttpServletRequest request)
Get a node ID from a cluster ID and a request |
String |
getWorkerName()
|
boolean |
idInUse(String id)
|
void |
invalidateAll(String id)
Call HttpSession.invalidate() on all known sessions for the given id. |
String |
newSessionId(HttpServletRequest request,
long created)
|
void |
removeSession(HttpSession session)
Remove session from the list of known sessions for a given ID. |
Methods inherited from interface org.mortbay.component.LifeCycle |
---|
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop |
Method Detail |
---|
boolean idInUse(String id)
id
- The session ID without any cluster node extension
void addSession(HttpSession session)
session
- The sessionvoid removeSession(HttpSession session)
session
- void invalidateAll(String id)
HttpSession.invalidate()
on all known sessions for the given id.
id
- The session ID without any cluster node extensionString newSessionId(HttpServletRequest request, long created)
request
- created
-
String getWorkerName()
String getClusterId(String nodeId)
nodeId
-
String getNodeId(String clusterId, HttpServletRequest request)
clusterId
- The ID of the sessionrequest
- The request that for the session (or null)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |