org.objectweb.proactive.core.body.ft.util.recovery
Interface RecoveryProcess

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
GlobalFTServer

public interface RecoveryProcess
extends java.rmi.Remote

An object implementing this interface provides recovery methods. This server is an RMI object.

Since:
ProActive 2.2
Author:
cdelbe

Field Summary
static int FAILED
          Active objects possible states.
static int RECOVERING
           
static int RUNNING
           
 
Method Summary
 void broadcastFTEvent(FTMessage fte)
          Broadcast the event fte to every activity registered in the Recovery process
 void failureDetected(UniqueID id)
          Notify the recovery process that the body passed in paramater is suspected to be failed.
 void register(UniqueID id)
          Register the calling OA.
 void updateState(UniqueID id, int state)
          Update the current state of the active object id.
 

Field Detail

FAILED

public static final int FAILED
Active objects possible states.

See Also:
Constant Field Values

RECOVERING

public static final int RECOVERING
See Also:
Constant Field Values

RUNNING

public static final int RUNNING
See Also:
Constant Field Values
Method Detail

register

public void register(UniqueID id)
              throws java.rmi.RemoteException
Register the calling OA. Each OA is registred on creation by newActive. Default state is RUNNING.

Parameters:
id - the registered body id
Throws:
java.rmi.RemoteException

failureDetected

public void failureDetected(UniqueID id)
                     throws java.rmi.RemoteException
Notify the recovery process that the body passed in paramater is suspected to be failed.

Parameters:
id - the id of the suspected OA
Throws:
java.rmi.RemoteException

updateState

public void updateState(UniqueID id,
                        int state)
                 throws java.rmi.RemoteException
Update the current state of the active object id. Its state can be failed, recovering or running.

Parameters:
id - id of the OA to update
state - state of the active object
Throws:
java.rmi.RemoteException

broadcastFTEvent

public void broadcastFTEvent(FTMessage fte)
                      throws java.rmi.RemoteException
Broadcast the event fte to every activity registered in the Recovery process

Parameters:
fte - the event to broadcast
Throws:
java.rmi.RemoteException


Copyright ? April 2005 INRIA All Rights Reserved.