mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-02-08 15:46:54 +01:00
70 lines
1.1 KiB
Java
70 lines
1.1 KiB
Java
|
|
/*
|
||
|
|
* To change this template, choose Tools | Templates
|
||
|
|
* and open the template in the editor.
|
||
|
|
*/
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
package sonia.scm.server;
|
||
|
|
|
||
|
|
//~--- JDK imports ------------------------------------------------------------
|
||
|
|
|
||
|
|
import java.io.File;
|
||
|
|
import java.io.IOException;
|
||
|
|
|
||
|
|
/**
|
||
|
|
*
|
||
|
|
* @author Sebastian Sdorra
|
||
|
|
*/
|
||
|
|
public interface Server
|
||
|
|
{
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Method description
|
||
|
|
*
|
||
|
|
*
|
||
|
|
* @param listener
|
||
|
|
*/
|
||
|
|
public void addListener(ServerListener listener);
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Method description
|
||
|
|
*
|
||
|
|
*
|
||
|
|
* @param listener
|
||
|
|
*/
|
||
|
|
public void removeListener(ServerListener listener);
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Method description
|
||
|
|
*
|
||
|
|
*
|
||
|
|
* @param config
|
||
|
|
* @param webapp
|
||
|
|
*
|
||
|
|
* @throws IOException
|
||
|
|
* @throws ServerException
|
||
|
|
*/
|
||
|
|
public void start(ServerConfig config, File webapp)
|
||
|
|
throws ServerException, IOException;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Method description
|
||
|
|
*
|
||
|
|
*
|
||
|
|
* @throws IOException
|
||
|
|
* @throws ServerException
|
||
|
|
*/
|
||
|
|
public void stop() throws ServerException, IOException;
|
||
|
|
|
||
|
|
//~--- get methods ----------------------------------------------------------
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Method description
|
||
|
|
*
|
||
|
|
*
|
||
|
|
* @return
|
||
|
|
*/
|
||
|
|
public boolean isRunning();
|
||
|
|
}
|