SOMA.network.connection
Interface Daemon

All Known Implementing Classes:
Connection, ConnectionServer, AgentWorker

public abstract interface Daemon

Interfaccia per la gestione di un demone generico.

Author:
Livio Profiri
See Also:
DaemonExplorerItem

Field Summary
static int ERROR
          Demone in condizione di errore.
static int OFF
          Demone disattivo.
static int ON
          Demone attivo.
 
Method Summary
 int getStatus()
          Restutuisce lo stato del demone.
 void start()
          Avvio del demone.
 void stop()
          Arresto del demone.
 

Field Detail

ON

public static final int ON
Demone attivo.

OFF

public static final int OFF
Demone disattivo.

ERROR

public static final int ERROR
Demone in condizione di errore.
Method Detail

start

public void start()
           throws java.lang.Exception
Avvio del demone.

stop

public void stop()
          throws java.lang.Exception
Arresto del demone.

getStatus

public int getStatus()
Restutuisce lo stato del demone.
Gli stati previsti da questa interfaccia sono ON, OFF ed ERROR. Se necessario le classi che implementano l'interfaccia ne aggiungeranno altri.