2013-10-09 00:40:48 +02:00
|
|
|
|
|
|
|
package net.yacy.http;
|
|
|
|
|
|
|
|
import java.net.InetSocketAddress;
|
|
|
|
import java.net.SocketException;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Isolation of HttpServer
|
|
|
|
*
|
|
|
|
* Development Goal: allow for individual implementation of a HttpServer
|
|
|
|
* to provide the routines and entry points required by the
|
|
|
|
* YaCy servlets
|
|
|
|
*
|
|
|
|
* currently Jetty implementation is ongoing
|
|
|
|
*
|
|
|
|
* Implementation Jetty8HttpServerImpl.java
|
|
|
|
*/
|
|
|
|
public interface YaCyHttpServer {
|
|
|
|
|
2013-11-07 21:30:17 +01:00
|
|
|
abstract void startupServer() throws Exception;
|
|
|
|
abstract void stop() throws Exception;
|
|
|
|
abstract void setMaxSessionCount(int cnt);
|
|
|
|
abstract InetSocketAddress generateSocketAddress(String port) throws SocketException;
|
|
|
|
abstract int getMaxSessionCount();
|
|
|
|
abstract int getJobCount();
|
2013-12-25 05:20:13 +01:00
|
|
|
abstract int getSslPort();
|
2013-11-07 21:30:17 +01:00
|
|
|
abstract boolean withSSL();
|
|
|
|
abstract void reconnect(int milsec);
|
|
|
|
abstract String getVersion();
|
2013-10-09 00:40:48 +02:00
|
|
|
}
|