1 18 package net.sf.drftpd.slave; 19 20 import java.io.IOException ; 21 import java.rmi.Remote ; 22 import java.rmi.RemoteException ; 23 24 25 29 public interface Transfer extends Remote { 30 public static final char TRANSFER_RECEIVING_UPLOAD='R'; 31 public static final char TRANSFER_SENDING_DOWNLOAD='S'; 32 public static final char TRANSFER_THROUGHPUT='A'; 33 public static final char TRANSFER_UNKNOWN='U'; 34 35 public void abort() throws RemoteException ; 36 public long getChecksum() throws RemoteException ; 37 38 41 public long getElapsed() throws RemoteException ; 42 43 46 public int getLocalPort() throws RemoteException ; 47 public TransferStatus getStatus() throws RemoteException ; 48 49 52 public long getTransfered() throws RemoteException ; 53 54 57 public int getXferSpeed() throws RemoteException ; 58 public TransferStatus receiveFile(String dirname, char mode, String filename, long offset) throws RemoteException , IOException ; 59 public TransferStatus sendFile(String path, char mode, long resumePosition) throws RemoteException , IOException ; 60 } 61 | Popular Tags |