| java.lang.Object winstone.Launcher
Launcher | public class Launcher implements Runnable(Code) | | Implements the main launcher daemon thread. This is the class that gets
launched by the command line, and owns the server socket, etc.
author: Rick Knowles version: $Id: Launcher.java,v 1.29 2007/04/23 02:55:35 rickknowles Exp $ |
Constructor Summary | |
public | Launcher(Map args) Constructor - initialises the web app, object pools, control port and the
available protocol listeners. |
AJP_LISTENER_CLASS | final static String AJP_LISTENER_CLASS(Code) | | |
DEFAULT_JNDI_MGR_CLASS | final static String DEFAULT_JNDI_MGR_CLASS(Code) | | |
HTTPS_LISTENER_CLASS | final static String HTTPS_LISTENER_CLASS(Code) | | |
HTTP_LISTENER_CLASS | final static String HTTP_LISTENER_CLASS(Code) | | |
RELOAD_TYPE | final public static byte RELOAD_TYPE(Code) | | |
SHUTDOWN_TYPE | final public static byte SHUTDOWN_TYPE(Code) | | |
Launcher | public Launcher(Map args) throws IOException(Code) | | Constructor - initialises the web app, object pools, control port and the
available protocol listeners.
|
isRunning | public boolean isRunning()(Code) | | |
main | public static void main(String argv) throws IOException(Code) | | Main method. This basically just accepts a few args, then initialises the
listener thread. For now, just shut it down with a control-C.
|
printUsage | protected static void printUsage()(Code) | | |
run | public void run()(Code) | | The main run method. This handles the normal thread processing.
|
shutdown | public void shutdown()(Code) | | |
spawnListener | protected void spawnListener(String listenerClassName)(Code) | | Instantiates listeners. Note that an exception thrown in the
constructor is interpreted as the listener being disabled, so
don't do anything too adventurous in the constructor, or if you do,
catch and log any errors locally before rethrowing.
|
|
|