net.java.sip.communicator.impl.protocol.ssh
Class SSHFileTransferDaemon
java.lang.Object
java.lang.Thread
net.java.sip.communicator.impl.protocol.ssh.SSHFileTransferDaemon
- All Implemented Interfaces:
- Runnable
public class SSHFileTransferDaemon
- extends Thread
- Author:
- Shobhit Jindal
|
Method Summary |
void |
downloadFile(String remotePath,
String localPath)
This method is called when a file is to be downloaded from remote machine
to local machine |
void |
run()
Background thread for the file transfer |
void |
uploadFile(String remotePath,
String localPath)
This method is called when file is to be transfered from local machine
to remote machine |
| Methods inherited from class java.lang.Thread |
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 |
SSHFileTransferDaemon
public SSHFileTransferDaemon(ContactSSH sshContact,
ProtocolProviderServiceSSHImpl ppService)
- Creates a new instance of SSHFileTransferDaemon
- Parameters:
sshContact - The contact of the remote machineppService - The current ssh protocol provider
uploadFile
public void uploadFile(String remotePath,
String localPath)
- This method is called when file is to be transfered from local machine
to remote machine
- Parameters:
remotePath - - the identifier for the remote filelocalPath - - the identifier for the local file
downloadFile
public void downloadFile(String remotePath,
String localPath)
- This method is called when a file is to be downloaded from remote machine
to local machine
- Parameters:
remotePath - - the identifier for the remote filelocalPath - - the identifier for the local file
run
public void run()
- Background thread for the file transfer
- Specified by:
run in interface Runnable- Overrides:
run in class Thread
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.