public abstract class AbstractSessionIdManager extends AbstractLifeCycle implements SessionIdManager
AbstractLifeCycle.AbstractLifeCycleListenerLifeCycle.Listener| Modifier and Type | Field and Description |
|---|---|
protected java.util.Random |
_random |
protected boolean |
_weakRandom |
protected java.lang.String |
_workerName |
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING| Constructor and Description |
|---|
AbstractSessionIdManager() |
AbstractSessionIdManager(java.util.Random random) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
protected void |
doStop() |
java.util.Random |
getRandom() |
java.lang.String |
getWorkerName()
Get the workname.
|
void |
initRandom()
Set up a random number generator for the sessionids.
|
java.lang.String |
newSessionId(javax.servlet.http.HttpServletRequest request,
long created)
Create a new session id if necessary.
|
void |
setRandom(java.util.Random random) |
void |
setWorkerName(java.lang.String workerName)
Set the workname.
|
addLifeCycleListener, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddSession, getClusterId, getNodeId, idInUse, invalidateAll, removeSessionaddLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopprotected java.util.Random _random
protected boolean _weakRandom
protected java.lang.String _workerName
public AbstractSessionIdManager()
public AbstractSessionIdManager(java.util.Random random)
public java.lang.String getWorkerName()
getWorkerName in interface SessionIdManagerpublic void setWorkerName(java.lang.String workerName)
workerName - public java.util.Random getRandom()
public void setRandom(java.util.Random random)
public java.lang.String newSessionId(javax.servlet.http.HttpServletRequest request,
long created)
newSessionId in interface SessionIdManagerSessionIdManager.newSessionId(javax.servlet.http.HttpServletRequest, long)protected void doStart()
throws java.lang.Exception
doStart in class AbstractLifeCyclejava.lang.Exceptionprotected void doStop()
throws java.lang.Exception
doStop in class AbstractLifeCyclejava.lang.Exceptionpublic void initRandom()
Copyright © 2013 FuseSource, Corp.. All Rights Reserved.