Java Doc for HAPartition.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.HAPartition

All known Subclasses:   org.jboss.ha.framework.server.DistributedReplicantManagerImpl,  org.jboss.ha.framework.server.HAPartitionImpl,  org.jboss.ha.hasessionstate.server.HASessionStateImpl,
HAPartition
public interface HAPartition (Code)

author:
   Bill Burke.
author:
   Sacha Labourey.
version:
   $Revision: 57188 $
version:
  

Revisions:

version:
  

28.07.2002 - Sacha Labourey:
version:
  


    version:
      
  • Added network-partition merge callback for listeners

  • version:
      

Inner Class :public interface HAPartitionStateTransfer
Inner Class :public interface HAMembershipListener
Inner Class :public interface AsynchHAMembershipListener extends HAMembershipListener
Inner Class :public interface HAMembershipExtendedListener extends HAPartition.HAMembershipListener
Inner Class :public interface AsynchHAMembershipExtendedListener extends HAMembershipExtendedListener



Method Summary
public  voidcallAsynchMethodOnCluster(String serviceName, String methodName, Object[] args, Class[] types, boolean excludeSelf)
     Invoke a asynchronous RPC call on all nodes of the partition/cluster.
public  voidcallAsynchMethodOnCluster(String serviceName, String methodName, Object[] args, boolean excludeSelf)
    
public  ArrayListcallMethodOnCluster(String serviceName, String methodName, Object[] args, Class[] types, boolean excludeSelf)
    
public  ArrayListcallMethodOnCluster(String serviceName, String methodName, Object[] args, boolean excludeSelf)
    
public  ArrayListcallMethodOnCoordinatorNode(String serviceName, String methodName, Object[] args, Class[] types, boolean excludeSelf)
     Calls method on Cluster coordinator node only.
public  booleangetAllowSynchronousMembershipNotifications()
     Returns whether this partition will synchronously notify any HAMembershipListeners of membership changes using the calling thread from the underlying ClusterPartition. true if registered listeners that don't implementAsynchHAMembershipExtendedListener orAsynchHAMembershipListener will be notifiedsynchronously of membership changes; false ifthose listeners will be notified asynchronously.
public  ClusterNodegetClusterNode()
     Return member node for the current cluster node.
public  ClusterNode[]getClusterNodes()
     Return the member nodes that built the current view i.e.
public  VectorgetCurrentView()
     Return the list of member nodes that built the current view i.e.
public  longgetCurrentViewId()
     Each time the partition topology changes, a new view is computed.
public  DistributedReplicantManagergetDistributedReplicantManager()
     Accessor to the DRM that is linked to this partition.
public  DistributedStategetDistributedStateService()
     Accessor the the DistributedState (DS) that is linked to this partition.
public  StringgetNodeName()
     Return the name of this node in the current partition.
public  StringgetPartitionName()
     The name of the partition.
public  voidregisterMembershipListener(HAMembershipListener listener)
     Subscribes to receive HAMembershipListener events.
public  voidregisterRPCHandler(String serviceName, Object handler)
     The partition receives RPC calls from other nodes in the cluster and demultiplex them, according to a service name, to a particular service.
public  voidsetAllowSynchronousMembershipNotifications(boolean allowSync)
     Sets whether this partition will synchronously notify any HAMembershipListeners of membership changes using the calling thread from the underlying ClusterPartition.
Parameters:
  allowSync - true if registered listeners that don't implement AsynchHAMembershipExtendedListener orAsynchHAMembershipListener should be notifiedsynchronously of membership changes; false ifthose listeners can be notified asynchronously.
public  voidsubscribeToStateTransferEvents(String serviceName, HAPartition.HAPartitionStateTransfer subscriber)
     Register a service that will participate in state transfer protocol and receive callbacks
Parameters:
  serviceName - Name of the service that subscribes for state stransfer events.
public  voidunregisterMembershipListener(HAMembershipListener listener)
     Unsubscribes from receiving HAMembershipListener events.
public  voidunregisterRPCHandler(String serviceName, Object subscriber)
    
public  voidunsubscribeFromStateTransferEvents(String serviceName, HAPartition.HAPartitionStateTransfer subscriber)
     Unregister a service from state transfer callbacks.



Method Detail
callAsynchMethodOnCluster
public void callAsynchMethodOnCluster(String serviceName, String methodName, Object[] args, Class[] types, boolean excludeSelf) throws Exception(Code)
Invoke a asynchronous RPC call on all nodes of the partition/cluster. The call will return immediately and will not wait that the nodes answer. Thus no answer is available.
Parameters:
  serviceName - Name of the target service name on which calls are de-multiplexed
Parameters:
  methodName - name of the Java method to be called on remote services
Parameters:
  args - array of Java Object representing the set of parameters to begiven to the remote method
Parameters:
  types - The types of the parameters
Parameters:
  excludeSelf - indicates if the RPC must also be made on the currentnode of the partition or only on remote nodes
throws:
  Exception - Throws if a communication exception occurs



callAsynchMethodOnCluster
public void callAsynchMethodOnCluster(String serviceName, String methodName, Object[] args, boolean excludeSelf) throws Exception(Code)

Parameters:
  serviceName -
Parameters:
  methodName -
Parameters:
  args -
Parameters:
  excludeSelf -
throws:
  Exception - HAPartition.callAsynchMethodOnCluster(String,String,Object[],Class[],boolean)



callMethodOnCluster
public ArrayList callMethodOnCluster(String serviceName, String methodName, Object[] args, Class[] types, boolean excludeSelf) throws Exception(Code)
Invoke a synchronous RPC call on all nodes of the partition/cluster
Parameters:
  serviceName - Name of the target service name on which calls are de-multiplexed
Parameters:
  methodName - name of the Java method to be called on remote services
Parameters:
  args - array of Java Object representing the set of parameters to begiven to the remote method
Parameters:
  types - The types of the parameters
Parameters:
  excludeSelf - indicates if the RPC must also be made on the currentnode of the partition or only on remote nodes
throws:
  Exception - Throws if a communication exception occurs an array of answers from remote nodes



callMethodOnCluster
public ArrayList callMethodOnCluster(String serviceName, String methodName, Object[] args, boolean excludeSelf) throws Exception(Code)

Parameters:
  serviceName -
Parameters:
  methodName -
Parameters:
  args -
Parameters:
  excludeSelf -
throws:
  Exception - HAPartition.callMethodOnCluster(String,String,Object[],Class[],boolean)



callMethodOnCoordinatorNode
public ArrayList callMethodOnCoordinatorNode(String serviceName, String methodName, Object[] args, Class[] types, boolean excludeSelf) throws Exception(Code)
Calls method on Cluster coordinator node only. The cluster coordinator node is the first node to join the cluster or the first node in the current cluster view.
Parameters:
  serviceName - Name of the target service name on which calls are de-multiplexed
Parameters:
  methodName - name of the Java method to be called on remote services
Parameters:
  args - array of Java Object representing the set of parameters to begiven to the remote method
Parameters:
  types - The types of the parametersnode of the partition or only on remote nodes
Parameters:
  excludeSelf - indicates if the RPC will be made on the current node even if the current nodeis the coordinator
throws:
  Exception - Throws if a communication exception occurs an array of answers from remote nodes



getAllowSynchronousMembershipNotifications
public boolean getAllowSynchronousMembershipNotifications()(Code)
Returns whether this partition will synchronously notify any HAMembershipListeners of membership changes using the calling thread from the underlying ClusterPartition. true if registered listeners that don't implementAsynchHAMembershipExtendedListener orAsynchHAMembershipListener will be notifiedsynchronously of membership changes; false ifthose listeners will be notified asynchronously. Defaultis false.



