|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
com.joctopus.work.FileTransferService
public class FileTransferService
Represents the single thread in pool of threads, this class services the file to client.
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 | |
---|---|
FileTransferService(java.lang.Integer ID,
JOctopusConsole chatterConsole,
FileTransferServer fserver,
java.nio.channels.SocketChannel socketChannel)
|
Method Summary | |
---|---|
JOctopusConsole |
getChatterConsole()
|
java.lang.String |
getFilePath()
|
java.lang.String |
getHeader()
|
java.lang.Integer |
getID()
|
java.lang.StringBuffer |
getMessage()
|
int |
getPort()
|
java.nio.channels.SocketChannel |
getSocketChannel()
|
void |
run()
|
void |
setSocketChannel(java.nio.channels.SocketChannel socketChannel)
|
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 |
Constructor Detail |
---|
public FileTransferService(java.lang.Integer ID, JOctopusConsole chatterConsole, FileTransferServer fserver, java.nio.channels.SocketChannel socketChannel)
ID
- which represents the index of this thread in pool, it uniquely identifies the thread so that this thread can be disposed
after servicing client.chatterConsole
- window.socketChannel
- fserver
- is FileTransferServer ObjectMethod Detail |
---|
public java.nio.channels.SocketChannel getSocketChannel()
public void setSocketChannel(java.nio.channels.SocketChannel socketChannel)
socketChannel
- set the SocketChannel, to which this thread will service.public java.lang.Integer getID()
public java.lang.String getFilePath()
public java.lang.String getHeader()
public java.lang.StringBuffer getMessage()
public int getPort()
public JOctopusConsole getChatterConsole()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |