@Requirement(reqId="DOI_DEV_010",reqName="D\u00e9veloppement en Java avec Maven") @Requirement(reqId="DOI_DEV_020",reqName="OpenSource") public final class Starter extends Object
Modifier and Type | Field and Description |
---|---|
static int |
BITS_16
Length of the secret key 16
|
private static DoiServer |
doiServer
DOI Server.
|
private static org.apache.logging.log4j.Logger |
LOG
Logger.
|
Modifier | Constructor and Description |
---|---|
private |
Starter()
"Static" class cannot be instantiated
|
Modifier and Type | Method and Description |
---|---|
private static void |
displayHelp() |
private static void |
displayVersion()
Displays version.
|
private static String |
getCurrentPid(String serverName)
Return the server PID from the system.
|
private static void |
infoProject()
Info about project.
|
private static void |
launchServer(DoiSettings settings)
Launches the server.
|
static void |
main(String[] argv)
Main.
|
private static void |
startServer(DoiServer server)
Starts the server
|
private static void |
statusServer()
Status of the server
|
private static void |
stopServer()
Stops the server
|
private static void |
stopServer(Thread server)
Stops the server
|
public static final int BITS_16
private static final org.apache.logging.log4j.Logger LOG
private static DoiServer doiServer
private static void displayHelp()
private static void stopServer(Thread server)
server
- HTTP or HTTPS server@Requirement(reqId="DOI_ARCHI_040", reqName="Chargement des plugins") private static void startServer(DoiServer server)
server
- the serverprivate static void infoProject()
private static void stopServer()
private static void statusServer()
private static void launchServer(DoiSettings settings)
settings
- Configurationprivate static void displayVersion()
private static String getCurrentPid(String serverName)
serverName
- server namepublic static void main(String[] argv)
argv
- command line argumentsCopyright © 2017–2020 CNES. All rights reserved.