getClusterNode
public ClusterNode getClusterNode()(Code)
Return member node for the current cluster node. ClusterNode containing the current node name



getClusterNodes
public ClusterNode[] getClusterNodes()(Code)
Return the member nodes that built the current view i.e. the current partition. An array of ClusterNode listing the current members of the partitionn.This array will be in the same order in all nodes in the cluster thathave received the current view.



getCurrentView
public Vector getCurrentView()(Code)
Return the list of member nodes that built the current view i.e. the current partition. An array of Strings containing the node names



getCurrentViewId
public long getCurrentViewId()(Code)
Each time the partition topology changes, a new view is computed. A view is a list of members, the first member being the coordinator of the view. Each view also has a distinct identifier. The identifier of the current view



getDistributedReplicantManager
public DistributedReplicantManager getDistributedReplicantManager()(Code)
Accessor to the DRM that is linked to this partition. the DRM linked to this partition



getDistributedStateService
public DistributedState getDistributedStateService()(Code)
Accessor the the DistributedState (DS) that is linked to this partition. the DistributedState service



getNodeName
public String getNodeName()(Code)
Return the name of this node in the current partition. The name is dynamically determined by the partition. The name will be the String returned by getClusterNode().getName(). The node name
See Also:   HAPartition.getClusterNode()



getPartitionName
public String getPartitionName()(Code)
The name of the partition. Either set when creating the partition (MBEAN definition) or uses the default name Name of the current partition



registerMembershipListener
public void registerMembershipListener(HAMembershipListener listener)(Code)
Subscribes to receive HAMembershipListener events.
Parameters:
  listener - The membership listener object



registerRPCHandler
public void registerRPCHandler(String serviceName, Object handler)(Code)
The partition receives RPC calls from other nodes in the cluster and demultiplex them, according to a service name, to a particular service. Consequently, each service must first subscribe with a particular service name in the partition. The subscriber does not need to implement any specific interface: the call is handled dynamically through reflection.
Parameters:
  serviceName - Name of the subscribing service (demultiplexing key)
Parameters:
  handler - object to be called when receiving a RPC for its key.



setAllowSynchronousMembershipNotifications
public void setAllowSynchronousMembershipNotifications(boolean allowSync)(Code)
Sets whether this partition will synchronously notify any HAMembershipListeners of membership changes using the calling thread from the underlying ClusterPartition.
Parameters:
  allowSync - true if registered listeners that don't implement AsynchHAMembershipExtendedListener orAsynchHAMembershipListener should be notifiedsynchronously of membership changes; false ifthose listeners can be notified asynchronously. Defaultis false.



subscribeToStateTransferEvents
public void subscribeToStateTransferEvents(String serviceName, HAPartition.HAPartitionStateTransfer subscriber)(Code)
Register a service that will participate in state transfer protocol and receive callbacks
Parameters:
  serviceName - Name of the service that subscribes for state stransfer events. This name must be identical for all identical services in the cluster.
Parameters:
  subscriber - Object implementing HAPartitionStateTransfer and providing or receiving state transfer callbacks



unregisterMembershipListener
public void unregisterMembershipListener(HAMembershipListener listener)(Code)
Unsubscribes from receiving HAMembershipListener events.
Parameters:
  listener - The listener wishing to unsubscribe



unregisterRPCHandler
public void unregisterRPCHandler(String serviceName, Object subscriber)(Code)
Unregister the service from the partition
Parameters:
  serviceName - Name of the service key (on which the demultiplexing occurs)
Parameters:
  subscriber - The target object that unsubscribes



unsubscribeFromStateTransferEvents
public void unsubscribeFromStateTransferEvents(String serviceName, HAPartition.HAPartitionStateTransfer subscriber)(Code)
Unregister a service from state transfer callbacks.
Parameters:
  serviceName - Name of the service that participates in the state transfer protocol
Parameters:
  subscriber - Service implementing the state transfer callback methods



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