Java Doc for CacheManager.java in  » 6.0-JDK-Modules » jsr107 » javax » 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 » 6.0 JDK Modules » jsr107 » javax.cache 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.cache.CacheManager

All known Subclasses:   ri.cache.ReferenceCacheManager,  ri.cache.AbstractCacheManager,
CacheManager
public interface CacheManager (Code)
A container for caches. The CacheManager maintains all aspects of the Cache lifecycle. Caches are not started until they are added to a CacheManager Each vendor will implement CacheManager. Multiple CacheManagers can run at the same time, be registered in JNDI and so on.

Inner Class : enum State



Method Summary
 voidaddListener(CacheManagerListener cacheManagerListener)
    
 booleancacheExists(String cacheName)
     Checks whether a cache exists.
 CachegetCache(String name)
     Returns a Cache.
 Collection<String>getCacheNames()
     Returns a list of the current cache names.
 StringgetName()
     Gets the name of the CacheManager.
 StategetState()
    
 voidnewCache(String cacheName)
     Adds a Cache based on the default cache parameters with the given name.
 voidregisterCache(String name, Cache cache)
     Adds a Cache to the CacheManager.
 voidremoveListener(CacheManagerListener cacheManagerListener)
    
 voidshutdown()
     Shuts down the CacheManager.
 voidunregisterCache(String cacheName)
     Remove a cache from the CacheManager.



Method Detail
addListener
void addListener(CacheManagerListener cacheManagerListener)(Code)



cacheExists
boolean cacheExists(String cacheName) throws IllegalStateException(Code)
Checks whether a cache exists.


Parameters:
  cacheName - the cache name to check for true if it exists
throws:
  IllegalStateException - if the cache is not State.STARTED




getCache
Cache getCache(String name) throws CacheException(Code)
Returns a Cache.
Parameters:
  name - the name of the cache



getCacheNames
Collection<String> getCacheNames() throws IllegalStateException(Code)
Returns a list of the current cache names. an array of Strings
throws:
  IllegalStateException - if the cache is not State.STARTED



getName
String getName()(Code)
Gets the name of the CacheManager. This is useful for distinguishing multiple CacheManagers the name, or the output of toString() if it is not set.
See Also:   CacheManager.toString()
See Also:    which uses either the name or Object.toString()



getState
State getState()(Code)
Gets the current state of the cache manager The status value from the State enum class



newCache
void newCache(String cacheName) throws CacheException(Code)
Adds a Cache based on the default cache parameters with the given name.

Memory and Disk stores will be configured for it and it will be added to the map of caches.

Also notifies the CacheManagerListener after the cache was initialised and added.

It will be created with the defaultCache attributes specified in ehcache.xml
Parameters:
  cacheName - the name for the cache
throws:
  CacheException - if there was an error creating the cache, for example because the cache already exists




registerCache
void registerCache(String name, Cache cache) throws IllegalStateException, CacheException(Code)
Adds a Cache to the CacheManager.

Memory and Disk stores will be configured for it and it will be added to the map of caches. Also notifies the CacheManagerEventListener after the cache was initialised and added.
Parameters:
  cache -
throws:
  IllegalStateException - if the cache is not State.STARTED before this method is called.
throws:
  CacheException - if there was an error adding the cache to the CacheManager, for example because the Cache already exists in the CacheManager




removeListener
void removeListener(CacheManagerListener cacheManagerListener)(Code)



shutdown
void shutdown()(Code)
Shuts down the CacheManager.



unregisterCache
void unregisterCache(String cacheName) throws IllegalStateException(Code)
Remove a cache from the CacheManager. The cache is disposed of.
Parameters:
  cacheName - the cache name
throws:
  IllegalStateException - if the cache is not State.STARTED



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