public interface SessionIdManager extends LifeCycle
LifeCycle.Listener
Modifier and Type | Method and Description |
---|---|
void |
addSession(javax.servlet.http.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,
javax.servlet.http.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(javax.servlet.http.HttpServletRequest request,
long created) |
void |
removeSession(javax.servlet.http.HttpSession session)
Remove session from the list of known sessions for a given ID.
|
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
boolean idInUse(String id)
id
- The session ID without any cluster node extensionvoid addSession(javax.servlet.http.HttpSession session)
session
- The sessionvoid removeSession(javax.servlet.http.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(javax.servlet.http.HttpServletRequest request, long created)
request
- created
- String getWorkerName()
String getClusterId(String nodeId)
nodeId
- Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.