User: slaboure
Date: 01/11/23 06:37:38
Modified: src/main/org/jboss/ha/framework/server HAPartitionImpl.java
Log:
Added asynchronous calls and removed unnecessary throws declaration
Revision Changes Path
1.8 +16 -1
jbossmx/src/main/org/jboss/ha/framework/server/HAPartitionImpl.java
Index: HAPartitionImpl.java
===================================================================
RCS file:
/cvsroot/jboss/jbossmx/src/main/org/jboss/ha/framework/server/HAPartitionImpl.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- HAPartitionImpl.java 2001/11/09 22:43:28 1.7
+++ HAPartitionImpl.java 2001/11/23 14:37:38 1.8
@@ -56,7 +56,7 @@
*
* @author [EMAIL PROTECTED]
* @author [EMAIL PROTECTED]
- * @version $Revision: 1.7 $
+ * @version $Revision: 1.8 $
*
* <p><b>Revisions:</b><br>
*/
@@ -274,6 +274,21 @@
return rtn;
}
+ /**
+ * This function is an abstraction of RpcDispatcher for asynchronous messages
+ */
+ public void callAsynchMethodOnCluster (String objName, String methodName,
Object[] args, boolean excludeSelf) throws Exception
+ {
+ MethodCall m = new MethodCall (objName + "." + methodName, args);
+ this.CallRemoteMethods (null, m, GroupRequest.GET_NONE, timeout);
+
+ if (!excludeSelf)
+ {
+ m.SetName (methodName);
+ Object handler = rpcHandlers.get (objName);
+ m.Invoke (handler, method_lookup_clos);
+ }
+ }
// *************************
// *************************
// State transfer management
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development