|
|||||||||||
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 java.lang.Integer |
IS_DEAD
This value is return by a dead but reachable active object that receive a heartbeat message. |
static java.lang.Integer |
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. |
void |
initialize()
Reinit the state of the fault detector |
boolean |
isUnreachable(UniversalBody body)
The fault detector test the reachability of the active object body by sending a heartbeat message to body. |
void |
startFailureDetector()
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 java.lang.Integer OK
public static final java.lang.Integer IS_DEAD
Method Detail |
public boolean isUnreachable(UniversalBody body) throws java.rmi.RemoteException
body
- the tested active object
java.rmi.RemoteException
public void startFailureDetector() throws java.rmi.RemoteException
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
public void initialize() throws java.rmi.RemoteException
java.rmi.RemoteException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |