Java Doc for EHDefaultStore.java in  » Content-Management-System » apache-lenya-2.0 » org » apache » cocoon » components » store » impl » 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 » Content Management System » apache lenya 2.0 » org.apache.cocoon.components.store.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.cocoon.components.store.impl.EHDefaultStore

EHDefaultStore
public class EHDefaultStore extends AbstractLogEnabled implements Store,Contextualizable,Serviceable,Parameterizable,Initializable,Disposable,ThreadSafe(Code)
Store implementation based on EHCache. (http://ehcache.sourceforge.net/)
version:
   $Id: EHDefaultStore.java 506982 2007-02-13 12:07:06Z cziegeler $



Constructor Summary
public  EHDefaultStore()
    

Method Summary
public  voidclear()
    
public  booleancontainsKey(Object key)
    
public  voidcontextualize(Context context)
    
public  voiddispose()
     Shutdown the CacheManager.
public  voidfree()
    
public  Objectget(Object key)
    
public  voidinitialize()
     Initialize the CacheManager and created the Cache.
public  Enumerationkeys()
    
public  voidparameterize(Parameters parameters)
     Configure the store.
public  voidremove(Object key)
    
public  voidservice(ServiceManager aManager)
    
public  intsize()
    
public  voidstore(Object key, Object value)
    


Constructor Detail
EHDefaultStore
public EHDefaultStore()(Code)




Method Detail
clear
public void clear()(Code)



containsKey
public boolean containsKey(Object key)(Code)



contextualize
public void contextualize(Context context) throws ContextException(Code)



dispose
public void dispose()(Code)
Shutdown the CacheManager.



free
public void free()(Code)



get
public Object get(Object key)(Code)



initialize
public void initialize() throws Exception(Code)
Initialize the CacheManager and created the Cache.



keys
public Enumeration keys()(Code)



parameterize
public void parameterize(Parameters parameters) throws ParameterException(Code)
Configure the store. The following options can be used:
  • maxobjects (10000) - The maximum number of objects in memory.
  • overflow-to-disk (true) - Whether to spool elements to disk after maxobjects has been exceeded.
  • eternal (true) - whether or not entries expire. When set to false the timeToLiveSeconds and timeToIdleSeconds parameters are used to determine when an item expires.
  • timeToLiveSeconds (0) - how long an entry may live in the cache before it is removed. The entry will be removed no matter how frequently it is retrieved.
  • timeToIdleSeconds (0) - the maximum time between retrievals of an entry. If the entry is not retrieved for this period, it is removed from the cache.
  • use-cache-directory (false) - If true the cache-directory context entry will be used as the location of the disk store. Within the servlet environment this is set in web.xml.
  • use-work-directory (false) - If true the work-directory context entry will be used as the location of the disk store. Within the servlet environment this is set in web.xml.
  • directory - Specify an alternative location of the disk store.

Setting eternal to false but not setting timeToLiveSeconds and/or timeToIdleSeconds, has the same effect as setting eternal to true.

Here is an example to clarify the purpose of the timeToLiveSeconds and timeToIdleSeconds parameters:

  • timeToLiveSeconds = 86400 (1 day)
  • timeToIdleSeconds = 10800 (3 hours)

With these settings the entry will be removed from the cache after 24 hours. If within that 24-hour period the entry is not retrieved within 3 hours after the last retrieval, it will also be removed from the cache.

By setting timeToLiveSeconds to 0, an item can stay in the cache as long as it is retrieved within timeToIdleSeconds after the last retrieval.

By setting timeToIdleSeconds to 0, an item will stay in the cache for exactly timeToLiveSeconds.

disk-persistent Whether the disk store persists between restarts of the Virtual Machine. The default value is true.




remove
public void remove(Object key)(Code)



service
public void service(ServiceManager aManager) throws ServiceException(Code)



size
public int size()(Code)



store
public void store(Object key, Object value) throws IOException(Code)



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