|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.ObjectSOMA.network.connection.Connection
SOMA.network.connection.SelfConnection
Autoconnessione: esegue in locale i comandi spediti.
| Field Summary |
| Fields inherited from class SOMA.network.connection.Connection |
env, ErrorDescription, myDaemon, myObjectInputStream, myObjectOutputStream, mySocket, status |
| Fields inherited from interface SOMA.network.connection.Daemon |
ERROR, OFF, ON |
| Constructor Summary | |
SelfConnection(Environment env)
|
|
| Method Summary | |
java.lang.Object |
getStatus()
restituisce lo stato della connessione. |
void |
run()
Metodo vuoto. |
void |
send(Command c)
Esegue il comando. |
void |
start()
Metodo vuoto. |
void |
stop()
Metodo vuoto. |
java.lang.String |
toString()
|
| Methods inherited from class SOMA.network.connection.Connection |
getIn, getOut |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SelfConnection(Environment env)
| Method Detail |
public java.lang.Object getStatus()
Connection
getStatus in interface DaemongetStatus in class Connection
public void start()
throws ConnectionException
start in interface Daemonstart in class ConnectionConnectionException
public void stop()
throws java.lang.Exception
stop in interface Daemonstop in class Connectionjava.lang.Exceptionpublic java.lang.String toString()
toString in class Connection
public void send(Command c)
throws java.io.IOException,
ConnectionException
send in class Connectionjava.io.IOException
ConnectionExceptionpublic void run()
run in interface java.lang.Runnablerun in class Connection
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||