org.objectweb.proactive.core.group
Class MethodCallControlForGroup

java.lang.Object
  extended byorg.objectweb.proactive.core.mop.MethodCall
      extended byorg.objectweb.proactive.core.group.MethodCallControlForGroup
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
MethodCallBarrier, MethodCallBarrierWithMethodName, MethodCallSetSPMDGroup

public abstract class MethodCallControlForGroup
extends MethodCall

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
MethodCallControlForGroup()
           
 
Method Summary
 java.lang.Object execute(java.lang.Object targetObject)
          Executes the instance method call represented by this object.
protected  void finalize()
           
 java.util.LinkedList getBarrierTags()
          Control messages are never tagged
 int getNumberOfParameter()
          Returns the number of parmeters (0 for most of method call for group)
 java.lang.reflect.Method getReifiedMethod()
           
 boolean isAsynchronousWayCall()
          ControlCall for group never are asynchronous
 boolean isOneWayCall()
          ControlCall for group always are oneway
protected  void readTheObject(java.io.ObjectInputStream in)
           
 void setBarrierTags(java.util.LinkedList barrierTags)
          This method does nothing, because control messages are not subject to be bloqued by barriers
protected  void writeTheObject(java.io.ObjectOutputStream out)
           
 
Methods inherited from class org.objectweb.proactive.core.mop.MethodCall
getComponentMethodCall, getFcFunctionalInterfaceName, getMethodCall, getName, 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

MethodCallControlForGroup

public MethodCallControlForGroup()
Method Detail

getReifiedMethod

public java.lang.reflect.Method getReifiedMethod()
Overrides:
getReifiedMethod in class MethodCall

getNumberOfParameter

public int getNumberOfParameter()
Returns the number of parmeters (0 for most of method call for group)

Overrides:
getNumberOfParameter in class MethodCall
Returns:
0
See Also:
MethodCall.getNumberOfParameter()

writeTheObject

protected void writeTheObject(java.io.ObjectOutputStream out)
                       throws java.io.IOException
Overrides:
writeTheObject in class MethodCall
Throws:
java.io.IOException

readTheObject

protected void readTheObject(java.io.ObjectInputStream in)
                      throws java.io.IOException,
                             java.lang.ClassNotFoundException
Overrides:
readTheObject in class MethodCall
Throws:
java.io.IOException
java.lang.ClassNotFoundException

finalize

protected void finalize()
Overrides:
finalize in class MethodCall

execute

public java.lang.Object execute(java.lang.Object targetObject)
                         throws java.lang.reflect.InvocationTargetException,
                                MethodCallExecutionFailedException
Description copied from class: MethodCall
Executes the instance method call represented by this object.

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 reflection of the call failed.

isAsynchronousWayCall

public boolean isAsynchronousWayCall()
ControlCall for group never are asynchronous

Overrides:
isAsynchronousWayCall in class MethodCall
Returns:
false
See Also:
MethodCall.isAsynchronousWayCall()

isOneWayCall

public boolean isOneWayCall()
ControlCall for group always are oneway

Overrides:
isOneWayCall in class MethodCall
Returns:
true
See Also:
MethodCall.isOneWayCall()

setBarrierTags

public void setBarrierTags(java.util.LinkedList barrierTags)
This method does nothing, because control messages are not subject to be bloqued by barriers

Overrides:
setBarrierTags in class MethodCall
Parameters:
barrierTags - unsed parameter

getBarrierTags

public java.util.LinkedList getBarrierTags()
Control messages are never tagged

Overrides:
getBarrierTags in class MethodCall
Returns:
null


Copyright ? April 2005 INRIA All Rights Reserved.