public class Launcher extends Object implements Runnable
| Modifier and Type | Field and Description |
|---|---|
static byte |
RELOAD_TYPE |
static WinstoneResourceBundle |
RESOURCES |
org.eclipse.jetty.server.Server |
server |
static byte |
SHUTDOWN_TYPE |
static String |
USAGE
Overridable usage screen
|
| Constructor and Description |
|---|
Launcher(Map args)
Constructor - initialises the web app, object pools, control port and the
available protocol listeners.
|
| Modifier and Type | Method and Description |
|---|---|
protected static void |
deployEmbeddedWarfile(Map args) |
static Map |
getArgsFromCommandLine(String[] argv) |
protected void |
handleControlRequest(Socket csAccepted) |
static void |
initLogger(Map args) |
boolean |
isRunning() |
static void |
main(String[] argv)
Main method.
|
protected static void |
printUsage() |
void |
run()
The main run method.
|
void |
shutdown() |
protected org.eclipse.jetty.server.Connector |
spawnListener(String listenerClassName,
List<org.eclipse.jetty.server.Connector> connectors)
Instantiates listeners.
|
public static final byte SHUTDOWN_TYPE
public static final byte RELOAD_TYPE
public static final WinstoneResourceBundle RESOURCES
public final org.eclipse.jetty.server.Server server
public static String USAGE
public Launcher(Map args) throws IOException
IOExceptionprotected org.eclipse.jetty.server.Connector spawnListener(String listenerClassName, List<org.eclipse.jetty.server.Connector> connectors) throws IOException
IOExceptionpublic void run()
protected void handleControlRequest(Socket csAccepted) throws IOException
IOExceptionpublic void shutdown()
public boolean isRunning()
public static void main(String[] argv) throws IOException
IOExceptionpublic static Map getArgsFromCommandLine(String[] argv) throws IOException
IOExceptionprotected static void deployEmbeddedWarfile(Map args) throws IOException
IOExceptionpublic static void initLogger(Map args) throws IOException
IOExceptionprotected static void printUsage()
Copyright © 2004–2021. All rights reserved.