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, yield
public 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.Exception
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void startFile(java.lang.String file, long size)
SSHFileTransferProgress
startFile
in interface SSHFileTransferProgress
file
- name of file to transfersize
- file sizepublic void startDir(java.lang.String file)
SSHFileTransferProgress
startDir
in interface SSHFileTransferProgress
file
- name of directorypublic void endFile()
SSHFileTransferProgress
endFile
in interface SSHFileTransferProgress
public void endDir()
SSHFileTransferProgress
endDir
in interface SSHFileTransferProgress
public void progress(long size)
Progress
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener