|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--com.debianmirror.server.Worker
The Worker is responsible for talking to the client.
This includes receiving the request header and sending the
file or any given error back to the client.
| Field Summary |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
Worker(WorkerImplFactory factory,
WorkerCache cache)
Creates a new Worker instance with the specified factory and cache. |
|
| Method Summary | |
void |
die()
Kills the Worker gracefully. |
void |
run()
Main Worker method. |
void |
setSocket(java.net.Socket s)
Does assign a socket to this Worker. |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Worker(WorkerImplFactory factory,
WorkerCache cache)
factory - the factory to create WorkerImpl fromcache - the cache to return to after the assigned work is done| Method Detail |
public void die()
Worker gracefully.
public void run()
WorkerImpl to handle the work.
After the work is done it returns itself to the assigned WorkerCache.
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void setSocket(java.net.Socket s)
s - the new Socket
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||