added final constants, so that other class can reach it;

cleaned;

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@741 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
borg-0300 20 years ago
parent 900ab97422
commit 42cd2cea65

@ -3,7 +3,10 @@
// (C) by Michael Peter Christen; mc@anomic.de
// first published on http://www.anomic.de
// Frankfurt, Germany, 2004
// last major change: 04.02.2004
//
// $LastChangedDate$
// $LastChangedRevision$
// $LastChangedBy$
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@ -48,10 +51,16 @@ package de.anomic.server;
import java.net.InetAddress;
import java.util.Iterator;
import de.anomic.server.logging.serverLog;
public interface serverSwitch {
public static final String PEERTYPE = "PeerType";
public static final String PEERTYPE_VIRGIN = "virgin";
public static final String PEERTYPE_JUNIOR = "junior";
public static final String PEERTYPE_SENIOR = "senior";
public static final String PEERTYPE_PRINCIPAL = "principal";
// the root path for the application
public String getRootPath();
@ -62,15 +71,15 @@ public interface serverSwitch {
// a switchboard can have action listener
// these listeners are hooks for numerous methods below
public void deployAction(String actionName,
String actionShortDescription,
String actionLongDescription,
String actionShortDescription,
String actionLongDescription,
serverSwitchAction action);
public void undeployAction(String actionName);
// the switchboard can manage worker threads
public void deployThread(String threadName,
String threadShortDescription,
String threadLongDescription,
String threadShortDescription,
String threadLongDescription,
String threadMonitorURL,
serverThread newThread,
long startupDelay,
@ -114,4 +123,5 @@ public interface serverSwitch {
// performance control: the server can announce busy and idle status to the switchboard
// these announcements can be used to trigger events or interrupts
public void handleBusyState(int jobs);
}

Loading…
Cancel
Save