Java Doc for DeltaManager.java in  » Sevlet-Container » apache-tomcat-6.0.14 » org » apache » catalina » ha » session » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Sevlet Container » apache tomcat 6.0.14 » org.apache.catalina.ha.session 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.catalina.ha.session.ClusterManagerBase
   org.apache.catalina.ha.session.DeltaManager

DeltaManager
public class DeltaManager extends ClusterManagerBase (Code)
The DeltaManager manages replicated sessions by only replicating the deltas in data. For applications written to handle this, the DeltaManager is the optimal way of replicating data. This code is almost identical to StandardManager with a difference in how it persists sessions and some modifications to it. IMPLEMENTATION NOTE : Correct behavior of session storing and reloading depends upon external calls to the start() and stop() methods of this class at the correct times.
author:
   Filip Hanik
author:
   Craig R. McClanahan
author:
   Jean-Francois Arcand
author:
   Peter Rossbach
version:
   $Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $


Field Summary
protected  booleandefaultMode
    
protected  LifecycleSupportlifecycle
     The lifecycle event support for this component.
public static  org.apache.juli.logging.Loglog
    
protected static  StringmanagerName
     The descriptive name of this Manager implementation (for logging).
protected  Stringname
    
 longprocessingTime
    
 intrejectedSessions
    
protected static  StringManagersm
     The string manager for this package.

Constructor Summary
public  DeltaManager()
    

Method Summary
public  voidaddLifecycleListener(LifecycleListener listener)
     Add a lifecycle event listener to this component.
protected  booleancheckSenderDomain(SessionMessage msg, Member sender)
    
public  ClusterManagercloneFromTemplate()
    
public  SessioncreateEmptySession()
    
public  SessioncreateSession(String sessionId)
     Construct and return a new session object, based on the default settings specified by this Manager's properties.
public  SessioncreateSession(String sessionId, boolean distribute)
     create new session with check maxActiveSessions and send session creation to other cluster nodes.
protected  DeltaRequestdeserializeDeltaRequest(DeltaSession session, byte[] data)
    
protected  voiddeserializeSessions(byte[] data)
     Load sessions from other cluster node.
public  booleandoDomainReplication()
    
public  voidexpireAllLocalSessions()
     Exipre all find sessions.
public  LifecycleListener[]findLifecycleListeners()
     Get the lifecycle listeners associated with this lifecycle.
protected  MemberfindSessionMasterMember()
    
public synchronized  voidgetAllClusterSessions()
    
public  CatalinaClustergetCluster()
    
public  intgetCounterNoStateTransfered()
    
public  longgetCounterReceive_EVT_ALL_SESSION_DATA()
    
public  intgetCounterReceive_EVT_ALL_SESSION_TRANSFERCOMPLETE()
    
public  longgetCounterReceive_EVT_GET_ALL_SESSIONS()
    
public  longgetCounterReceive_EVT_SESSION_ACCESSED()
    
public  longgetCounterReceive_EVT_SESSION_CREATED()
    
public  longgetCounterReceive_EVT_SESSION_DELTA()
    
public  longgetCounterReceive_EVT_SESSION_EXPIRED()
    
public  longgetCounterSend_EVT_ALL_SESSION_DATA()
    
public  intgetCounterSend_EVT_ALL_SESSION_TRANSFERCOMPLETE()
    
public  longgetCounterSend_EVT_GET_ALL_SESSIONS()
    
public  longgetCounterSend_EVT_SESSION_ACCESSED()
    
public  longgetCounterSend_EVT_SESSION_CREATED()
    
public  longgetCounterSend_EVT_SESSION_DELTA()
    
public  longgetCounterSend_EVT_SESSION_EXPIRED()
    
public  StringgetInfo()
     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  intgetMaxActiveSessions()
     Return the maximum number of active Sessions allowed, or -1 for no limit.
public  StringgetName()
     Return the descriptive short name of this Manager implementation.
protected  DeltaSessiongetNewDeltaSession()
     Get new session class to be used in the doLoad() method.
public  longgetProcessingTime()
    
public  intgetReceivedQueueSize()
    
public  intgetRejectedSessions()
    
public  intgetSendAllSessionsSize()
    
