Method Summary |
|
public void | addLifecycleListener(LifecycleListener listener) Add a lifecycle event listener to this component. |
public void | backgroundProcess() |
public Session | createSession() Construct and return a new session object, based on the default
settings specified by this Manager's properties. |
public Session | createSession(boolean distribute) |
public LifecycleListener[] | findLifecycleListeners() Get the lifecycle listeners associated with this lifecycle. |
public CatalinaCluster | getCluster() |
public boolean | getExpireSessionsOnShutdown() |
public int | getExpiredSessions() Number of sessions that expired. |
public String | getInfo() Return descriptive information about this Manager implementation and
the corresponding version number, in the format
<description>/<version> . |
public String[] | getInvalidatedSessions() When the manager expires session not tied to a request. |
public int | getMaxActiveSessions() Return the maximum number of active Sessions allowed, or -1 for
no limit. |
public String | getName() Return the descriptive short name of this Manager implementation. |
protected DeltaSession | getNewDeltaSession() Get new session class to be used in the doLoad() method. |
public String | getPathname() Return the session persistence pathname, if any. |
public boolean | getPrintToScreen() |
public long | getProcessingTime() |
public int | getRejectedSessions() |
public boolean | getStateTransferred() |
public boolean | getUseDirtyFlag() |
public void | load() |
public void | messageDataReceived(SessionMessage msg) A message was received from another node, this
is the callback method to implement if you are interested in
receiving replication messages. |
protected void | messageReceived(SessionMessage msg, Member sender) This method is called by the received thread when a SessionMessage has
been received from one of the other nodes in the cluster. |
public void | processExpires() Invalidate all sessions that have expired. |
public void | propertyChange(PropertyChangeEvent event) Process property change events from our associated Context. |
public void | removeLifecycleListener(LifecycleListener listener) Remove a lifecycle event listener from this component. |
public SessionMessage | requestCompleted(String sessionId) When the request has been completed, the replication valve
will notify the manager, and the manager will decide whether
any replication is needed or not.
If there is a need for replication, the manager will
create a session message and that will be replicated.
The cluster determines where it gets sent.
Parameters: sessionId - - the sessionId that just completed. |
protected void | sessionExpired(String id) |
public void | setCluster(CatalinaCluster cluster) |
public void | setContainer(Container container) Set the Container with which this Manager has been associated. |
public void | setExpireSessionsOnShutdown(boolean expireSessionsOnShutdown) |
public void | setExpiredSessions(int expiredSessions) |
public void | setMaxActiveSessions(int max) Set the maximum number of actives Sessions allowed, or -1 for
no limit. |
public void | setName(String name) |
public void | setPathname(String pathname) Set the session persistence pathname to the specified value. |
public void | setPrintToScreen(boolean printToScreen) |
public void | setProcessingTime(long processingTime) |
public void | setRejectedSessions(int rejectedSessions) |
public void | setStateTransferred(boolean stateTransferred) |
public void | setUseDirtyFlag(boolean useDirtyFlag) |
public void | start() Prepare for the beginning of active use of the public methods of this
component. |
public void | stop() Gracefully terminate the active use of the public methods of this
component. |
public void | unload() |