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

All Known Implementing Classes:
HandlerNonFunctionalException

public interface IHandler

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_activeObjectLevel
          Remote and Mobile Object level gives the opportunity to associated more specific handlers to remote objects.
static int ID_codeLevel
          Code level allows temporary handlers in the code.
static int ID_defaultLevel
          Default level is static and initialized in core of applications.
static int ID_futureLevel
          Future level is highly used with asynchronous remote method calls.
static int ID_proxyLevel
          Proxy level is used to define reliable strategies for references to active objects.
static int ID_VMLevel
          Virtual Machine level is the first level created dynamcally.
 
Method Summary
 void handle(NonFunctionalException e)
          Provide a treatment for the handled exception(s)
 boolean isHandling(NonFunctionalException e)
          Is the exception reliable for the handler ?
 

Field Detail

ID_defaultLevel

public static final int ID_defaultLevel
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_VMLevel

public static final int ID_VMLevel
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_activeObjectLevel

public static final int ID_activeObjectLevel
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_proxyLevel

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

See Also:
Constant Field Values

ID_futureLevel

public static final int ID_futureLevel
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_codeLevel

public static final int ID_codeLevel
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)
Provide a treatment for the handled exception(s)

Parameters:
e - The exception to be handled


Copyright © April 2004 INRIA All Rights Reserved.