|
|
@ -3,7 +3,10 @@
|
|
|
|
// (C) by Michael Peter Christen; mc@anomic.de
|
|
|
|
// (C) by Michael Peter Christen; mc@anomic.de
|
|
|
|
// first published on http://www.anomic.de
|
|
|
|
// first published on http://www.anomic.de
|
|
|
|
// Frankfurt, Germany, 2004
|
|
|
|
// Frankfurt, Germany, 2004
|
|
|
|
// last major change: 04.02.2004
|
|
|
|
//
|
|
|
|
|
|
|
|
// $LastChangedDate$
|
|
|
|
|
|
|
|
// $LastChangedRevision$
|
|
|
|
|
|
|
|
// $LastChangedBy$
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// This program is free software; you can redistribute it and/or modify
|
|
|
|
// 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
|
|
|
|
// 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.net.InetAddress;
|
|
|
|
import java.util.Iterator;
|
|
|
|
import java.util.Iterator;
|
|
|
|
|
|
|
|
|
|
|
|
import de.anomic.server.logging.serverLog;
|
|
|
|
import de.anomic.server.logging.serverLog;
|
|
|
|
|
|
|
|
|
|
|
|
public interface serverSwitch {
|
|
|
|
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
|
|
|
|
// the root path for the application
|
|
|
|
public String getRootPath();
|
|
|
|
public String getRootPath();
|
|
|
|
|
|
|
|
|
|
|
@ -114,4 +123,5 @@ public interface serverSwitch {
|
|
|
|
// performance control: the server can announce busy and idle status to the switchboard
|
|
|
|
// performance control: the server can announce busy and idle status to the switchboard
|
|
|
|
// these announcements can be used to trigger events or interrupts
|
|
|
|
// these announcements can be used to trigger events or interrupts
|
|
|
|
public void handleBusyState(int jobs);
|
|
|
|
public void handleBusyState(int jobs);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|