|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jason.core.pool.AbstractTask | +--jason.core.pool.SocketTask
Created Fri May 24 15:17:41 2002
This class is a task for handling a user Socket. It will automatically close the Socket.
Field Summary | |
protected java.net.Socket |
socket
|
Constructor Summary | |
SocketTask(java.net.Socket socket)
|
Method Summary | |
java.net.Socket |
getSocket()
|
protected void |
run()
User must override this method and inserts its handling code |
void |
runTask()
Run the user code and close the socket |
Methods inherited from class jason.core.pool.AbstractTask |
getTaskContext, init |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.net.Socket socket
Constructor Detail |
public SocketTask(java.net.Socket socket)
Method Detail |
public void runTask()
runTask
in interface Task
runTask
in class AbstractTask
protected void run()
run
in class AbstractTask
public java.net.Socket getSocket()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |