|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
com.joctopus.work.FileRecieverHandler
public class FileRecieverHandler
This class is a handler that performs file recieve operation.
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 | |
---|---|
FileRecieverHandler(FileRecieverServer fileRecieverServer,
java.lang.Integer ID,
java.lang.StringBuffer message,
java.lang.String senderipaddress)
initialize the file reciever handler thread. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Handling events generated by RecieveFileChatter. |
void |
confirmStopFileTransfer(java.lang.String message)
Asks the user wheather to stop the file transfer, If true then > set download status flag to false > show download cancelled label to user > hide progress bar,cancel and accept button. |
void |
newDownloadQueue(int index)
Starts a new download queue at given index in pools of FileReciever thread |
void |
releaseResources()
removes the class ID from busypools in FileRecieverServer and shuts the subfilerecieverserver |
void |
run()
start the file transfer operation |
void |
startDownloadQueue()
Starts download Queue This method is called only once in entire file reception operation. |
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 FileRecieverHandler(FileRecieverServer fileRecieverServer, java.lang.Integer ID, java.lang.StringBuffer message, java.lang.String senderipaddress)
fileRecieverServer
- FileRecieverServer ThreadID
- uniquely identifies the thread in pool of threads maintained by FileRecieverServermessage
- The message recieved from sender.senderipaddress
- IP Address of sender.Method Detail |
---|
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
e
- ActionEventpublic void confirmStopFileTransfer(java.lang.String message)
message
- Message to be displayed on confirm dialog.public void startDownloadQueue()
public void newDownloadQueue(int index)
index
- index.public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void releaseResources()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |