|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
networking.base.ForkedThread
networking.base.SocketThread
networking.client.ClientThread
networking.client.ClientFileThread
class ClientFileThread
ClientFileThread - this class represents a thread interacting with FileServer and client for transferring files
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
protected java.io.File |
m_file
File object |
private FileTransfer |
m_ftr
File transfer object |
protected IFileClient |
m_master
Master client |
| Fields inherited from class networking.base.SocketThread |
|---|
s_timeSleep |
| Fields inherited from class networking.base.ForkedThread |
|---|
CHILD, m_fork, NONE, PARENT |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
ClientFileThread(java.io.File file,
IFileClient master,
IFileTransferListener listener,
IFileTransferController controller)
Construct new ClientThread object |
|
| Method Summary | |
|---|---|
protected void |
error(java.lang.Exception e)
Report error |
protected void |
log(java.lang.String s)
Logging routine |
protected void |
processMessage(Message msg)
Process a message |
void |
run()
|
| Methods inherited from class networking.client.ClientThread |
|---|
init |
| Methods inherited from class networking.base.SocketThread |
|---|
deinit, enque, exit, getIn, getOut, recv, run1, send, setSocket, setTimeOut, wait |
| 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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected IFileClient m_master
protected java.io.File m_file
private FileTransfer m_ftr
| Constructor Detail |
|---|
public ClientFileThread(java.io.File file,
IFileClient master,
IFileTransferListener listener,
IFileTransferController controller)
file - filemaster - IFileClient objectlister - IFileTransferListener objectcontroller - IFileTransferController object| Method Detail |
|---|
protected void processMessage(Message msg)
throws java.lang.Exception
SocketThread
processMessage in class SocketThreadmsg - message
java.lang.Exceptionprotected void log(java.lang.String s)
s - log messagepublic void run()
run in interface java.lang.Runnablerun in class ForkedThreadprotected void error(java.lang.Exception e)
SocketThread
error in class SocketThreade - exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2009 Alexey Veremenko. All rights reserved.