Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.ssh
Class SSHFileTransferDaemon

java.lang.Object
  extended by java.lang.Thread
      extended by net.java.sip.communicator.impl.protocol.ssh.SSHFileTransferDaemon
All Implemented Interfaces:
Runnable

public class SSHFileTransferDaemon
extends Thread

Author:
Shobhit Jindal

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SSHFileTransferDaemon(ContactSSH sshContact, ProtocolProviderServiceSSHImpl ppService)
          Creates a new instance of SSHFileTransferDaemon
 
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SSHFileTransferDaemon

public SSHFileTransferDaemon(ContactSSH sshContact,
                             ProtocolProviderServiceSSHImpl ppService)
Creates a new instance of SSHFileTransferDaemon

Parameters:
sshContact - The contact of the remote machine
ppService - The current ssh protocol provider
Method Detail

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 file
localPath - - 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 file
localPath - - 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.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.