Java Doc for AbstractContext.java in  » Web-Services-AXIS2 » kernal » org » apache » axis2 » context » 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 » Web Services AXIS2 » kernal » org.apache.axis2.context 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.axis2.context.AbstractContext

All known Subclasses:   org.apache.axis2.context.OperationContext,  org.apache.axis2.context.ConfigurationContext,  org.apache.axis2.context.MessageContext,  org.apache.axis2.context.ServiceGroupContext,  org.apache.axis2.context.SessionContext,  org.apache.axis2.context.ServiceContext,
AbstractContext
abstract public class AbstractContext (Code)
This is the top most level of the Context hierarchy and is a bag of properties.


Field Summary
final public static  StringCOPY_PROPERTIES
     Property used to indicate copying of properties is needed by context.
protected  longlastTouchedTime
    
protected transient  AbstractContextparent
    
protected transient  Mapproperties
    

Constructor Summary
protected  AbstractContext(AbstractContext parent)
    
protected  AbstractContext()
    

Method Summary
public synchronized  voidclearPropertyDifferences()
     Once the clustering mechanism transmits the property differences, it should call this method to avoid retransmitting stuff that has already been sent.
public  voidflush()
    
public  longgetLastTouchedTime()
    
public  AbstractContextgetParent()
    
public  MapgetProperties()
    
public  ObjectgetProperty(String key)
     Retrieves an object given a key.
public synchronized  MapgetPropertyDifferences()
    
public  IteratorgetPropertyNames()
     An iterator over a collection of String objects, which are the keys in the properties object.
public  ObjectgetPropertyNonReplicable(String key)
     Retrieves an object given a key.
abstract public  ConfigurationContextgetRootContext()
    
public  voidmergeProperties(Map props)
     This will do a copy of the given properties to the current properties table.
public synchronized  voidremoveProperty(String key)
     Remove a property.
public synchronized  voidremovePropertyNonReplicable(String key)
     Remove a property.
public  voidsetLastTouchedTime(long t)
    
public  voidsetNonReplicableProperty(String key, Object value)
     Store a property in this context.
public  voidsetParent(AbstractContext context)
    
public  voidsetProperties(Map properties)
     This will set the properties to the context.
public  voidsetProperty(String key, Object value)
    
protected  voidtouch()
     ServiceContext and ServiceGroupContext are not getting automatically garbage collected.

Field Detail
COPY_PROPERTIES
final public static String COPY_PROPERTIES(Code)
Property used to indicate copying of properties is needed by context.



lastTouchedTime
protected long lastTouchedTime(Code)



parent
protected transient AbstractContext parent(Code)



properties
protected transient Map properties(Code)




Constructor Detail
AbstractContext
protected AbstractContext(AbstractContext parent)(Code)



AbstractContext
protected AbstractContext()(Code)




Method Detail
clearPropertyDifferences
public synchronized void clearPropertyDifferences()(Code)
Once the clustering mechanism transmits the property differences, it should call this method to avoid retransmitting stuff that has already been sent.



flush
public void flush() throws AxisFault(Code)



getLastTouchedTime
public long getLastTouchedTime()(Code)



getParent
public AbstractContext getParent()(Code)
Returns the parent of this context.



getProperties
public Map getProperties()(Code)
The propertiesAbstractContext.getPropertyNames()AbstractContext.getProperty(String)AbstractContext.setProperty(String,Object)AbstractContext.removeProperty(String)



getProperty
public Object getProperty(String key)(Code)
Retrieves an object given a key.
Parameters:
  key - - if not found, will return null Returns the property.



getPropertyDifferences
public synchronized Map getPropertyDifferences()(Code)
Get the property differences since the last transmission by the clustering mechanism The property differences



getPropertyNames
public Iterator getPropertyNames()(Code)
An iterator over a collection of String objects, which are the keys in the properties object. Iterator over a collection of keys



getPropertyNonReplicable
public Object getPropertyNonReplicable(String key)(Code)
Retrieves an object given a key. The retrieved property will not be replicated to other nodes in the clustered scenario.
Parameters:
  key - - if not found, will return null Returns the property.



getRootContext
abstract public ConfigurationContext getRootContext()(Code)



mergeProperties
public void mergeProperties(Map props)(Code)
This will do a copy of the given properties to the current properties table.
Parameters:
  props - The table of properties to copy



removeProperty
public synchronized void removeProperty(String key)(Code)
Remove a property. Only properties at this level will be removed. Properties of the parents cannot be removed using this method.
Parameters:
  key -



removePropertyNonReplicable
public synchronized void removePropertyNonReplicable(String key)(Code)
Remove a property. Only properties at this level will be removed. Properties of the parents cannot be removed using this method. The removal of the property will not be replicated when Axis2 is clustered.
Parameters:
  key -



setLastTouchedTime
public void setLastTouchedTime(long t)(Code)



setNonReplicableProperty
public void setNonReplicableProperty(String key, Object value)(Code)
Store a property in this context. But these properties should not be replicated when Axis2 is clustered.
Parameters:
  key -
Parameters:
  value -



setParent
public void setParent(AbstractContext context)(Code)

Parameters:
  context -



setProperties
public void setProperties(Map properties)(Code)
This will set the properties to the context. But in setting that one may need to "copy" all the properties from the source properties to the target properties. To enable this we introduced a property ( AbstractContext.COPY_PROPERTIES ) so that if set to true, this code will copy the whole thing, without just referencing to the source.
Parameters:
  properties -



setProperty
public void setProperty(String key, Object value)(Code)
Store a property in this context
Parameters:
  key -
Parameters:
  value -



touch
protected void touch()(Code)
ServiceContext and ServiceGroupContext are not getting automatically garbage collected. And there is no specific way for some one to go and make it garbage collectible. So the current solution is to make them time out. So the logic is that, there is a timer task in each and every service group which will check for the last touched time. And if it has not been touched for some time, the timer task will remove it from the memory. The touching logic happens like this. Whenever there is a call to addMessageContext in the operationContext it will go and update operationCOntext -> serviceContext -> serviceGroupContext.



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.