public  intgetSendAllSessionsWaitTime()
    
public  longgetSessionReplaceCounter()
    
public  intgetStateTransferTimeout()
    
public  booleangetStateTransfered()
    
protected  voidhandleALL_SESSION_DATA(SessionMessage msg, Member sender)
    
protected  voidhandleALL_SESSION_TRANSFERCOMPLETE(SessionMessage msg, Member sender)
    
protected  voidhandleGET_ALL_SESSIONS(SessionMessage msg, Member sender)
    
protected  voidhandleSESSION_ACCESSED(SessionMessage msg, Member sender)
    
protected  voidhandleSESSION_CREATED(SessionMessage msg, Member sender)
    
protected  voidhandleSESSION_DELTA(SessionMessage msg, Member sender)
    
protected  voidhandleSESSION_EXPIRED(SessionMessage msg, Member sender)
    
public  booleanisDefaultMode()
    
public  booleanisExpireSessionsOnShutdown()
    
public  booleanisNotifyListenersOnReplication()
    
public  booleanisNotifySessionListenersOnReplication()
    
public  booleanisSendAllSessions()
    
public  booleanisStateTimestampDrop()
    
public  voidload()
    
public  voidmessageDataReceived(ClusterMessage cmsg)
     A message was received from another node, this is the callback method to implement if you are interested in receiving replication messages.
