Files
SCM-Manager/scm-server-api/src/main/java/sonia/scm/server/Server.java

70 lines
1.1 KiB
Java
Raw Normal View History

/*
* 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();
}