|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectwinstone.Launcher
public class Launcher
Implements the main launcher daemon thread. This is the class that gets launched by the command line, and owns the server socket, etc.
| Field Summary | |
|---|---|
static byte |
RELOAD_TYPE
|
static WinstoneResourceBundle |
RESOURCES
|
static byte |
SHUTDOWN_TYPE
|
static java.lang.String |
USAGE
Overridable usage screen |
| Constructor Summary | |
|---|---|
Launcher(java.util.Map args)
Constructor - initialises the web app, object pools, control port and the available protocol listeners. |
|
| Method Summary | |
|---|---|
protected static void |
deployEmbeddedWarfile(java.util.Map args)
|
static java.util.Map |
getArgsFromCommandLine(java.lang.String[] argv)
|
protected void |
handleControlRequest(java.net.Socket csAccepted)
|
static void |
initLogger(java.util.Map args)
|
boolean |
isRunning()
|
static void |
main(java.lang.String[] argv)
Main method. |
protected static void |
printUsage()
|
void |
run()
The main run method. |
void |
shutdown()
|
protected void |
spawnListener(java.lang.String listenerClassName)
Instantiates listeners. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final byte SHUTDOWN_TYPE
public static final byte RELOAD_TYPE
public static final WinstoneResourceBundle RESOURCES
public static java.lang.String USAGE
| Constructor Detail |
|---|
public Launcher(java.util.Map args)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
protected void spawnListener(java.lang.String listenerClassName)
throws java.io.IOException
java.io.IOExceptionpublic void run()
run in interface java.lang.Runnable
protected void handleControlRequest(java.net.Socket csAccepted)
throws java.io.IOException
java.io.IOExceptionpublic void shutdown()
public boolean isRunning()
public static void main(java.lang.String[] argv)
throws java.io.IOException
java.io.IOException
public static java.util.Map getArgsFromCommandLine(java.lang.String[] argv)
throws java.io.IOException
java.io.IOException
protected static void deployEmbeddedWarfile(java.util.Map args)
throws java.io.IOException
java.io.IOException
public static void initLogger(java.util.Map args)
throws java.io.IOException
java.io.IOExceptionprotected static void printUsage()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||