[jboss-cvs] JBossAS SVN: r64119 - trunk/cluster/src/main/org/jboss/ha/jmx.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Jul 18 09:41:26 EDT 2007


Author: jerrygauth
Date: 2007-07-18 09:41:26 -0400 (Wed, 18 Jul 2007)
New Revision: 64119

Modified:
   trunk/cluster/src/main/org/jboss/ha/jmx/HAServiceMBean.java
   trunk/cluster/src/main/org/jboss/ha/jmx/HAServiceMBeanSupport.java
Log:
JBAS-4560, modified HAServiceMBeanSupport.callMethodOnPartition() to return results

Modified: trunk/cluster/src/main/org/jboss/ha/jmx/HAServiceMBean.java
===================================================================
--- trunk/cluster/src/main/org/jboss/ha/jmx/HAServiceMBean.java	2007-07-18 13:41:19 UTC (rev 64118)
+++ trunk/cluster/src/main/org/jboss/ha/jmx/HAServiceMBean.java	2007-07-18 13:41:26 UTC (rev 64119)
@@ -22,6 +22,7 @@
 package org.jboss.ha.jmx;
 
 import java.io.Serializable;
+import java.util.List;
 
 import javax.management.Notification;
 import javax.management.NotificationBroadcaster;
@@ -78,16 +79,16 @@
 
   /**
    * 
-   * Convenience method for broadcasting a call to all members 
-   * of a partition.
+   * Convenience method for broadcasting a call to all members of a partition.
    * 
    * @param methodName
    * @param args array of Java Object representing the set of parameters to be
    * given to the remote method
    * @param types The types of the parameters
+   * @return a list of responses from remote nodes
    * @throws Exception
    */
-  public void callMethodOnPartition(String methodName, Object[] args, Class[] types)
+  public List callMethodOnPartition(String methodName, Object[] args, Class[] types)
     throws Exception;
 
   /**

Modified: trunk/cluster/src/main/org/jboss/ha/jmx/HAServiceMBeanSupport.java
===================================================================
--- trunk/cluster/src/main/org/jboss/ha/jmx/HAServiceMBeanSupport.java	2007-07-18 13:41:19 UTC (rev 64118)
+++ trunk/cluster/src/main/org/jboss/ha/jmx/HAServiceMBeanSupport.java	2007-07-18 13:41:26 UTC (rev 64119)
@@ -261,10 +261,10 @@
       return drm.isMasterReplica(getServiceHAName());
    }
 
-    public void callMethodOnPartition(String methodName, Object[] args, Class[] types)
+    public List callMethodOnPartition(String methodName, Object[] args, Class[] types)
       throws Exception
    {
-       clusterPartition.callMethodOnCluster(
+       return clusterPartition.callMethodOnCluster(
          getServiceHAName(),
          methodName,
          args, types,




More information about the jboss-cvs-commits mailing list