1 31 package org.objectweb.proactive.core.group.spmd; 32 33 import java.lang.reflect.InvocationTargetException ; 34 35 import org.objectweb.proactive.ProActive; 36 import org.objectweb.proactive.core.body.AbstractBody; 37 import org.objectweb.proactive.core.group.MethodCallControlForGroup; 38 import org.objectweb.proactive.core.mop.MethodCallExecutionFailedException; 39 40 43 public class MethodCallSetSPMDGroup extends MethodCallControlForGroup { 44 45 49 public MethodCallSetSPMDGroup(Object smpgGroup) { 50 Object [] objTab = new Object [1]; 51 objTab[0] = smpgGroup; 52 this.setEffectiveArguments(objTab); 53 } 54 55 59 public String getName() { 60 return "MethodCallSetSPMDGroup"; 61 } 62 63 68 public int getNumberOfParameter() { 69 return 1; 70 } 71 72 76 public Object execute(Object targetObject) 77 throws InvocationTargetException , MethodCallExecutionFailedException { 78 79 AbstractBody body = (AbstractBody) ProActive.getBodyOnThis(); 80 body.setSPMDGroup(this.getParameter(0)); 81 return null; 82 } 83 84 } 85 | Popular Tags |