cz.cuni.amis.pogamut.base.agent
Interface IControllable


@MXBean
public interface IControllable

Interface providing a control methods for the implementors. Used almost everywhere in the Gavial libray.

Must remain compatible with IStartable.


Method Summary
 void kill()
          Kills the object - interrupt ruthlessly any work it might be doing.
 void start()
          Starts the object.
 void stop()
          Tries to stop the work of this object carefully.
 

Method Detail

start

void start()
           throws PogamutException
Starts the object. If no exception is thrown we assume that the object has been correctly started and can be used.

May be blocking!

Throws:
PogamutException

stop

void stop()
Tries to stop the work of this object carefully.

May be blocking!


kill

void kill()
Kills the object - interrupt ruthlessly any work it might be doing.

This method should interrupt any threads the object may have.

May be blocking!