org.objectweb.proactive.core.group.spmd
Class MethodCallSetSPMDGroup

java.lang.Object
  |
  +--org.objectweb.proactive.core.mop.MethodCall
        |
        +--org.objectweb.proactive.core.group.MethodCallControlForGroup
              |
              +--org.objectweb.proactive.core.group.spmd.MethodCallSetSPMDGroup
All Implemented Interfaces:
java.io.Serializable

public class MethodCallSetSPMDGroup
extends MethodCallControlForGroup

Author:
Laurent Baduel
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.objectweb.proactive.core.mop.MethodCall
MethodCall.FixWrapper
 
Field Summary
 
Fields inherited from class org.objectweb.proactive.core.mop.MethodCall
COMPONENT_TAG
 
Constructor Summary
MethodCallSetSPMDGroup(java.lang.Object smpgGroup)
          Builds a method call to set the SPMD group
 
Method Summary
 java.lang.Object execute(java.lang.Object targetObject)
          Executes the call.
 java.lang.String getName()
          Returns the name of the call
 int getNumberOfParameter()
          This call have one parameter.
 
Methods inherited from class org.objectweb.proactive.core.group.MethodCallControlForGroup
finalize, getReifiedMethod, isAsynchronousWayCall, isOneWayCall, readTheObject, writeTheObject
 
Methods inherited from class org.objectweb.proactive.core.mop.MethodCall
getComponentMethodCall, getFcFunctionalInterfaceName, getMethodCall, getParameter, getRecycleMethodCallObject, getTag, makeDeepCopyOfArguments, setEffectiveArguments, setFcFunctionalInterfaceName, setMethodCall, setRecycleMethodCallObject, setTag, transformEffectiveArgumentsIntoByteArray
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodCallSetSPMDGroup

public MethodCallSetSPMDGroup(java.lang.Object smpgGroup)
Builds a method call to set the SPMD group

Parameters:
smpgGroup - - the SPMD group to set
Method Detail

getName

public java.lang.String getName()
Returns the name of the call

Overrides:
getName in class MethodCall
Returns:
the String "MethodCallSetSPMDGroup";

getNumberOfParameter

public int getNumberOfParameter()
This call have one parameter.

Specified by:
getNumberOfParameter in class MethodCallControlForGroup
Returns:
1
See Also:
MethodCall.getNumberOfParameter()

execute

public java.lang.Object execute(java.lang.Object targetObject)
                         throws java.lang.reflect.InvocationTargetException,
                                MethodCallExecutionFailedException
Executes the call.

Overrides:
execute in class MethodCall
Parameters:
targetObject - the Object the method is called on
Returns:
the result of the invocation of the method. If the method returns void, then null is returned. If the method returned a primitive type, then it is wrapped inside the appropriate wrapper object.
Throws:
java.lang.reflect.InvocationTargetException - thrown if the execution of the reified method terminates abruptly by throwing an exception. The exception thrown by the execution of the reified method is placed inside the InvocationTargetException object.
MethodCallExecutionFailedException - thrown if the refleciton of the call failed.
See Also:
MethodCall.execute(java.lang.Object)


Copyright © April 2004 INRIA All Rights Reserved.