org.objectweb.proactive.core.body.proxy
Class AbstractProxy
java.lang.Object
org.objectweb.proactive.core.body.proxy.AbstractProxy
- All Implemented Interfaces:
- NFEProducer, Proxy, java.io.Serializable
- Direct Known Subclasses:
- AbstractBodyProxy, ProxyForGroup
- public abstract class AbstractProxy
- extends java.lang.Object
- implements Proxy, java.io.Serializable, NFEProducer
- See Also:
- Serialized Form
Field Summary |
protected static org.apache.log4j.Logger |
logger
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.proactive.core.mop.Proxy |
reify |
logger
protected static org.apache.log4j.Logger logger
AbstractProxy
public AbstractProxy()
isAsynchronousCall
protected static boolean isAsynchronousCall(MethodCall mc)
- Checks if the given
Call
object c
can be
processed with a future semantics, i-e if its returned object
can be a future object.
Two conditions must be met :
- The returned object is reifiable
- The invoked method does not throw any exceptions
- Returns:
- true if and only if the method call can be asynchronous
isOneWayCall
protected static boolean isOneWayCall(MethodCall mc)
- Returns a boolean saying whether the methode is one-way or not.
Being one-way method is equivalent to
- having
void
as return type
- and not throwing any checked exceptions
- Returns:
- true if and only if the method call is one way
addNFEListener
public void addNFEListener(NFEListener listener)
- Specified by:
addNFEListener
in interface NFEProducer
removeNFEListener
public void removeNFEListener(NFEListener listener)
- Specified by:
removeNFEListener
in interface NFEProducer
fireNFE
public int fireNFE(NonFunctionalException e)
- Specified by:
fireNFE
in interface NFEProducer
Copyright 2001-2005 INRIA All Rights Reserved.