Java Doc for AttributeBasedClusteredSession.java in  » EJB-Server-JBoss-4.2.1 » tomcat » org » jboss » web » tomcat » service » 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 » EJB Server JBoss 4.2.1 » tomcat » org.jboss.web.tomcat.service.session 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.jboss.web.tomcat.service.session.ClusteredSession
   org.jboss.web.tomcat.service.session.JBossCacheClusteredSession
      org.jboss.web.tomcat.service.session.AttributeBasedClusteredSession

AttributeBasedClusteredSession
class AttributeBasedClusteredSession extends JBossCacheClusteredSession (Code)
Implementation of a clustered session for the JBossCacheManager. The replication granularity level is attribute based; that is, we replicate only the dirty attributes. We use JBossCache for our internal, deplicated data store. The internal structure is like in JBossCache:
 /JSESSION
 /hostname
 /web_app_path    (path + session id is unique)
 /id   Map(id, session)
 (VERSION_KEY, version)  // Used for version tracking. version is an Integer.
 /ATTRIBUTE    Map(attr_key, value)
 

Note that the isolation level of the cache dictates the concurrency behavior. Also note that session and its associated attribtues are stored in different nodes. This will be ok since cache will take care of concurrency. When replicating, we will need to replicate both session and its attributes.


author:
   Ben Wang
author:
   Brian Stansberry
version:
   $Revision: 57206 $


Field Summary
final protected static  Stringinfo
     Descriptive information describing this Session implementation.
final static  longserialVersionUID
    

Constructor Summary
public  AttributeBasedClusteredSession(JBossCacheManager manager)
    

Method Summary
protected synchronized  voidattributeChanged(Object key, Object value, int op)
    
protected synchronized  voidclearAttrChangedMaps()
    
protected  ObjectgetJBossInternalAttribute(String name)
    
protected  MapgetJBossInternalAttributes()
    
protected  SetgetJBossInternalKeys()
    
protected  String[]keys()
     Method inherited from Tomcat.
protected  voidpopulateAttributes()
     Populate the attributes stored in the distributed store to local transient ones.
public synchronized  voidprocessSessionRepl()
     Overrides the superclass version to read in the attributes.
public  voidrecycle()
     Override the superclass to additionally reset this class' fields.
protected  ObjectremoveJBossInternalAttribute(String name, boolean localCall, boolean localOnly)
    
public  voidremoveMyself()
    
public  voidremoveMyselfLocal()
    
protected  ObjectsetJBossInternalAttribute(String key, Object value)
    
public  StringtoString()
     Return a string representation of this object.

Field Detail
info
final protected static String info(Code)
Descriptive information describing this Session implementation.



serialVersionUID
final static long serialVersionUID(Code)




Constructor Detail
AttributeBasedClusteredSession
public AttributeBasedClusteredSession(JBossCacheManager manager)(Code)




Method Detail
attributeChanged
protected synchronized void attributeChanged(Object key, Object value, int op)(Code)



clearAttrChangedMaps
protected synchronized void clearAttrChangedMaps()(Code)



getJBossInternalAttribute
protected Object getJBossInternalAttribute(String name)(Code)



getJBossInternalAttributes
protected Map getJBossInternalAttributes()(Code)



getJBossInternalKeys
protected Set getJBossInternalKeys()(Code)



keys
protected String[] keys()(Code)
Method inherited from Tomcat. Return zero-length based string if not found.



populateAttributes
protected void populateAttributes()(Code)
Populate the attributes stored in the distributed store to local transient ones.



processSessionRepl
public synchronized void processSessionRepl()(Code)
Overrides the superclass version to read in the attributes.



recycle
public void recycle()(Code)
Override the superclass to additionally reset this class' fields.

NOTE: It is not anticipated that this method will be called on a ClusteredSession, but we are overriding the method to be thorough.




removeJBossInternalAttribute
protected Object removeJBossInternalAttribute(String name, boolean localCall, boolean localOnly)(Code)



removeMyself
public void removeMyself()(Code)



removeMyselfLocal
public void removeMyselfLocal()(Code)



setJBossInternalAttribute
protected Object setJBossInternalAttribute(String key, Object value)(Code)



toString
public String toString()(Code)
Return a string representation of this object.



Fields inherited from org.jboss.web.tomcat.service.session.JBossCacheClusteredSession
protected transient JBossCacheService proxy_(Code)(Java Doc)

Methods inherited from org.jboss.web.tomcat.service.session.JBossCacheClusteredSession
protected void establishProxy()(Code)(Java Doc)
public void initAfterLoad(AbstractJBossManager manager)(Code)(Java Doc)
abstract protected void populateAttributes()(Code)(Java Doc)
public synchronized void processSessionRepl()(Code)(Java Doc)
public void recycle()(Code)(Java Doc)
protected Object removeAttributeInternal(String name, boolean localCall, boolean localOnly)(Code)(Java Doc)
protected void removeFromManager(boolean localCall, boolean localOnly)(Code)(Java Doc)
protected Object removeJBossInternalAttribute(String name)(Code)(Java Doc)
abstract protected Object removeJBossInternalAttribute(String name, boolean localCall, boolean localOnly)(Code)(Java Doc)

