Java Doc for InvalidationManagerMBean.java in  » EJB-Server-JBoss-4.2.1 » server » org » jboss » cache » invalidation » 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 » server » org.jboss.cache.invalidation 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.jboss.cache.invalidation.InvalidationManagerMBean

All known Subclasses:   org.jboss.cache.invalidation.InvalidationManager,
InvalidationManagerMBean
public interface InvalidationManagerMBean extends ServiceMBean(Code)
Main service dealing with cache invalidation. While more than one instance may be running at the same time, most of the time, only one will be used. Each InvalidationManager (IM) gives access to a set of InvalidationGroup (IG). Each IG concerns a particular cache and links subscribers that listen for cache invalidations messages with cache invaliders that will create invalidation messages. Thus, to start, a given service will first ask for a specific IG to work with. This is an in-VM operation: each cache and invalider works with a *locally* bound IM. If you want to extend the in-VM mode of operation, you need to provide (possibly dynamically), your IM-Bridge. A bridge forwards cache-invalidation messages on other nodes. It may select which IG are bridged. More than one cache can be bound to a given IM. As some applications needs to be able to send in batch invalidation messages that concern more than one cache. To satisfy this need, a global batchInvalidate method is available at the IM level.
See Also:   org.jboss.cache.invalidation.InvalidationManager
author:
   Sacha Labourey.
version:
   $Revision: 57209 $
version:
  

Revisions:
version:
  

21 septembre 2002 Sacha Labourey:
version:
  


    version:
      
  • First implementation

  • version:
      




Method Summary
public  voidbatchInvalidate(BatchInvalidation[] invalidations)
     Invalidate a set of IG managed by this IM.
public  voidbatchInvalidate(BatchInvalidation[] invalidations, boolean asynchronous)
     Identical as previous method.
public  InvalidationGroupgetInvalidationGroup(String groupName)
     Returns a given InvalidationGroup instance that is associated with the group name. All caches that will share the same cache invalidation messages must share the same group name => the group name (or the IG) represents the identifier of a set of caches and invaliders. NOTE: InvalidationGroup.addReference is automatically called when calling this method Thus, there is no need to call it again on the IG.
public  CollectiongetInvalidationGroups()
    
public  booleangetIsAsynchByDefault()
    
public  voidinvalidateAll(String groupName)
     Invalidate all entries for the specified group name.
public  voidinvalidateAll(String groupName, boolean async)
     Invalidate all entries for the specified group name using the specified mode.
public  BridgeInvalidationSubscriptionregisterBridgeListener(InvalidationBridgeListener listener)
    
public  voidsetIsAsynchByDefault(boolean flag)
    



Method Detail
batchInvalidate
public void batchInvalidate(BatchInvalidation[] invalidations)(Code)
Invalidate a set of IG managed by this IM. This can be used as an optimisation if a bridge will forward requests accross a cluster. In this case, a single message containing all invocations is send accross the wire (it only costs a single network latency). The IM will manage the dispatching of the invalidation messages to the Bridges and to the concerned InvalidationGroups.
Parameters:
  invalidations - A set of BatchcInvalidations. Each BatchInvalidation instance contains invalidationsfor a given InvalidationGroup.



batchInvalidate
public void batchInvalidate(BatchInvalidation[] invalidations, boolean asynchronous)(Code)
Identical as previous method. In this case though, it is override the default "asynchronous" tag of each InvalidationGroup and explicitly state if the invalidation messages should be, if possible, be done asynchronously (if implemented by the bridges for example).
Parameters:
  invalidations - Invalidation messages
Parameters:
  asynchronous - Indicates if the briges should try to do asynchronous invalidations (accross thenetwork for example) or if a synchronous behaviour is required.



getInvalidationGroup
public InvalidationGroup getInvalidationGroup(String groupName)(Code)
Returns a given InvalidationGroup instance that is associated with the group name. All caches that will share the same cache invalidation messages must share the same group name => the group name (or the IG) represents the identifier of a set of caches and invaliders. NOTE: InvalidationGroup.addReference is automatically called when calling this method Thus, there is no need to call it again on the IG. Nevertheless, you are still responsible for calling removeReference to GC IG.
Parameters:
  groupName - Name of the group (of the cache for example). The InvalidationGroup associated to the group name i.e. the identifier of the set



getInvalidationGroups
public Collection getInvalidationGroups()(Code)
Return the set of all InvalidationGroup currently managed by this IM A collection of InvalidationGroup instances



getIsAsynchByDefault
public boolean getIsAsynchByDefault()(Code)
Get the is default asynchronous replication mode flag



invalidateAll
public void invalidateAll(String groupName)(Code)
Invalidate all entries for the specified group name.
Parameters:
  groupName - invalidation group name



invalidateAll
public void invalidateAll(String groupName, boolean async)(Code)
Invalidate all entries for the specified group name using the specified mode.
Parameters:
  groupName - invalidate group name
Parameters:
  async - mode



registerBridgeListener
public BridgeInvalidationSubscription registerBridgeListener(InvalidationBridgeListener listener)(Code)
Allow the subscription of a given Bridge to this IM
Parameters:
  listener - The Bridge registring for invalidation messages A BridgeInvalidationSubscription instance that can is used by the bridgeto communicate with the local IM.
See Also:   BridgeInvalidationSubscription



setIsAsynchByDefault
public void setIsAsynchByDefault(boolean flag)(Code)
Set the is default asynchronous replication mode flag
Parameters:
  flag - - true for asynch by default



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