1 18 package net.sf.drftpd.slave; 19 20 import java.io.IOException ; 21 import java.net.InetSocketAddress ; 22 import java.rmi.Remote ; 23 import java.rmi.RemoteException ; 24 25 import net.sf.drftpd.SFVFile; 26 import net.sf.drftpd.remotefile.LinkedRemoteFile; 27 28 33 public interface Slave extends Remote { 34 public long checkSum( 35 String path) 36 throws RemoteException , IOException ; 37 38 public Transfer listen(boolean encrypted) throws RemoteException , IOException ; 39 public Transfer connect(InetSocketAddress addr, boolean encrypted) throws RemoteException ; 40 43 public SlaveStatus getSlaveStatus() throws RemoteException ; 44 45 48 public void ping() throws RemoteException ; 49 50 public SFVFile getSFVFile(String path) 51 throws RemoteException , IOException ; 52 53 56 public void rename(String from, String toDirPath, String toName) 57 throws RemoteException , IOException ; 58 59 62 public void delete(String path) throws RemoteException , IOException ; 63 66 public LinkedRemoteFile getSlaveRoot() throws IOException ; 67 } 68 | Popular Tags |