Java Doc for ReplicatedSession.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) 


java.lang.Object
   org.apache.catalina.session.StandardSession
      org.apache.catalina.ha.session.ReplicatedSession

ReplicatedSession
public class ReplicatedSession extends org.apache.catalina.session.StandardSession implements org.apache.catalina.ha.ClusterSession(Code)


Field Summary
protected  booleanisDirty
    

Constructor Summary
public  ReplicatedSession(Manager manager)
    

Method Summary
public  voidexpire()
    
public  intgetAccessCount()
    
public  longgetLastAccessWasDistributed()
    
public  longgetLastAccessedTime()
    
public  longgetThisAccessedTime()
    
public  voidinvalidate()
    
public  booleanisDirty()
    
public  booleanisPrimarySession()
     returns true if this session is the primary session, if that is the case, the manager can expire it upon timeout.
protected  voidlog(String message)
    
protected  voidlog(String message, Throwable x)
    
public  voidreadObjectData(ObjectInputStream stream)
     Read a serialized version of the contents of this session object from the specified object input stream, without requiring that the StandardSession itself have been serialized.
public  voidremoveAttribute(String name)
    
public  voidremoveAttribute(String name, boolean notify)
    
public  voidsetAccessCount(int accessCount)
    
public  voidsetAttribute(String name, Object value)
    
public  voidsetId(String id, boolean tellNew)
    
public  voidsetIsDirty(boolean dirty)
    
public  voidsetLastAccessWasDistributed(long time)
    
public  voidsetLastAccessedTime(long lastAccessedTime)
    
public  voidsetManager(SimpleTcpReplicationManager mgr)
    
public  voidsetMaxInactiveInterval(int interval)
    
public  voidsetPrimarySession(boolean primarySession)
     Sets whether this is the primary session or not.
public  voidsetPrincipal(Principal principal)
     Set the authenticated Principal that is associated with this Session.
public  voidsetThisAccessedTime(long thisAccessedTime)
    
public  StringtoString()
    
public  voidwriteObjectData(ObjectOutputStream stream)
     Write a serialized version of the contents of this session object to the specified object output stream, without requiring that the StandardSession itself have been serialized.

Field Detail
isDirty
protected boolean isDirty(Code)




Constructor Detail
ReplicatedSession
public ReplicatedSession(Manager manager)(Code)




Method Detail
expire
public void expire()(Code)



getAccessCount
public int getAccessCount()(Code)



getLastAccessWasDistributed
public long getLastAccessWasDistributed()(Code)



getLastAccessedTime
public long getLastAccessedTime()(Code)



getThisAccessedTime
public long getThisAccessedTime()(Code)



invalidate
public void invalidate()(Code)



isDirty
public boolean isDirty()(Code)



isPrimarySession
public boolean isPrimarySession()(Code)
returns true if this session is the primary session, if that is the case, the manager can expire it upon timeout.



log
protected void log(String message)(Code)
Implements a log method to log through the manager



log
protected void log(String message, Throwable x)(Code)



readObjectData
public void readObjectData(ObjectInputStream stream) throws ClassNotFoundException, IOException(Code)
Read a serialized version of the contents of this session object from the specified object input stream, without requiring that the StandardSession itself have been serialized.
Parameters:
  stream - The object input stream to read from
exception:
  ClassNotFoundException - if an unknown class is specified
exception:
  IOException - if an input/output error occurs



removeAttribute
public void removeAttribute(String name)(Code)



removeAttribute
public void removeAttribute(String name, boolean notify)(Code)
see parent description, plus we also notify other nodes in the cluster



setAccessCount
public void setAccessCount(int accessCount)(Code)



setAttribute
public void setAttribute(String name, Object value)(Code)
Sets an attribute and notifies the other nodes in the cluster



setId
public void setId(String id, boolean tellNew)(Code)



setIsDirty
public void setIsDirty(boolean dirty)(Code)



setLastAccessWasDistributed
public void setLastAccessWasDistributed(long time)(Code)



setLastAccessedTime
public void setLastAccessedTime(long lastAccessedTime)(Code)



setManager
public void setManager(SimpleTcpReplicationManager mgr)(Code)
Sets the manager for this session
Parameters:
  mgr - - the servers InMemoryReplicationManager



setMaxInactiveInterval
public void setMaxInactiveInterval(int interval)(Code)



setPrimarySession
public void setPrimarySession(boolean primarySession)(Code)
Sets whether this is the primary session or not.
Parameters:
  primarySession - Flag value



setPrincipal
public void setPrincipal(Principal principal)(Code)
Set the authenticated Principal that is associated with this Session. This provides an Authenticator with a means to cache a previously authenticated Principal, and avoid potentially expensive Realm.authenticate() calls on every request.
Parameters:
  principal - The new Principal, or null if none



setThisAccessedTime
public void setThisAccessedTime(long thisAccessedTime)(Code)



toString
public String toString()(Code)



writeObjectData
public void writeObjectData(ObjectOutputStream stream) throws IOException(Code)
Write a serialized version of the contents of this session object to the specified object output stream, without requiring that the StandardSession itself have been serialized.
Parameters:
  stream - The object output stream to write to
exception:
  IOException - if an input/output error occurs



