|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
buscas.ClientHandlerThread
public class ClientHandlerThread
Entidade responsavel por receber e tratar o pedidos dos varios clientes.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
ClientHandlerThread(Server playground,
java.net.ServerSocket conn,
java.lang.String ipSecuritas,
int portoSecuritas)
Construtor que permite iniciar os valores a serem usados pela execucao da thread |
Method Summary | |
---|---|
void |
result(java.io.File result)
Implementacao dos metodos da interface SearchOwner . |
void |
run()
Metodo a execuar pela thread. |
void |
searchFinished()
Implementacao dos metodos da interface SearchOwner . |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ClientHandlerThread(Server playground, java.net.ServerSocket conn, java.lang.String ipSecuritas, int portoSecuritas)
playground
- Servidor onde esta thread se encontra a correr.conn
- Socket de servidor onde serao esperadas ligacoes a tratar.ipSecuritas
- IP do servico Securitas.portoSecuritas
- Porto do servico Securitas.
bud.exceptions.ClientWithoutServerException
- Caso o servidor passado seja nulo.Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void result(java.io.File result)
SearchOwner
.
result
in interface SearchOwner
result
- Uma abstracao que representa o ficheiro encontradopublic void searchFinished() throws bud.exceptions.NullOutputStreamException
SearchOwner
.
searchFinished
in interface SearchOwner
bud.exceptions.NullOutputStreamException
- Se a stream de escrita nao for valida.SearchOwner
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |