All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.bordertech.lde.api.LdeLauncher Maven / Gradle / Ivy

The newest version!
package com.github.bordertech.lde.api;

import com.github.bordertech.didums.Didums;

/**
 * Launcher Helper Class.
 */
public final class LdeLauncher {

	private static final LdeProvider PROVIDER = Didums.getService(LdeProvider.class);

	/**
	 * Private constructor.
	 */
	private LdeLauncher() {
	}

	/**
	 * Launch Server.
	 */
	public static void launchServer() {
		PROVIDER.launchServer();
	}

	/**
	 * Launch Server and block on start.
	 *
	 * @param blocked true if block on server start
	 */
	public static void launchServer(final boolean blocked) {
		PROVIDER.launchServer(blocked);
	}

	/**
	 * Stop Server.
	 */
	public static void stopServer() {
		PROVIDER.stopServer();
	}

	/**
	 * @return true if server is running
	 */
	public static boolean isRunning() {
		return PROVIDER.isRunning();
	}

	/**
	 * @return the launcher provider
	 */
	public static LdeProvider getProvider() {
		return PROVIDER;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy