package fr.opensagres.mongodb.ide.core.extensions; import fr.opensagres.mongodb.ide.core.model.Server; /** * Server Runner is used to implement the start/stop of the Mongo Server. * */ public interface IServerRunner { /** * Start the given server or connect to the given server. * * @param server * @throws Exception */ void start(Server server) throws Exception; /** * Stop the given server or disconnect to the given server. * * @param server * @param force * @throws Exception */ void stop(Server server, boolean force) throws Exception; /** * Return true if the given server can support this server runner and false * otherwise. * * @param server * @return */ boolean canSupport(Server server); }