Fields inherited from org.apache.catalina.session.StandardSession
final protected static boolean ACTIVITY_CHECK(Code)(Java Doc)
final protected static String EMPTY_ARRAY(Code)(Java Doc)
final protected static String NOT_SERIALIZED(Code)(Java Doc)
protected transient AtomicInteger accessCount(Code)(Java Doc)
protected Map attributes(Code)(Java Doc)
protected transient String authType(Code)(Java Doc)
protected transient Method containerEventMethod(Code)(Java Doc)
final protected static Class containerEventTypes(Code)(Java Doc)
protected long creationTime(Code)(Java Doc)
final protected static String[] excludedAttributes(Code)(Java Doc)
protected transient boolean expiring(Code)(Java Doc)
protected transient StandardSessionFacade facade(Code)(Java Doc)
protected String id(Code)(Java Doc)
final protected static String info(Code)(Java Doc)
protected boolean isNew(Code)(Java Doc)
protected boolean isValid(Code)(Java Doc)
protected long lastAccessedTime(Code)(Java Doc)
protected transient ArrayList listeners(Code)(Java Doc)
protected transient Manager manager(Code)(Java Doc)
protected int maxInactiveInterval(Code)(Java Doc)
protected transient Map notes(Code)(Java Doc)
protected transient Principal principal(Code)(Java Doc)
protected static HttpSessionContext sessionContext(Code)(Java Doc)
protected static StringManager sm(Code)(Java Doc)
protected transient PropertyChangeSupport support(Code)(Java Doc)
protected long thisAccessedTime(Code)(Java Doc)

Methods inherited from org.apache.catalina.session.StandardSession
public void access()(Code)(Java Doc)
public void activate()(Code)(Java Doc)
public void addSessionListener(SessionListener listener)(Code)(Java Doc)
public void endAccess()(Code)(Java Doc)
protected boolean exclude(String name)(Code)(Java Doc)
public void expire()(Code)(Java Doc)
public void expire(boolean notify)(Code)(Java Doc)
protected void fireContainerEvent(Context context, String type, Object data) throws Exception(Code)(Java Doc)
public void fireSessionEvent(String type, Object data)(Code)(Java Doc)
public Object getAttribute(String name)(Code)(Java Doc)
public Enumeration getAttributeNames()(Code)(Java Doc)
public String getAuthType()(Code)(Java Doc)
public long getCreationTime()(Code)(Java Doc)
public String getId()(Code)(Java Doc)
public String getIdInternal()(Code)(Java Doc)
public String getInfo()(Code)(Java Doc)
public long getLastAccessedTime()(Code)(Java Doc)
public long getLastAccessedTimeInternal()(Code)(Java Doc)
public Manager getManager()(Code)(Java Doc)
public int getMaxInactiveInterval()(Code)(Java Doc)
public Object getNote(String name)(Code)(Java Doc)
public Iterator getNoteNames()(Code)(Java Doc)
public Principal getPrincipal()(Code)(Java Doc)
public ServletContext getServletContext()(Code)(Java Doc)
public HttpSession getSession()(Code)(Java Doc)
public HttpSessionContext getSessionContext()(Code)(Java Doc)
public Object getValue(String name)(Code)(Java Doc)
public String[] getValueNames()(Code)(Java Doc)
public void invalidate()(Code)(Java Doc)
public boolean isNew()(Code)(Java Doc)
public boolean isValid()(Code)(Java Doc)
protected boolean isValidInternal()(Code)(Java Doc)
protected String[] keys()(Code)(Java Doc)
public void passivate()(Code)(Java Doc)
public void putValue(String name, Object value)(Code)(Java Doc)
protected void readObject(ObjectInputStream stream) throws ClassNotFoundException, IOException(Code)(Java Doc)
public void readObjectData(ObjectInputStream stream) throws ClassNotFoundException, IOException(Code)(Java Doc)
public void recycle()(Code)(Java Doc)
public void removeAttribute(String name)(Code)(Java Doc)
public void removeAttribute(String name, boolean notify)(Code)(Java Doc)
protected void removeAttributeInternal(String name, boolean notify)(Code)(Java Doc)
public void removeNote(String name)(Code)(Java Doc)
public void removeSessionListener(SessionListener listener)(Code)(Java Doc)
public void removeValue(String name)(Code)(Java Doc)
public void setAttribute(String name, Object value)(Code)(Java Doc)
public void setAttribute(String name, Object value, boolean notify)(Code)(Java Doc)
public void setAuthType(String authType)(Code)(Java Doc)
public void setCreationTime(long time)(Code)(Java Doc)
public void setId(String id)(Code)(Java Doc)
public void setManager(Manager manager)(Code)(Java Doc)
public void setMaxInactiveInterval(int interval)(Code)(Java Doc)
public void setNew(boolean isNew)(Code)(Java Doc)
public void setNote(String name, Object value)(Code)(Java Doc)
public void setPrincipal(Principal principal)(Code)(Java Doc)
public void setValid(boolean isValid)(Code)(Java Doc)
public void tellNew()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
protected void writeObject(ObjectOutputStream stream) throws IOException(Code)(Java Doc)
public void writeObjectData(ObjectOutputStream stream) throws IOException(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.