org.objectweb.proactive.core.body.proxy
Class UniversalBodyProxy

java.lang.Object
  |
  +--org.objectweb.proactive.core.body.proxy.AbstractProxy
        |
        +--org.objectweb.proactive.core.body.proxy.AbstractBodyProxy
              |
              +--org.objectweb.proactive.core.body.proxy.UniversalBodyProxy
All Implemented Interfaces:
BodyProxy, Proxy, java.io.Serializable

public class UniversalBodyProxy
extends AbstractBodyProxy
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
protected  boolean isLocal
           
protected static org.apache.log4j.Logger logger
           
protected  UniversalBody universalBody
           
 
Fields inherited from class org.objectweb.proactive.core.body.proxy.AbstractBodyProxy
bodyID
 
Constructor Summary
UniversalBodyProxy()
          Empty, no args constructor
UniversalBodyProxy(ConstructorCall constructorCall, java.lang.Object[] parameters)
          Instantiates an object of class BodyProxy, creates a body object (referenced either via the instance variable localBody or remoteBody) and passes the ConstructorCall object c to the body, which will then handle the creation of the reified object (That's it !).
 
Method Summary
protected  UniversalBody createLocalBody(ConstructorCall bodyConstructorCall, ConstructorCall reifiedObjectConstructorCall, Node node)
           
protected  UniversalBody createRemoteBody(ConstructorCall bodyConstructorCall, Node node)
           
 boolean equals(java.lang.Object o)
           
 UniversalBody getBody()
           
 int hashCode()
           
 boolean isLocal()
           
protected  void sendRequest(MethodCall methodCall, Future future)
           
protected  void sendRequest(MethodCall methodCall, Future future, Body sourceBody)
           
protected  void sendRequestInternal(MethodCall methodCall, Future future, Body sourceBody)
           
 
Methods inherited from class org.objectweb.proactive.core.body.proxy.AbstractBodyProxy
getBodyID, reify, reifyAsAsynchronous, reifyAsOneWay, reifyAsSynchronous
 
Methods inherited from class org.objectweb.proactive.core.body.proxy.AbstractProxy
isAsynchronousCall, isOneWayCall
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static org.apache.log4j.Logger logger

universalBody

protected transient UniversalBody universalBody

isLocal

protected transient boolean isLocal
Constructor Detail

UniversalBodyProxy

public UniversalBodyProxy()
Empty, no args constructor


UniversalBodyProxy

public UniversalBodyProxy(ConstructorCall constructorCall,
                          java.lang.Object[] parameters)
                   throws ProActiveException
Instantiates an object of class BodyProxy, creates a body object (referenced either via the instance variable localBody or remoteBody) and passes the ConstructorCall object c to the body, which will then handle the creation of the reified object (That's it !). parameter contains either : <Node, Active, MetaObjectFactory> or <UniversalBody>

Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getBody

public UniversalBody getBody()
Specified by:
getBody in interface BodyProxy

createLocalBody

protected UniversalBody createLocalBody(ConstructorCall bodyConstructorCall,
                                        ConstructorCall reifiedObjectConstructorCall,
                                        Node node)
                                 throws ProActiveException
ProActiveException

createRemoteBody

protected UniversalBody createRemoteBody(ConstructorCall bodyConstructorCall,
                                         Node node)
                                  throws ProActiveException
ProActiveException

sendRequest

protected void sendRequest(MethodCall methodCall,
                           Future future)
                    throws java.io.IOException,
                           RenegotiateSessionException
Specified by:
sendRequest in class AbstractBodyProxy
java.io.IOException
RenegotiateSessionException

sendRequest

protected void sendRequest(MethodCall methodCall,
                           Future future,
                           Body sourceBody)
                    throws java.io.IOException,
                           RenegotiateSessionException
Specified by:
sendRequest in class AbstractBodyProxy
java.io.IOException
RenegotiateSessionException

sendRequestInternal

protected void sendRequestInternal(MethodCall methodCall,
                                   Future future,
                                   Body sourceBody)
                            throws java.io.IOException,
                                   RenegotiateSessionException
java.io.IOException
RenegotiateSessionException

isLocal

public boolean isLocal()


Copyright © April 2004 INRIA All Rights Reserved.