SOMA.network.connection
Interface Daemon

All Known Subinterfaces:
IServer, IServerVideo, IServerVideoLocalCacheEnabled, IServiceProvider
All Known Implementing Classes:
ActionPlace, AgentWorker, Connection, ConnectionServer, MetadataServiceConnectionMaker, MonitoringManager, PlaceWindow, ProfileContainerConnectionMaker, ServerVideoBase, ServerVideoLocalCacheEnabled, UpdateCertificate, UpdateDaemon

public interface Daemon

Interfaccia per la gestione di un demone generico. * @see SOMA.network.connection.DaemonExplorerItem * @author Livio Profiri


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

Field Detail

ON

public static final java.lang.Object ON

Demone attivo.

Per lo stato di un daemon si usa un generiso Object in modo da non moltiplicare i nomi e da aumentare la flessibilitą.


OFF

public static final java.lang.Object OFF
Demone disattivo.


ERROR

public static final java.lang.Object ERROR
Demone in condizione di errore.

Method Detail

start

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

Throws:
java.lang.Exception

stop

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

Throws:
java.lang.Exception

getStatus

public java.lang.Object 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.



Copyright © 2004 Luca Foschini