00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031 package org.objectweb.proactive.core.component.collectiveitfs;
00032
00033 import java.util.Map;
00034
00035 import org.objectweb.fractal.api.NoSuchInterfaceException;
00036 import org.objectweb.proactive.core.component.Fractive;
00037 import org.objectweb.proactive.core.component.exceptions.ParameterDispatchException;
00038 import org.objectweb.proactive.core.component.group.ProxyForComponentInterfaceGroup;
00039 import org.objectweb.proactive.core.component.identity.ProActiveComponent;
00040 import org.objectweb.proactive.core.mop.MethodCall;
00041
00048 public class MulticastHelper {
00049
00066 public static Map<MethodCall, Integer> generateMethodCallsForMulticastDelegatee(
00067 ProActiveComponent owner, MethodCall mc,
00068 ProxyForComponentInterfaceGroup delegatee)
00069 throws ParameterDispatchException {
00070
00071 try {
00072 return Fractive.getMulticastController(owner)
00073 .generateMethodCallsForMulticastDelegatee(mc, delegatee);
00074 } catch (NoSuchInterfaceException e) {
00075 throw new ParameterDispatchException("no multicast controller ", e);
00076 }
00077 }
00078
00079 }