Fields inherited from org.jboss.web.tomcat.service.session.ClusteredSession
final protected static String[] excludedAttributes(Code)(Java Doc)
protected transient boolean firstAccess(Code)(Java Doc)
protected transient Boolean hasActivationListener(Code)(Java Doc)
final protected static String info(Code)(Java Doc)
protected int invalidationPolicy(Code)(Java Doc)
protected transient boolean isSessionModifiedSinceLastSave(Code)(Java Doc)
protected transient long lastReplicated(Code)(Java Doc)
protected static Logger log(Code)(Java Doc)
protected transient int maxUnreplicatedFactor(Code)(Java Doc)
protected transient long maxUnreplicatedInterval(Code)(Java Doc)
protected transient long outdatedTime(Code)(Java Doc)
protected transient int outdatedVersion(Code)(Java Doc)
protected transient String realId(Code)(Java Doc)
final protected static Set replicationExcludes(Code)(Java Doc)
protected transient boolean sessionAttributesDirty(Code)(Java Doc)
protected transient boolean sessionMetadataDirty(Code)(Java Doc)
protected static StringManager sm(Code)(Java Doc)
protected int version(Code)(Java Doc)

Methods inherited from org.jboss.web.tomcat.service.session.ClusteredSession
public void access()(Code)(Java Doc)
public void activate()(Code)(Java Doc)
protected boolean canAttributeBeReplicated(Object attribute)(Code)(Java Doc)
public void clearOutdated()(Code)(Java Doc)
public void endAccess()(Code)(Java Doc)
public void expire(boolean notify)(Code)(Java Doc)
public void expire(boolean notify, boolean localCall, boolean localOnly)(Code)(Java Doc)
public Object getAttribute(String name)(Code)(Java Doc)
protected Object getAttributeInternal(String name)(Code)(Java Doc)
public Enumeration getAttributeNames()(Code)(Java Doc)
protected Map getAttributesInternal()(Code)(Java Doc)
public boolean getExceedsMaxUnreplicatedInterval()(Code)(Java Doc)
abstract protected Object getJBossInternalAttribute(String name)(Code)(Java Doc)
abstract protected Map getJBossInternalAttributes()(Code)(Java Doc)
public long getLastReplicated()(Code)(Java Doc)
public int getMaxUnreplicatedFactor()(Code)(Java Doc)
public long getMaxUnreplicatedInterval()(Code)(Java Doc)
public String getRealId()(Code)(Java Doc)
public boolean getReplicateSessionBody()(Code)(Java Doc)
protected boolean getSessionAttributesDirty()(Code)(Java Doc)
protected boolean getSessionMetadataDirty()(Code)(Java Doc)
public boolean getUseJK()(Code)(Java Doc)
public int getVersion()(Code)(Java Doc)
public int incrementVersion()(Code)(Java Doc)
abstract public void initAfterLoad(AbstractJBossManager manager)(Code)(Java Doc)
public void invalidate()(Code)(Java Doc)
protected boolean isGetDirty(Object attribute)(Code)(Java Doc)
protected boolean isMutable(Object attribute)(Code)(Java Doc)
public boolean isNewData(int version)(Code)(Java Doc)
public boolean isOutdated()(Code)(Java Doc)
public boolean isSessionDirty()(Code)(Java Doc)
public boolean isValid()(Code)(Java Doc)
public boolean isValid(boolean expireIfInvalid)(Code)(Java Doc)
protected String[] keys()(Code)(Java Doc)
public void passivate()(Code)(Java Doc)
abstract public void processSessionRepl()(Code)(Java Doc)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException(Code)(Java Doc)
public void recycle()(Code)(Java Doc)
protected void removeAttributeInternal(String name, boolean notify)(Code)(Java Doc)
protected void removeAttributeInternal(String name, boolean localCall, boolean localOnly, boolean notify)(Code)(Java Doc)
protected Object removeAttributeInternal(String name, boolean localCall, boolean localOnly)(Code)(Java Doc)
protected static Map removeExcludedAttributes(Map attributes)(Code)(Java Doc)
protected void removeFromManager(boolean localCall, boolean localOnly)(Code)(Java Doc)
abstract protected Object removeJBossInternalAttribute(String name)(Code)(Java Doc)
abstract public void removeMyself()(Code)(Java Doc)
abstract public void removeMyselfLocal()(Code)(Java Doc)
public void resetIdWithRouteInfo(String id)(Code)(Java Doc)
protected void sessionAttributesDirty()(Code)(Java Doc)
protected void sessionDirty()(Code)(Java Doc)
protected void sessionMetadataDirty()(Code)(Java Doc)
public void setAttribute(String name, Object value)(Code)(Java Doc)
public void setCreationTime(long time)(Code)(Java Doc)
public void setId(String id)(Code)(Java Doc)
protected Object setInternalAttribute(String name, Object value)(Code)(Java Doc)
public void setIsOutdated(boolean outdated)(Code)(Java Doc)
abstract protected Object setJBossInternalAttribute(String name, Object value)(Code)(Java Doc)
public void setMaxInactiveInterval(int interval)(Code)(Java Doc)
public void setMaxUnreplicatedFactor(int factor)(Code)(Java Doc)
public void setNew(boolean isNew)(Code)(Java Doc)
public void setOutdatedVersion(int version)(Code)(Java Doc)
public void setPrincipal(Principal principal)(Code)(Java Doc)
public void setValid(boolean isValid)(Code)(Java Doc)
public void setVersion(int version)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public void updateAccessTimeFromOutdatedTime()(Code)(Java Doc)
public void updateLastReplicated()(Code)(Java Doc)
public void writeExternal(ObjectOutput out) 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.