com.mindbright.sshcommon
public final class SSHFileTransferGUIThread extends java.lang.Thread implements SSHFileTransferProgress, java.awt.event.ActionListener
| Constructor and Description |
|---|
SSHFileTransferGUIThread(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.
|
| Modifier and Type | Method and Description |
|---|---|
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
|
activeCount, checkAccess, clone, 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, yieldpublic SSHFileTransferGUIThread(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 transferjava.lang.Exceptionpublic void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void startFile(java.lang.String file,
long size)
SSHFileTransferProgressstartFile in interface SSHFileTransferProgressfile - name of file to transfersize - file sizepublic void startDir(java.lang.String file)
SSHFileTransferProgressstartDir in interface SSHFileTransferProgressfile - name of directorypublic void endFile()
SSHFileTransferProgressendFile in interface SSHFileTransferProgresspublic void endDir()
SSHFileTransferProgressendDir in interface SSHFileTransferProgresspublic void progress(long size)
Progresspublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListener