Java Doc for CacheManager.java in  » Blogger-System » apache-roller-3.1 » org » apache » roller » util » cache » 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 » Blogger System » apache roller 3.1 » org.apache.roller.util.cache 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.roller.util.cache.CacheManager

CacheManager
public class CacheManager (Code)
A governing class for Roller cache objects. The purpose of the CacheManager is to provide a level of abstraction between classes that use a cache and the implementations of a cache. This allows us to create easily pluggable cache implementations. The other purpose is to provide a single interface for interacting with all Roller caches at the same time. This is beneficial because as data changes in the system we often need to notify all caches that some part of their cached data needs to be invalidated, and the CacheManager makes that process easier.




Method Summary
public static  voidclear()
     Flush the entire cache system.
public static  voidclear(String cacheId)
     Flush a single cache.
public static  CacheconstructCache(CacheHandler handler, Map properties)
     Ask the CacheManager to construct a cache. Normally the CacheManager will use whatever CacheFactory has been chosen for the system via the cache.defaultFactory property. However, it is possible to override the use of the default factory by supplying a "factory" property to this method.
public static  MapgetStats()
     Compile stats from all registered caches.
public static  voidinvalidate(WeblogEntryData entry)
    
public static  voidinvalidate(WebsiteData website)
    
public static  voidinvalidate(BookmarkData bookmark)
    
public static  voidinvalidate(FolderData folder)
    
public static  voidinvalidate(CommentData comment)
    
public static  voidinvalidate(RefererData referer)
    
public static  voidinvalidate(UserData user)
    
public static  voidinvalidate(WeblogCategoryData category)
    
public static  voidinvalidate(WeblogTemplate template)
    
public static  voidregisterHandler(CacheHandler handler)
     Register a CacheHandler to listen for object invalidations.
public static  voidshutdown()
     Place to do any cleanup tasks for cache system.



Method Detail
clear
public static void clear()(Code)
Flush the entire cache system.



clear
public static void clear(String cacheId)(Code)
Flush a single cache.



constructCache
public static Cache constructCache(CacheHandler handler, Map properties)(Code)
Ask the CacheManager to construct a cache. Normally the CacheManager will use whatever CacheFactory has been chosen for the system via the cache.defaultFactory property. However, it is possible to override the use of the default factory by supplying a "factory" property to this method. The value should be the full classname for the factory you want to use for constructing the cache. example: factory -> org.apache.roller.util.cache.LRUCacheFactoryImpl This allows Roller admins the ability to choose a caching strategy to use for the whole system, but override it in certain places where they see fit. It also allows users to write their own caching modifications and have them used only by specific caches.



getStats
public static Map getStats()(Code)
Compile stats from all registered caches. This is basically a hacky version of instrumentation which is being thrown in because we don't have a full instrumentation strategy yet. This is here with the full expectation that it will be replaced by something a bit more elaborate, like JMX.



invalidate
public static void invalidate(WeblogEntryData entry)(Code)



invalidate
public static void invalidate(WebsiteData website)(Code)



invalidate
public static void invalidate(BookmarkData bookmark)(Code)



invalidate
public static void invalidate(FolderData folder)(Code)



invalidate
public static void invalidate(CommentData comment)(Code)



invalidate
public static void invalidate(RefererData referer)(Code)



invalidate
public static void invalidate(UserData user)(Code)



invalidate
public static void invalidate(WeblogCategoryData category)(Code)



invalidate
public static void invalidate(WeblogTemplate template)(Code)



registerHandler
public static void registerHandler(CacheHandler handler)(Code)
Register a CacheHandler to listen for object invalidations. This is here so that it's possible to to add classes which would respond to object invalidations without necessarily having to create a cache. An example would be a handler designed to notify other machines in a cluster when an object has been invalidated, or possibly the search index management classes are interested in knowing when objects are invalidated.



shutdown
public static void shutdown()(Code)
Place to do any cleanup tasks for cache system.



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.