Java Doc for ReplicatedSession.java in  » Sevlet-Container » tomcat-cluster » org » apache » catalina » cluster » 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 » tomcat cluster » org.apache.catalina.cluster.session 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.catalina.cluster.session.ReplicatedSession

ReplicatedSession
public class ReplicatedSession extends org.apache.catalina.session.StandardSession implements org.apache.catalina.cluster.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



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