01: // serverPlainSwitch.java
02: // (C) 2006 by Michael Peter Christen; mc@anomic.de, Frankfurt a. M., Germany
03: // first published 10.08.2006 on http://www.anomic.de
04: //
05: // This is a part of YaCy, a peer-to-peer based web search engine
06: //
07: // $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $
08: // $LastChangedRevision: 1986 $
09: // $LastChangedBy: orbiter $
10: //
11: // LICENSE
12: //
13: // This program is free software; you can redistribute it and/or modify
14: // it under the terms of the GNU General Public License as published by
15: // the Free Software Foundation; either version 2 of the License, or
16: // (at your option) any later version.
17: //
18: // This program is distributed in the hope that it will be useful,
19: // but WITHOUT ANY WARRANTY; without even the implied warranty of
20: // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21: // GNU General Public License for more details.
22: //
23: // You should have received a copy of the GNU General Public License
24: // along with this program; if not, write to the Free Software
25: // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26:
27: package de.anomic.server;
28:
29: import java.io.File;
30:
31: public class serverPlainSwitch extends serverAbstractSwitch implements
32: serverSwitch {
33:
34: public serverPlainSwitch(File rootPath, String initPath,
35: String configPath, boolean applyPro) {
36: super (rootPath, initPath, configPath, applyPro);
37: }
38:
39: public int queueSize() {
40: // no queueing
41: return 0;
42: }
43:
44: public void enQueue(Object job) {
45: // no queueing: do nothing
46: }
47:
48: public boolean deQueue() {
49: // no queueing
50: return false;
51: }
52:
53: public serverObjects action(String actionName,
54: serverObjects actionInput) {
55: // no acions
56: return null;
57: }
58:
59: }
|