[jboss-cvs] JBossAS SVN: r104233 - projects/cluster/ha-server-api/trunk/src/main/java/org/jboss/ha/framework/interfaces.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sun Apr 25 11:26:15 EDT 2010


Author: bstansberry at jboss.com
Date: 2010-04-25 11:26:15 -0400 (Sun, 25 Apr 2010)
New Revision: 104233

Modified:
   projects/cluster/ha-server-api/trunk/src/main/java/org/jboss/ha/framework/interfaces/HAPartition.java
Log:
[JBCLUSTER-263] More tweaks

Modified: projects/cluster/ha-server-api/trunk/src/main/java/org/jboss/ha/framework/interfaces/HAPartition.java
===================================================================
--- projects/cluster/ha-server-api/trunk/src/main/java/org/jboss/ha/framework/interfaces/HAPartition.java	2010-04-25 15:22:24 UTC (rev 104232)
+++ projects/cluster/ha-server-api/trunk/src/main/java/org/jboss/ha/framework/interfaces/HAPartition.java	2010-04-25 15:26:15 UTC (rev 104233)
@@ -22,7 +22,6 @@
 package org.jboss.ha.framework.interfaces;
 
 import java.io.Serializable;
-import java.util.ArrayList;
 import java.util.List;
 import java.util.Vector;
 
@@ -149,8 +148,7 @@
     *
     * @return an array of responses from nodes that invoked the RPC
     */
-   @SuppressWarnings("unchecked")
-   public ArrayList callMethodOnCluster(String serviceName, String methodName,
+   public List<?> callMethodOnCluster(String serviceName, String methodName,
          Object[] args, Class<?>[] types, boolean excludeSelf) throws InterruptedException;
    
    /**
@@ -172,14 +170,14 @@
     * 
     * @return an array of responses from remote nodes
     */
-   @SuppressWarnings("unchecked")
-   public ArrayList callMethodOnCluster(String serviceName, String methodName,
+   public List<?> callMethodOnCluster(String serviceName, String methodName,
          Object[] args, Class<?>[] types, boolean excludeSelf, ResponseFilter filter) throws InterruptedException;
    
    /**
     * Invoke an RPC call on all nodes of the partition/cluster and return their
     * response values as a list.
     * 
+    * @param T the expected type of the return values
     * @param serviceName name of the target service name on which calls are invoked
     * @param methodName name of the Java method to be called on remote services
     * @param args array of Java Object representing the set of parameters to be
@@ -199,7 +197,7 @@
     * to other RPCs originated by the same node
     * @return a list of responses from remote nodes
     */
-   public <T> ArrayList<T> callMethodOnCluster(String serviceName, String methodName,
+   public <T> List<T> callMethodOnCluster(String serviceName, String methodName,
          Object[] args, Class<?>[] types, Class<T> returnType, boolean excludeSelf, 
          ResponseFilter filter, long methodTimeout, boolean unordered) throws InterruptedException;
 
@@ -239,7 +237,7 @@
     * that this RPC is invoked on all nodes in a consistent order with respect
     * to other RPCs originated by the same node
     */   
-   public void callAsynchMethodOnCluster(String objName, String methodName,
+   public void callAsynchMethodOnCluster(String serviceName, String methodName,
          Object[] args, Class<?>[] types, boolean excludeSelf, boolean unordered) throws InterruptedException;
 
    /**
@@ -266,6 +264,7 @@
     * Calls method on Cluster coordinator node only.  The cluster coordinator 
     * node is the first node in the current cluster view.
     * 
+    * @param T the expected type of the return value
     * @param serviceName name of the target service name on which calls are invoked
     * @param methodName name of the Java method to be called on remote services
     * @param args array of Java Object representing the set of parameters to be
@@ -331,6 +330,7 @@
    /**
     * Calls method synchronously on target node only.
     * 
+    * @param T the expected type of the return value
     * @param serviceName name of the target service name on which calls are invoked
     * @param methodName name of the Java method to be called on remote services
     * @param args array of Java Object representing the set of parameters to be




More information about the jboss-cvs-commits mailing list