Java Doc for DistributedState.java in  » EJB-Server-JBoss-4.2.1 » cluster » org » jboss » ha » framework » interfaces » 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 » cluster » org.jboss.ha.framework.interfaces 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.jboss.ha.framework.interfaces.DistributedState

All known Subclasses:   org.jboss.cache.invalidation.bridges.JGCacheInvalidationBridge,
DistributedState
public interface DistributedState (Code)
DistributedState is a service on top of HAPartition that provides a cluster-wide distributed state. The DistributedState (DS) service provides a tuple map. Thus, any service, application, container, ... can request its own DS "private space" by working* in its own category (a string name). You work in a category like a Dictionary: you set values by key within a category. Each time a value is added/modified/removed, the modification is made cluster-wide, on all other nodes. Reading values is always made locally (no network access!) Objects can also subscribes to DS events to be notified when some values gets modified/removed/added in a particular category.
author:
   Sacha Labourey.
author:
   Scott.Stark@jboss.org
version:
   $Revision: 57188 $
See Also:   HAPartition

Inner Class :public interface DSListener
Inner Class :public interface DSListenerEx



Method Summary
public  Serializableget(String category, Serializable key)
     Read in a value associated to a key in the given category.
public  CollectiongetAllCategories()
     Return a list of all categories.
public  CollectiongetAllKeys(String category)
     Return a list of all keys in a category.
public  CollectiongetAllValues(String category)
     Return a list of all values in a category.
public  voidregisterDSListener(String category, DSListener subscriber)
     Subscribes to receive DistributedState.DSListener events
Parameters:
  category - Name of the private-space to watch for
Parameters:
  subscriber - Object that will receive callbacks.
public  voidregisterDSListenerEx(String category, DSListenerEx subscriber)
     Subscribes to receive DistributedState.DSListenerEx events
Parameters:
  category - Name of the private-space to watch for
Parameters:
  subscriber - Object that will receive callbacks.
public  Serializableremove(String category, Serializable key)
    
public  Serializableremove(String category, Serializable key, boolean asynchronousCall)
     Same as remove(String, String) but caller can choose if the call is made synchronously or asynchronously.
public  voidset(String category, Serializable key, Serializable value)
    
public  voidset(String category, Serializable key, Serializable value, boolean asynchronousCall)
     Same as set(String, String) but caller can choose if the call is made synchronously or asynchronously.
public  voidunregisterDSListener(String category, DSListener subscriber)
    
public  voidunregisterDSListenerEx(String category, DSListenerEx subscriber)
    



Method Detail
get
public Serializable get(String category, Serializable key)(Code)
Read in a value associated to a key in the given category. Read is performed locally.
Parameters:
  category - Name of the private naming-space
Parameters:
  key - The key of the value to read The value of the key in the given category



getAllCategories
public Collection getAllCategories()(Code)
Return a list of all categories. Call managed locally: no network access. A collection of String representing the existing categories in the DS service.



getAllKeys
public Collection getAllKeys(String category)(Code)
Return a list of all keys in a category. Call managed locally: no network access.
Parameters:
  category - The category under which to look for keys A collection of all keys in the give category



getAllValues
public Collection getAllValues(String category)(Code)
Return a list of all values in a category. Call managed locally: no network access.
Parameters:
  category - The category name under which to look for values A collection of all values in the give category



registerDSListener
public void registerDSListener(String category, DSListener subscriber)(Code)
Subscribes to receive DistributedState.DSListener events
Parameters:
  category - Name of the private-space to watch for
Parameters:
  subscriber - Object that will receive callbacks. This



registerDSListenerEx
public void registerDSListenerEx(String category, DSListenerEx subscriber)(Code)
Subscribes to receive DistributedState.DSListenerEx events
Parameters:
  category - Name of the private-space to watch for
Parameters:
  subscriber - Object that will receive callbacks. This



remove
public Serializable remove(String category, Serializable key) throws Exception(Code)
Remove the key from the ReplicationService in the given category
Parameters:
  category - Name of the category
Parameters:
  key - Key to be removed
throws:
  Exception - if a network exception occurs while removing the entry.



remove
public Serializable remove(String category, Serializable key, boolean asynchronousCall) throws Exception(Code)
Same as remove(String, String) but caller can choose if the call is made synchronously or asynchronously. By default, calls are asynchronous.



set
public void set(String category, Serializable key, Serializable value) throws Exception(Code)
Associates a value to a key in a specific category
Parameters:
  category - Name of the private naming-space
Parameters:
  key - Name of the data to set
Parameters:
  value - Value of the data to set
throws:
  Exception - If a network communication occurs



set
public void set(String category, Serializable key, Serializable value, boolean asynchronousCall) throws Exception(Code)
Same as set(String, String) but caller can choose if the call is made synchronously or asynchronously. By default, calls are asynchronous.



unregisterDSListener
public void unregisterDSListener(String category, DSListener subscriber)(Code)
Subscribes from DistributedState.DSListener events
Parameters:
  category - Name of the private-space dictionary currently observed
Parameters:
  subscriber - object currently observing this category



unregisterDSListenerEx
public void unregisterDSListenerEx(String category, DSListenerEx subscriber)(Code)
Subscribes from DistributedState.DSListenerEx events
Parameters:
  category - Name of the private-space dictionary currently observed
Parameters:
  subscriber - object currently observing this category



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