From: Bela B. <be...@us...> - 2004-05-19 17:24:43
|
User: belaban Date: 04/05/19 10:24:36 Modified: src/main/org/jboss/ha/jmx Tag: Branch_3_2 HAServiceMBeanSupport.java Log: changed to use new MethodCall syntax Revision Changes Path No revision No revision 1.1.2.6 +22 -4 jbossmx/src/main/org/jboss/ha/jmx/HAServiceMBeanSupport.java Index: HAServiceMBeanSupport.java =================================================================== RCS file: /cvsroot/jboss/jbossmx/src/main/org/jboss/ha/jmx/HAServiceMBeanSupport.java,v retrieving revision 1.1.2.5 retrieving revision 1.1.2.6 diff -u -r1.1.2.5 -r1.1.2.6 --- HAServiceMBeanSupport.java 10 Mar 2004 09:25:52 -0000 1.1.2.5 +++ HAServiceMBeanSupport.java 19 May 2004 17:24:34 -0000 1.1.2.6 @@ -41,7 +41,7 @@ * or by iterating locally over filters or remote listeners. * * @author Ivelin Ivanov <iv...@ap...> * - * @version $Revision: 1.1.2.5 $ + * @version $Revision: 1.1.2.6 $ * */ public class HAServiceMBeanSupport @@ -240,6 +240,13 @@ return partition_; } + /** + * + * @param methodName + * @param args + * @throws Exception + * @deprecated Use {@link #callMethodOnPartition(String, Object[], Class[])} instead + */ public void callMethodOnPartition(String methodName, Object[] args) throws Exception { @@ -249,6 +256,16 @@ args, true); } + + public void callMethodOnPartition(String methodName, Object[] args, Class[] types) + throws Exception + { + getPartition().callMethodOnCluster( + getServiceHAName(), + methodName, + args, types, + true); + } /** @@ -290,7 +307,7 @@ super.sendNotification(notification); } - protected void callAsyncMethodOnPartition(String methodName, Object[] args) + protected void callAsyncMethodOnPartition(String methodName, Object[] args, Class[] types) throws Exception { HAPartition partition = getPartition(); @@ -299,7 +316,7 @@ getPartition().callAsynchMethodOnCluster( getServiceHAName(), methodName, - args, + args, types, true); } } @@ -314,7 +331,8 @@ protected void sendNotificationRemote(Notification notification) throws Exception { - callAsyncMethodOnPartition("_receiveRemoteNotification", new Object[]{notification}); + callAsyncMethodOnPartition("_receiveRemoteNotification", + new Object[]{notification}, new Class[]{Notification.class}); } /** |