|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
com.mindbright.sshcommon.SSHFileTransferGUIThreadSwing
Copies a bunch of files, optionally recursively, to or from the remote server while giving graphical feedback. This class is meant to be created from the GUI-thread. The actual file transfers will take place in a separate thread.
| Field Summary |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
SSHFileTransferGUIThreadSwing(MindTermApp client,
SSHFileTransfer fileXfer,
java.lang.String[] localFileList,
java.lang.String[] remoteFileList,
boolean recursive,
boolean background,
boolean toRemote,
SSHFileTransferDialogControl xferDialog)
Create the GUI and start copying the specified files. |
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
|
void |
endDir()
Called when all files in a directory have been transferred |
void |
endFile()
Called when a file has been successfully transferred |
void |
progress(long size)
Called to report the current progress. |
void |
run()
|
void |
startDir(java.lang.String file)
Called when the transfer starts to transfer all files in a directory. |
void |
startFile(java.lang.String file,
long size)
Called when a file starts to transfer |
| 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 SSHFileTransferGUIThreadSwing(MindTermApp client,
SSHFileTransfer fileXfer,
java.lang.String[] localFileList,
java.lang.String[] remoteFileList,
boolean recursive,
boolean background,
boolean toRemote,
SSHFileTransferDialogControl xferDialog)
throws java.lang.Exception
client - a connected SSH client which will be used for
transportfileXfer - class resposible for transferring the fileslocalFileList - List of local filesremoteFileList - List of remote filesrecursive - true if the transfer should include the
contents of directories.background - run in the backgroundtoRemote - true if the files should be copied from the
local machine to the remote.xferDialog - dialog causing the file transfer| Method Detail |
public void run()
run in interface java.lang.Runnable
public void startFile(java.lang.String file,
long size)
SSHFileTransferProgress
startFile in interface SSHFileTransferProgressfile - name of file to transfersize - file sizepublic void startDir(java.lang.String file)
SSHFileTransferProgress
startDir in interface SSHFileTransferProgressfile - name of directorypublic void endFile()
SSHFileTransferProgress
endFile in interface SSHFileTransferProgresspublic void endDir()
SSHFileTransferProgress
endDir in interface SSHFileTransferProgresspublic void progress(long size)
Progress
progress in interface Progresssize - the current progress. The range of possible values
depends on the class reporting the progress.public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||