protected  voidmessageReceived(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  voidpropertyChange(PropertyChangeEvent event)
     Process property change events from our associated Context.
protected  voidregisterSessionAtReplicationValve(DeltaSession session)
    
public  voidremoveLifecycleListener(LifecycleListener listener)
     Remove a lifecycle event listener from this component.
public  ClusterMessagerequestCompleted(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.
public synchronized  voidresetStatistics()
    
protected  voidsend(SessionMessage msg)
    
protected  voidsendCreateSession(String sessionId, DeltaSession session)
    
protected  voidsendSessions(Member sender, Session[] currentSessions, long sendTimestamp)
    
protected  byte[]serializeDeltaRequest(DeltaRequest deltaRequest)
    
protected  byte[]serializeSessions(Session[] currentSessions)
     Save any currently active sessions in the appropriate persistence mechanism, if any.
protected  voidsessionExpired(String id)
    
public  voidsetCluster(CatalinaCluster cluster)
    
public  voidsetContainer(Container container)
     Set the Container with which this Manager has been associated.
public  voidsetDefaultMode(boolean defaultMode)
    
public  voidsetDomainReplication(boolean sendClusterDomainOnly)
    
public  voidsetExpireSessionsOnShutdown(boolean expireSessionsOnShutdown)
    
public  voidsetMaxActiveSessions(int max)
     Set the maximum number of actives Sessions allowed, or -1 for no limit.
public  voidsetName(String name)
    
public  voidsetNotifyListenersOnReplication(boolean notifyListenersOnReplication)
    
public  voidsetNotifySessionListenersOnReplication(boolean notifyListenersCreateSessionOnReplication)
    
public  voidsetRejectedSessions(int rejectedSessions)
    
public  voidsetSendAllSessions(boolean sendAllSessions)
    
public  voidsetSendAllSessionsSize(int sendAllSessionsSize)
    
public  voidsetSendAllSessionsWaitTime(int sendAllSessionsWaitTime)
    
public  voidsetStateTimestampDrop(boolean isTimestampDrop)
    
public  voidsetStateTransferTimeout(int timeoutAllSession)
    
public  voidsetStateTransfered(boolean stateTransfered)
    
public  voidstart()
     Prepare for the beginning of active use of the public methods of this component.
public  voidstop()
     Gracefully terminate the active use of the public methods of this component.
public  voidunload()
    
protected  voidwaitForSendAllSessions(long beforeSendTime)
    

Field Detail
defaultMode
protected boolean defaultMode(Code)



lifecycle
protected LifecycleSupport lifecycle(Code)
The lifecycle event support for this component.



log
public static org.apache.juli.logging.Log log(Code)



managerName
protected static String managerName(Code)
The descriptive name of this Manager implementation (for logging).



name
protected String name(Code)



processingTime
long processingTime(Code)



rejectedSessions
int rejectedSessions(Code)



sm
protected static StringManager sm(Code)
The string manager for this package.




Constructor Detail
DeltaManager
public DeltaManager()(Code)




Method Detail
addLifecycleListener
public void addLifecycleListener(LifecycleListener listener)(Code)
Add a lifecycle event listener to this component.
Parameters:
  listener - The listener to add



checkSenderDomain
protected boolean checkSenderDomain(SessionMessage msg, Member sender)(Code)
Test that sender and local domain is the same



cloneFromTemplate
public ClusterManager cloneFromTemplate()(Code)



createEmptySession
public Session createEmptySession()(Code)
Create DeltaSession
See Also:   org.apache.catalina.Manager.createEmptySession



createSession
public Session createSession(String sessionId)(Code)
Construct and return a new session object, based on the default settings specified by this Manager's properties. The session id will be assigned by this method, and available via the getId() method of the returned session. If a new session cannot be created for any reason, return null.
exception:
  IllegalStateException - if a new session cannot be instantiated for any reasonConstruct and return a new session object, based on the default settingsspecified by this Manager's properties. The session id will be assignedby this method, and available via the getId() method of the returnedsession. If a new session cannot be created for any reason, returnnull.
exception:
  IllegalStateException - if a new session cannot be instantiated for any reason



createSession
public Session createSession(String sessionId, boolean distribute)(Code)
create new session with check maxActiveSessions and send session creation to other cluster nodes.
Parameters:
  distribute - The session



deserializeDeltaRequest
protected DeltaRequest deserializeDeltaRequest(DeltaSession session, byte[] data) throws ClassNotFoundException, IOException(Code)
Load Deltarequest from external node Load the Class at container classloader
See Also:   DeltaRequest.readExternal(java.io.ObjectInput)
Parameters:
  session -
Parameters:
  data - message data The request
throws:
  ClassNotFoundException -
throws:
  IOException -



deserializeSessions
protected void deserializeSessions(byte[] data) throws ClassNotFoundException, IOException(Code)
Load sessions from other cluster node. FIXME replace currently sessions with same id without notifcation. FIXME SSO handling is not really correct with the session replacement!
exception:
  ClassNotFoundException - if a serialized class cannot be found during the reload
exception:
  IOException - if an input/output error occurs



doDomainReplication
public boolean doDomainReplication()(Code)
Returns the sendClusterDomainOnly.



expireAllLocalSessions
public void expireAllLocalSessions()(Code)
Exipre all find sessions.



findLifecycleListeners
public LifecycleListener[] findLifecycleListeners()(Code)
Get the lifecycle listeners associated with this lifecycle. If this Lifecycle has no listeners registered, a zero-length array is returned.



findSessionMasterMember
protected Member findSessionMasterMember()(Code)
Find the master of the session state master member of sessions



getAllClusterSessions
public synchronized void getAllClusterSessions()(Code)
get from first session master the backup from all clustered sessions
See Also:   DeltaManager.findSessionMasterMember()



getCluster
public CatalinaCluster getCluster()(Code)



getCounterNoStateTransfered
public int getCounterNoStateTransfered()(Code)
Returns the counterNoStateTransfered.



getCounterReceive_EVT_ALL_SESSION_DATA
public long getCounterReceive_EVT_ALL_SESSION_DATA()(Code)
Returns the counterReceive_EVT_ALL_SESSION_DATA.



getCounterReceive_EVT_ALL_SESSION_TRANSFERCOMPLETE
public int getCounterReceive_EVT_ALL_SESSION_TRANSFERCOMPLETE()(Code)
Returns the counterReceive_EVT_ALL_SESSION_TRANSFERCOMPLETE.



getCounterReceive_EVT_GET_ALL_SESSIONS
public long getCounterReceive_EVT_GET_ALL_SESSIONS()(Code)
Returns the counterReceive_EVT_GET_ALL_SESSIONS.



getCounterReceive_EVT_SESSION_ACCESSED
public long getCounterReceive_EVT_SESSION_ACCESSED()(Code)
Returns the counterReceive_EVT_SESSION_ACCESSED.



getCounterReceive_EVT_SESSION_CREATED
public long getCounterReceive_EVT_SESSION_CREATED()(Code)
Returns the counterReceive_EVT_SESSION_CREATED.



getCounterReceive_EVT_SESSION_DELTA
public long getCounterReceive_EVT_SESSION_DELTA()(Code)
Returns the counterReceive_EVT_SESSION_DELTA.



getCounterReceive_EVT_SESSION_EXPIRED
public long getCounterReceive_EVT_SESSION_EXPIRED()(Code)
Returns the counterReceive_EVT_SESSION_EXPIRED.



getCounterSend_EVT_ALL_SESSION_DATA
public long getCounterSend_EVT_ALL_SESSION_DATA()(Code)
Returns the counterSend_EVT_ALL_SESSION_DATA.



getCounterSend_EVT_ALL_SESSION_TRANSFERCOMPLETE
public int getCounterSend_EVT_ALL_SESSION_TRANSFERCOMPLETE()(Code)
Returns the counterSend_EVT_ALL_SESSION_TRANSFERCOMPLETE.



getCounterSend_EVT_GET_ALL_SESSIONS
public long getCounterSend_EVT_GET_ALL_SESSIONS()(Code)
Returns the counterSend_EVT_GET_ALL_SESSIONS.



getCounterSend_EVT_SESSION_ACCESSED
public long getCounterSend_EVT_SESSION_ACCESSED()(Code)
Returns the counterSend_EVT_SESSION_ACCESSED.



getCounterSend_EVT_SESSION_CREATED
public long getCounterSend_EVT_SESSION_CREATED()(Code)
Returns the counterSend_EVT_SESSION_CREATED.



getCounterSend_EVT_SESSION_DELTA
public long getCounterSend_EVT_SESSION_DELTA()(Code)
Returns the counterSend_EVT_SESSION_DELTA.



getCounterSend_EVT_SESSION_EXPIRED
public long getCounterSend_EVT_SESSION_EXPIRED()(Code)
Returns the counterSend_EVT_SESSION_EXPIRED.



getInfo
public String getInfo()(Code)
Return descriptive information about this Manager implementation and the corresponding version number, in the format <description>/<version>.



getInvalidatedSessions
public String[] getInvalidatedSessions()(Code)
When the manager expires session not tied to a request. The cluster will periodically ask for a list of sessions that should expire and that should be sent across the wire. The invalidated sessions array



getMaxActiveSessions
public int getMaxActiveSessions()(Code)
Return the maximum number of active Sessions allowed, or -1 for no limit.



getName
public String getName()(Code)
Return the descriptive short name of this Manager implementation.



getNewDeltaSession
protected DeltaSession getNewDeltaSession()(Code)
Get new session class to be used in the doLoad() method.



getProcessingTime
public long getProcessingTime()(Code)
Returns the processingTime.



getReceivedQueueSize
public int getReceivedQueueSize()(Code)



getRejectedSessions
public int getRejectedSessions()(Code)
Number of session creations that failed due to maxActiveSessions The count



getSendAllSessionsSize
public int getSendAllSessionsSize()(Code)
Returns the sendAllSessionsSize.



getSendAllSessionsWaitTime
public int getSendAllSessionsWaitTime()(Code)
Returns the sendAllSessionsWaitTime in msec



getSessionReplaceCounter
public long getSessionReplaceCounter()(Code)
Returns the sessionReplaceCounter.



getStateTransferTimeout
public int getStateTransferTimeout()(Code)
Returns the stateTransferTimeout.



getStateTransfered
public boolean getStateTransfered()(Code)
is session state transfered complete?



handleALL_SESSION_DATA
protected void handleALL_SESSION_DATA(SessionMessage msg, Member sender) throws ClassNotFoundException, IOException(Code)
handle receive sessions from other not ( restart )
Parameters:
  msg -
Parameters:
  sender -
throws:
  ClassNotFoundException -
throws:
  IOException -



handleALL_SESSION_TRANSFERCOMPLETE
protected void handleALL_SESSION_TRANSFERCOMPLETE(SessionMessage msg, Member sender)(Code)
handle receive session state is complete transfered
Parameters:
  msg -
Parameters:
  sender -



handleGET_ALL_SESSIONS
protected void handleGET_ALL_SESSIONS(SessionMessage msg, Member sender) throws IOException(Code)
handle receive that other node want all sessions ( restart ) a) send all sessions with one message b) send session at blocks After sending send state is complete transfered
Parameters:
  msg -
Parameters:
  sender -
throws:
  IOException -



handleSESSION_ACCESSED
protected void handleSESSION_ACCESSED(SessionMessage msg, Member sender) throws IOException(Code)
handle receive session is access at other node ( primary session is now false)
Parameters:
  msg -
Parameters:
  sender -
throws:
  IOException -



handleSESSION_CREATED
protected void handleSESSION_CREATED(SessionMessage msg, Member sender)(Code)
handle receive new session is created at other node (create backup - primary false)
Parameters:
  msg -
Parameters:
  sender -



handleSESSION_DELTA
protected void handleSESSION_DELTA(SessionMessage msg, Member sender) throws IOException, ClassNotFoundException(Code)
handle receive session delta
Parameters:
  msg -
Parameters:
  sender -
throws:
  IOException -
throws:
  ClassNotFoundException -



handleSESSION_EXPIRED
protected void handleSESSION_EXPIRED(SessionMessage msg, Member sender) throws IOException(Code)
handle receive session is expire at other node ( expire session also here)
Parameters:
  msg -
Parameters:
  sender -
throws:
  IOException -



isDefaultMode
public boolean isDefaultMode()(Code)
Returns the defaultMode.



isExpireSessionsOnShutdown
public boolean isExpireSessionsOnShutdown()(Code)



isNotifyListenersOnReplication
public boolean isNotifyListenersOnReplication()(Code)



isNotifySessionListenersOnReplication
public boolean isNotifySessionListenersOnReplication()(Code)
Returns the notifySessionListenersOnReplication.



isSendAllSessions
public boolean isSendAllSessions()(Code)
Returns the sendAllSessions.



isStateTimestampDrop
public boolean isStateTimestampDrop()(Code)
Returns the stateTimestampDrop.



load
public void load()(Code)



messageDataReceived
public void messageDataReceived(ClusterMessage cmsg)(Code)
A message was received from another node, this is the callback method to implement if you are interested in receiving replication messages.
Parameters:
  cmsg - -the message received.



messageReceived
protected void messageReceived(SessionMessage msg, Member sender)(Code)
This method is called by the received thread when a SessionMessage has been received from one of the other nodes in the cluster.
Parameters:
  msg - -the message received
Parameters:
  sender - -the sender of the message, this is used if we receive aEVT_GET_ALL_SESSION message, so that we only reply to therequesting node



propertyChange
public void propertyChange(PropertyChangeEvent event)(Code)
Process property change events from our associated Context.
Parameters:
  event - The property change event that has occurred



registerSessionAtReplicationValve
protected void registerSessionAtReplicationValve(DeltaSession session)(Code)
Register cross context session at replication valve thread local
Parameters:
  session - cross context session



removeLifecycleListener
public void removeLifecycleListener(LifecycleListener listener)(Code)
Remove a lifecycle event listener from this component.
Parameters:
  listener - The listener to remove



requestCompleted
public ClusterMessage requestCompleted(String sessionId)(Code)
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. a SessionMessage to be sent,



resetStatistics
public synchronized void resetStatistics()(Code)
Reset manager statistics



send
protected void send(SessionMessage msg)(Code)
Send messages to other backup member (domain or all)
Parameters:
  msg - Session message



sendCreateSession
protected void sendCreateSession(String sessionId, DeltaSession session)(Code)
Send create session evt to all backup node
Parameters:
  sessionId -
Parameters:
  session -



sendSessions
protected void sendSessions(Member sender, Session[] currentSessions, long sendTimestamp) throws IOException(Code)
send a block of session to sender
Parameters:
  sender -
Parameters:
  currentSessions -
Parameters:
  sendTimestamp -
throws:
  IOException -



serializeDeltaRequest
protected byte[] serializeDeltaRequest(DeltaRequest deltaRequest) throws IOException(Code)
serialize DeltaRequest
See Also:   DeltaRequest.writeExternal(java.io.ObjectOutput)
Parameters:
  deltaRequest - serialized delta request
