01: package org.drftpd.tests;
02:
03: import java.io.FileNotFoundException;
04: import java.io.IOException;
05: import java.util.Collection;
06:
07: import net.sf.drftpd.NoAvailableSlaveException;
08: import net.sf.drftpd.master.BaseFtpConnection;
09: import net.sf.drftpd.master.config.ConfigInterface;
10: import net.sf.drftpd.mirroring.Job;
11:
12: import org.drftpd.GlobalContext;
13: import org.drftpd.master.RemoteSlave;
14: import org.drftpd.remotefile.LinkedRemoteFileInterface;
15: import org.drftpd.slaveselection.SlaveSelectionManagerInterface;
16:
17: /**
18: * @author zubov
19: * @version $Id: DummySlaveSelectionManager.java 874 2004-12-23 17:43:28Z mog $
20: */
21: public class DummySlaveSelectionManager implements
22: SlaveSelectionManagerInterface {
23: public DummySlaveSelectionManager() {
24: super ();
25: }
26:
27: public void reload() throws FileNotFoundException, IOException {
28: }
29:
30: public RemoteSlave getASlave(Collection rslaves, char direction,
31: BaseFtpConnection conn, LinkedRemoteFileInterface file)
32: throws NoAvailableSlaveException {
33: throw new UnsupportedOperationException();
34: }
35:
36: public RemoteSlave getASlaveForMaster(
37: LinkedRemoteFileInterface file, ConfigInterface cfg)
38: throws NoAvailableSlaveException {
39: throw new UnsupportedOperationException();
40: }
41:
42: public RemoteSlave getASlaveForJobDownload(Job job)
43: throws NoAvailableSlaveException {
44: throw new UnsupportedOperationException();
45: }
46:
47: public RemoteSlave getASlaveForJobUpload(Job job,
48: RemoteSlave sourceSlave) throws NoAvailableSlaveException {
49: throw new UnsupportedOperationException();
50: }
51:
52: public GlobalContext getGlobalContext() {
53: throw new UnsupportedOperationException();
54: }
55: }
|