org.objectweb.proactive.core.exceptions
Interface Handlerizable

All Known Subinterfaces:
Body, BodyProxy, Future, LocalFuture, Proxy, RemoteBody, UniversalBody
All Known Implementing Classes:
AbstractBody, AbstractBodyProxy, AbstractProxy, AbstractUniversalBody, FutureProxy, HttpRemoteBodyImpl, IbisRemoteBodyAdapter, JiniBodyAdapter, ProxyForGroup, RemoteBodyAdapter, RemoteBodyAdapter, RemoteBodyImpl, UniversalBodyWrapper

public interface Handlerizable

An interface to add handlerizable behaviour to reified object

Since:
ProActive 2.0
Version:
1.0, 2004/07/01
Author:
ProActive Team

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
 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
 

Method Detail

getHandlerizableInfo

public java.lang.String getHandlerizableInfo()
                                      throws java.io.IOException
Get 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

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

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

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

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.