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

java.lang.Object
  extended byorg.objectweb.proactive.core.body.proxy.AbstractProxy
All Implemented Interfaces:
Handlerizable, Proxy, java.io.Serializable
Direct Known Subclasses:
AbstractBodyProxy, ProxyForGroup

public abstract class AbstractProxy
extends java.lang.Object
implements Proxy, java.io.Serializable

See Also:
Serialized Form

Field Summary
protected static org.apache.log4j.Logger logger
           
 
Constructor Summary
AbstractProxy()
           
 
Method Summary
 void clearHandlersLevel()
          Clear the local map of handlers
 java.lang.String getHandlerizableInfo()
          Get information about the handlerizable object
 java.util.HashMap getHandlersLevel()
          Give a reference to a local map of handlers
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.
protected static boolean isOneWayCall(MethodCall mc)
          Returns a boolean saying whether the methode is one-way or not.
 void setExceptionHandler(Handler handler, java.lang.Class exception)
          Set a new handler within the table of the Handlerizable Object
 Handler unsetExceptionHandler(java.lang.Class exception)
          Remove a handler from the table of the Handlerizable Object
 
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
 

Field Detail

logger

protected static org.apache.log4j.Logger logger
Constructor Detail

AbstractProxy

public AbstractProxy()
Method Detail

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 :

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

Returns:
true if and only if the method call is one way

getHandlerizableInfo

public java.lang.String getHandlerizableInfo()
                                      throws java.io.IOException
Get information about the handlerizable object

Specified by:
getHandlerizableInfo in interface Handlerizable
Returns:
information about the handlerizable object
Throws:
java.io.IOException

getHandlersLevel

public java.util.HashMap getHandlersLevel()
                                   throws java.io.IOException
Give a reference to a local map of handlers

Specified by:
getHandlersLevel in interface Handlerizable
Returns:
A reference to a map of handlers
Throws:
java.io.IOException

clearHandlersLevel

public void clearHandlersLevel()
                        throws java.io.IOException
Clear the local map of handlers

Specified by:
clearHandlersLevel in interface Handlerizable
Throws:
java.io.IOException

setExceptionHandler

public void setExceptionHandler(Handler handler,
                                java.lang.Class exception)
                         throws java.io.IOException
Set a new handler within the table of the Handlerizable Object

Specified by:
setExceptionHandler in interface Handlerizable
Parameters:
handler - A handler associated with a class of non functional exception.
exception - A class of non functional exception. It is a subclass of NonFunctionalException.
Throws:
java.io.IOException

unsetExceptionHandler

public Handler unsetExceptionHandler(java.lang.Class exception)
                              throws java.io.IOException
Remove a handler from the table of the Handlerizable Object

Specified by:
unsetExceptionHandler in interface Handlerizable
Parameters:
exception - A class of non functional exception. It is a subclass of NonFunctionalException.
Returns:
The removed handler or null
Throws:
java.io.IOException


Copyright ? October 2004 INRIA All Rights Reserved.