throws:
  IOException -



serializeSessions
protected byte[] serializeSessions(Session[] currentSessions) throws IOException(Code)
Save any currently active sessions in the appropriate persistence mechanism, if any. If persistence is not supported, this method returns without doing anything.
exception:
  IOException - if an input/output error occurs



sessionExpired
protected void sessionExpired(String id)(Code)
send session expired to other cluster nodes
Parameters:
  id - session id



setCluster
public void setCluster(CatalinaCluster cluster)(Code)



setContainer
public void setContainer(Container container)(Code)
Set the Container with which this Manager has been associated. If it is a Context (the usual case), listen for changes to the session timeout property.
Parameters:
  container - The associated Container



setDefaultMode
public void setDefaultMode(boolean defaultMode)(Code)

Parameters:
  defaultMode - The defaultMode to set.



setDomainReplication
public void setDomainReplication(boolean sendClusterDomainOnly)(Code)

Parameters:
  sendClusterDomainOnly - The sendClusterDomainOnly to set.



setExpireSessionsOnShutdown
public void setExpireSessionsOnShutdown(boolean expireSessionsOnShutdown)(Code)



setMaxActiveSessions
public void setMaxActiveSessions(int max)(Code)
Set the maximum number of actives Sessions allowed, or -1 for no limit.
Parameters:
  max - The new maximum number of sessions



setName
public void setName(String name)(Code)



setNotifyListenersOnReplication
public void setNotifyListenersOnReplication(boolean notifyListenersOnReplication)(Code)



setNotifySessionListenersOnReplication
public void setNotifySessionListenersOnReplication(boolean notifyListenersCreateSessionOnReplication)(Code)

Parameters:
  notifyListenersCreateSessionOnReplication - The notifySessionListenersOnReplication to set.



setRejectedSessions
public void setRejectedSessions(int rejectedSessions)(Code)



setSendAllSessions
public void setSendAllSessions(boolean sendAllSessions)(Code)

Parameters:
  sendAllSessions - The sendAllSessions to set.



setSendAllSessionsSize
public void setSendAllSessionsSize(int sendAllSessionsSize)(Code)

Parameters:
  sendAllSessionsSize - The sendAllSessionsSize to set.



setSendAllSessionsWaitTime
public void setSendAllSessionsWaitTime(int sendAllSessionsWaitTime)(Code)

Parameters:
  sendAllSessionsWaitTime - The sendAllSessionsWaitTime to set at msec.



setStateTimestampDrop
public void setStateTimestampDrop(boolean isTimestampDrop)(Code)

Parameters:
  isTimestampDrop - The new flag value



setStateTransferTimeout
public void setStateTransferTimeout(int timeoutAllSession)(Code)

Parameters:
  timeoutAllSession - The timeout



setStateTransfered
public void setStateTransfered(boolean stateTransfered)(Code)
set that state ist complete transfered
Parameters:
  stateTransfered -



start
public void start() throws LifecycleException(Code)
Prepare for the beginning of active use of the public methods of this component. This method should be called after configure(), and before any of the public methods of the component are utilized.
exception:
  LifecycleException - if this component detects a fatal error that prevents thiscomponent from being used



stop
public void stop() throws LifecycleException(Code)
Gracefully terminate the active use of the public methods of this component. This method should be the last one called on a given instance of this component.
exception:
  LifecycleException - if this component detects a fatal error that needs to bereported



unload
public void unload()(Code)



waitForSendAllSessions
protected void waitForSendAllSessions(long beforeSendTime)(Code)
Wait that cluster session state is transfer or timeout after 60 Sec With stateTransferTimeout == -1 wait that backup is transfered (forever mode)



Methods inherited from org.apache.catalina.ha.session.ClusterManagerBase
public static ClassLoader[] getClassLoaders(Container container)(Code)(Java Doc)
public ClassLoader[] getClassLoaders()(Code)(Java Doc)
public ReplicationStream getReplicationStream(byte[] data) throws IOException(Code)(Java Doc)
public ReplicationStream getReplicationStream(byte[] data, int offset, int length) throws IOException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.