org.objectweb.proactive.core.exceptions.handler
Interface Handler

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
HandlerNonFunctionalException

public interface Handler
extends java.io.Serializable

Interface for handlers of Non Functional Exceptions

Since:
ProActive 0.9.3
Version:
1.0, 2002/07/08
Author:
ProActive Team

Field Summary
static int ID_Body
          Remote and Mobile Object level gives the opportunity to associated more specific handlers to remote objects.
static int ID_Code
          Code level allows temporary handlers in the code.
static int ID_Default
          Default level is static and initialized in core of applications.
static int ID_Future
          Future level is highly used with asynchronous remote method calls.
static int ID_Proxy
          Proxy level is used to define reliable strategies for references to active objects.
static int ID_VM
          Virtual Machine level is the first level created dynamcally.
 
Method Summary
 void handle(NonFunctionalException e, java.lang.Object info)
          Provide a treatment for the handled exception(s)
 void handle(NonFunctionalException nfe, java.lang.Object info, java.lang.Exception e)
          Provide a treatment for the handled exception(s)
 boolean isHandling(NonFunctionalException e)
          Is the exception reliable for the handler ?
 

Field Detail

ID_Default

public static final int ID_Default
Default level is static and initialized in core of applications. This level provide a basic handling strategy for every non-functional exception.

See Also:
Constant Field Values

ID_VM

public static final int ID_VM
Virtual Machine level is the first level created dynamcally. It offers the possibility to define a general handling behavior for every virtual machine environment. In the scope of distributed application, it's pretty useful with client/server application which required different recovery mechanisms.

See Also:
Constant Field Values

ID_Body

public static final int ID_Body
Remote and Mobile Object level gives the opportunity to associated more specific handlers to remote objects. Nevertheless, we have to take into account the mobility of such objects. Handlers should migrate along with their associated entity.

See Also:
Constant Field Values

ID_Proxy

public static final int ID_Proxy
Proxy level is used to define reliable strategies for references to active objects.

See Also:
Constant Field Values

ID_Future

public static final int ID_Future
Future level is highly used with asynchronous remote method calls. It appears indeed that most of the failure occur during such calls.

See Also:
Constant Field Values

ID_Code

public static final int ID_Code
Code level allows temporary handlers in the code. We keep such a level to let some functional treatments of non functional exceptions possible.

See Also:
Constant Field Values
Method Detail

isHandling

public boolean isHandling(NonFunctionalException e)
Is the exception reliable for the handler ?

Parameters:
e - The exception checked for handler reliability

handle

public void handle(NonFunctionalException e,
                   java.lang.Object info)
Provide a treatment for the handled exception(s)

Parameters:
e - The exception to be handled

handle

public void handle(NonFunctionalException nfe,
                   java.lang.Object info,
                   java.lang.Exception e)
            throws java.lang.Exception
Provide a treatment for the handled exception(s)

Parameters:
e - The exception to be handled
Throws:
java.lang.Exception


Copyright ? October 2004 INRIA All Rights Reserved.