stella.rmi
Interface Alive

All Superinterfaces:
Remote
All Known Implementing Classes:
AdapterMaster, AuxiliaryMaster, CalibrationMaster, DomeMaster, EnvironmentMaster, GenericMaster, GenericMaster.Standalone, SesMaster, ShelterMaster, TelescopeMaster, TestReceiver, WifsipMaster

public interface Alive
extends Remote

This interface should be implemented by all classes that are checked regularly by a watchdog. Normally, the watchdog resides on the same machine as the watched program, but in principle also remote excess is possible.

The watchdog calls the only method defined in this interface, isAlive() which should return true, if everything is well. A failure to connect to the watched java-VM will prompt the watchdog to reboot the computer (or, restart the watched program).


Method Summary
 boolean isAlive()
          The only method defined in this interface.
 

Method Detail

isAlive

boolean isAlive()
                throws RemoteException
The only method defined in this interface. Normally, it is called from a watchdog program running at the same host as the implementing class, but in a different java-VM. If the implementing class does return false, or if an Exception is thrown, the watchdog timer is prompted to reboot the entire system.

Returns:
True if everything is normal.
Throws:
RemoteException