001: package org.drftpd.tests;
002:
003: import net.sf.drftpd.SlaveUnavailableException;
004:
005: import org.drftpd.GlobalContext;
006: import org.drftpd.LightSFVFile;
007: import org.drftpd.SFVFile;
008:
009: import org.drftpd.id3.ID3Tag;
010: import org.drftpd.master.RemoteSlave;
011: import org.drftpd.master.RemoteTransfer;
012: import org.drftpd.remotefile.LinkedRemoteFile;
013: import org.drftpd.slave.RemoteIOException;
014: import org.drftpd.slave.SlaveStatus;
015: import org.drftpd.slave.TransferIndex;
016: import org.drftpd.slave.async.AsyncResponse;
017:
018: import java.io.BufferedReader;
019: import java.io.IOException;
020: import java.io.PrintWriter;
021:
022: import java.net.InetAddress;
023: import java.net.InetSocketAddress;
024: import java.net.Socket;
025:
026: /**
027: * @author zubov
028: * @version $Id: DummyRemoteSlave.java 1166 2005-03-31 03:12:35Z zubov $
029: */
030: public class DummyRemoteSlave extends RemoteSlave {
031: public DummyRemoteSlave(String name, GlobalContext gctx) {
032: super (name, gctx);
033: }
034:
035: public int getPort() {
036: return 10;
037: }
038:
039: public void fakeConnect() {
040: _errors = 0;
041: _lastNetworkError = System.currentTimeMillis();
042: }
043:
044: public boolean isOnline() {
045: // TODO Auto-generated method stub
046: return false;
047: }
048:
049: public LinkedRemoteFile getSlaveRoot()
050: throws SlaveUnavailableException, IOException {
051: // TODO Auto-generated method stub
052: return null;
053: }
054:
055: public void listenForInfoFromSlave() {
056: // TODO Auto-generated method stub
057: }
058:
059: public void connect(Socket socket, BufferedReader in)
060: throws IOException {
061: }
062:
063: public void disconnect() {
064: // TODO Auto-generated method stub
065: }
066:
067: public int fetchMaxPathFromIndex(String maxPathIndex)
068: throws SlaveUnavailableException {
069: // TODO Auto-generated method stub
070: return 0;
071: }
072:
073: public AsyncResponse fetchResponse(String index)
074: throws SlaveUnavailableException {
075: // TODO Auto-generated method stub
076: return null;
077: }
078:
079: public SlaveStatus fetchStatusFromIndex(String statusIndex)
080: throws SlaveUnavailableException {
081: // TODO Auto-generated method stub
082: return null;
083: }
084:
085: public void fetchAbortFromIndex(String abortIndex)
086: throws IOException, SlaveUnavailableException {
087: // TODO Auto-generated method stub
088: }
089:
090: public long fetchChecksumFromIndex(String index)
091: throws RemoteIOException, SlaveUnavailableException {
092: // TODO Auto-generated method stub
093: return 0;
094: }
095:
096: public ID3Tag fetchID3TagFromIndex(String index)
097: throws RemoteIOException, SlaveUnavailableException {
098: // TODO Auto-generated method stub
099: return null;
100: }
101:
102: public LightSFVFile fetchSFVFileFromIndex(String index)
103: throws RemoteIOException, SlaveUnavailableException {
104: // TODO Auto-generated method stub
105: return null;
106: }
107:
108: public String issueChecksumToSlave(String string)
109: throws SlaveUnavailableException {
110: // TODO Auto-generated method stub
111: return null;
112: }
113:
114: public String issueConnectToSlave(InetSocketAddress address,
115: boolean encryptedDataChannel)
116: throws SlaveUnavailableException {
117: // TODO Auto-generated method stub
118: return null;
119: }
120:
121: public String issueID3TagToSlave(String string)
122: throws SlaveUnavailableException {
123: // TODO Auto-generated method stub
124: return null;
125: }
126:
127: public String issueSFVFileToSlave(String string)
128: throws SlaveUnavailableException {
129: // TODO Auto-generated method stub
130: return null;
131: }
132:
133: public String issueListenToSlave(boolean encryptedDataChannel)
134: throws SlaveUnavailableException {
135: // TODO Auto-generated method stub
136: return null;
137: }
138:
139: public String issueMaxPathToSlave()
140: throws SlaveUnavailableException {
141: // TODO Auto-generated method stub
142: return null;
143: }
144:
145: public String issuePingToSlave() throws SlaveUnavailableException {
146: // TODO Auto-generated method stub
147: return null;
148: }
149:
150: public String issueReceiveToSlave(String name)
151: throws SlaveUnavailableException {
152: // TODO Auto-generated method stub
153: return null;
154: }
155:
156: public String issueTransferStatusToSlave(String transferIndex)
157: throws SlaveUnavailableException {
158: // TODO Auto-generated method stub
159: return null;
160: }
161:
162: public String issueAbortToSlave(RemoteTransfer transferIndex)
163: throws SlaveUnavailableException {
164: // TODO Auto-generated method stub
165: return null;
166: }
167:
168: public String issueSendToSlave(String name)
169: throws SlaveUnavailableException {
170: // TODO Auto-generated method stub
171: return null;
172: }
173:
174: public String issueStatusToSlave() throws SlaveUnavailableException {
175: // TODO Auto-generated method stub
176: return null;
177: }
178:
179: public RemoteTransfer fetchTransferIndexFromIndex(String index)
180: throws IOException, SlaveUnavailableException {
181: // TODO Auto-generated method stub
182: return null;
183: }
184:
185: public boolean transferIsUpdated(RemoteTransfer transferIndex) {
186: // TODO Auto-generated method stub
187: return false;
188: }
189:
190: public void run() {
191: // TODO Auto-generated method stub
192: }
193:
194: public String issueDeleteToSlave(String sourceFile)
195: throws SlaveUnavailableException {
196: // TODO Auto-generated method stub
197: return null;
198: }
199:
200: public String issueRenameToSlave(String from, String toDirPath,
201: String toName) throws SlaveUnavailableException {
202: // TODO Auto-generated method stub
203: return null;
204: }
205:
206: public String issueTransferStatusToSlave(
207: RemoteTransfer transferIndex)
208: throws SlaveUnavailableException {
209: // TODO Auto-generated method stub
210: return null;
211: }
212:
213: public void issueAbortToSlave(TransferIndex transferIndex)
214: throws SlaveUnavailableException {
215: // TODO Auto-generated method stub
216: }
217:
218: public String issueReceiveToSlave(String name, char c,
219: long position, TransferIndex index)
220: throws SlaveUnavailableException {
221: // TODO Auto-generated method stub
222: return null;
223: }
224:
225: public String issueSendToSlave(String name, char c, long position,
226: TransferIndex index) throws SlaveUnavailableException {
227: // TODO Auto-generated method stub
228: return null;
229: }
230:
231: public String issueTransferStatusToSlave(TransferIndex transferIndex)
232: throws SlaveUnavailableException {
233: // TODO Auto-generated method stub
234: return null;
235: }
236:
237: public boolean transferIsUpdated(TransferIndex transferIndex) {
238: // TODO Auto-generated method stub
239: return false;
240: }
241:
242: public void connect(Socket socket, BufferedReader reader,
243: PrintWriter writer) throws IOException {
244: // TODO Auto-generated method stub
245: }
246:
247: /* (non-Javadoc)
248: * @see net.sf.drftpd.master.RemoteSlave#issueRemergeToSlave()
249: */
250: public String issueRemergeToSlave()
251: throws SlaveUnavailableException {
252: // TODO Auto-generated method stub
253: return null;
254: }
255:
256: /* (non-Javadoc)
257: * @see net.sf.drftpd.master.RemoteSlave#fetchRemergeResponseFromIndex(java.lang.String)
258: */
259: public void fetchRemergeResponseFromIndex(String index)
260: throws IOException, SlaveUnavailableException {
261: // TODO Auto-generated method stub
262: }
263:
264: public void commit() {
265: // TODO Auto-generated method stub
266: }
267: }
|