public final class EsigateServer extends Object
Inspiration from Ole Christian Rynning (http://open.bekk.no/embedded-jetty-7-webapp-executable-with-maven/)
Modifier and Type | Method and Description |
---|---|
static int |
getControlPort()
Returns current control port.
|
static void |
init()
Read server configuration from System properties and from server.properties.
|
static void |
init(Properties configuration)
Set the provided server configuration then read configuration from System properties or load defaults.
|
static boolean |
isStarted()
Check if server is started.
|
static void |
main(String[] args)
Esigate Server entry point.
|
static void |
start()
Create and start server.
|
static void |
stop()
Send a shutdown request to esigate server.
|
public static void init()
public static void init(Properties configuration)
configuration
- configuration to use.public static int getControlPort()
public static void main(String[] args) throws Exception
args
- command line arguments.Exception
- when server cannot be started.public static void start() throws Exception
Exception
- when server cannot be started.public static boolean isStarted()
public static void stop()
Copyright © 2008–2018. All rights reserved.