|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An object implementing this interface provides methods to detect failed active objects by sending heartbeat messages. An internal thread can be started so as to periodically test a set of active objects. This server is an RMI object.
Field Summary | |
static int |
IS_DEAD
This value is return by a dead but reachable active object that receive a heartbeat message. |
static int |
OK
This value is return by an alive and reachable active object that receive a heartbeat message. |
Method Summary | |
void |
forceDetection()
Force a failure detection even if the failure detector thread is waiting. |
boolean |
isUnreachable(UniversalBody body)
The fault detector test the reachability of the active object body by sending a heartbeat message to body. |
void |
startFailureDetector(LocationServer ls,
RecoveryProcess rp)
Start the tread that periodically test the reachability of objects that are registred in the location server ls. |
void |
stopFailureDetector()
Stop the the failure detector thread. |
void |
suspendFailureDetector()
Temporarily suspend the failure detector thread. |
Field Detail |
public static final int OK
public static final int IS_DEAD
Method Detail |
public boolean isUnreachable(UniversalBody body) throws java.rmi.RemoteException
body
- the tested active object
java.rmi.RemoteException
public void startFailureDetector(LocationServer ls, RecoveryProcess rp) throws java.rmi.RemoteException
ls
- the location server that localizes objects to testrp
- the recovery process to notice if a failure is detected
java.rmi.RemoteException
public void suspendFailureDetector() throws java.rmi.RemoteException
java.rmi.RemoteException
public void stopFailureDetector() throws java.rmi.RemoteException
java.rmi.RemoteException
public void forceDetection() throws java.rmi.RemoteException
java.rmi.RemoteException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |