org.objectweb.proactive.core.exceptions
Class HandlerManager

java.lang.Object
  extended byorg.objectweb.proactive.core.exceptions.HandlerManager

public class HandlerManager
extends java.lang.Object

A manager for NFE.

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

Field Summary
protected static java.util.HashMap handlerAssociatedToBodyObject
          Store automatic associations between proxy and handler
protected static java.util.HashMap handlerAssociatedToFutureObject
          Store automatic associations between proxy and handler
protected static java.util.HashMap handlerAssociatedToProxyObject
          Store automatic associations between proxy and handler
protected static boolean isGraph
           
protected static boolean isQuiet
           
static org.apache.log4j.Logger loggerNFE
           
 
Constructor Summary
HandlerManager()
           
 
Method Summary
protected static void clearHandlerPolicy()
          Clear handler policy
static void handleWindow(NonFunctionalException nfe, Handler h, java.lang.Object info)
          Create a graphical windows to display handlers
static void initialize()
          Default Constructor for HandlerManager.
static void initialize(java.lang.String XMLdesc)
          Construct a new manager with the given handler policy
static boolean isGraph()
           
static java.util.HashMap isHandlerAssociatedToBodyObject(java.lang.Object obj)
          Search and return the handler that must me automatically associated to the body of active object
static java.util.HashMap isHandlerAssociatedToFutureObject(java.lang.Object obj)
          Search and return the handler that must me automatically associated to the future of active object
static java.util.HashMap isHandlerAssociatedToProxyObject(java.lang.Object obj)
          Search and return the handler that must me automatically associated to the proxy of active object
static boolean isQuiet()
           
static void loadHandlerPolicy(java.lang.String XMLdesc)
          Load a handler policy from a file.
static void setGraph(boolean graph)
           
static void setQuiet(boolean quiet)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

loggerNFE

public static org.apache.log4j.Logger loggerNFE

isQuiet

protected static boolean isQuiet

isGraph

protected static boolean isGraph

handlerAssociatedToProxyObject

protected static java.util.HashMap handlerAssociatedToProxyObject
Store automatic associations between proxy and handler


handlerAssociatedToBodyObject

protected static java.util.HashMap handlerAssociatedToBodyObject
Store automatic associations between proxy and handler


handlerAssociatedToFutureObject

protected static java.util.HashMap handlerAssociatedToFutureObject
Store automatic associations between proxy and handler

Constructor Detail

HandlerManager

public HandlerManager()
Method Detail

isGraph

public static boolean isGraph()
Returns:
Returns the isGraph.

setGraph

public static void setGraph(boolean graph)
Parameters:
graph - The isGraph to set.

isQuiet

public static boolean isQuiet()
Returns:
Returns the isQuiet.

setQuiet

public static void setQuiet(boolean quiet)
Parameters:
quiet - The isQuiet to set.

handleWindow

public static void handleWindow(NonFunctionalException nfe,
                                Handler h,
                                java.lang.Object info)
Create a graphical windows to display handlers


initialize

public static void initialize()
Default Constructor for HandlerManager. A policy is set directly in this constructor.


initialize

public static void initialize(java.lang.String XMLdesc)
Construct a new manager with the given handler policy

Parameters:
XMLdesc - the file that contains the handler policy

clearHandlerPolicy

protected static void clearHandlerPolicy()
Clear handler policy


loadHandlerPolicy

public static void loadHandlerPolicy(java.lang.String XMLdesc)
Load a handler policy from a file.

Parameters:
XMLdesc - the file that contains the handler policy

isHandlerAssociatedToBodyObject

public static java.util.HashMap isHandlerAssociatedToBodyObject(java.lang.Object obj)
Search and return the handler that must me automatically associated to the body of active object

Parameters:
obj - is an active object

isHandlerAssociatedToFutureObject

public static java.util.HashMap isHandlerAssociatedToFutureObject(java.lang.Object obj)
Search and return the handler that must me automatically associated to the future of active object

Parameters:
obj - is an active object

isHandlerAssociatedToProxyObject

public static java.util.HashMap isHandlerAssociatedToProxyObject(java.lang.Object obj)
Search and return the handler that must me automatically associated to the proxy of active object

Parameters:
obj - is an active object


Copyright ? April 2005 INRIA All Rights Reserved.