org.codehaus.cargo.container.resin.internal
Class ResinRun
java.lang.Object
java.lang.Thread
org.codehaus.cargo.container.spi.util.DefaultServerRun
org.codehaus.cargo.container.resin.internal.ResinRun
- All Implemented Interfaces:
- Runnable
public class ResinRun
- extends DefaultServerRun
Starts/stop Resin by setting up a listener socket. Supports Resin 2.0.x, 2.1.x and 3.x.
- Version:
- $Id: ResinRun.java 1705 2008-09-02 13:14:55Z adriana $
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
DEFAULT_KEEPALIVE_SOCKET_PORT
public static final int DEFAULT_KEEPALIVE_SOCKET_PORT
- Default keepalive socket port for Resin 3.x. We create a server socket on this port that
acts as a keepalive for Resin. When this socket closes Resin stops. This is a Resin feature.
- See Also:
- Constant Field Values
ResinRun
public ResinRun(String[] args)
- Parameters:
args
- the command line arguments
main
public static void main(String[] args)
- Entry point to start/stop the Resin server.
- Parameters:
args
- the command line arguments
doStartServer
protected final void doStartServer(String[] args)
- Start the Resin server. We use reflection so that the Resin jars do not need to be in the
classpath to compile this class.
Starts the server (in a blocking mode) and set up a socket listener.
- Overrides:
doStartServer
in class DefaultServerRun
- Parameters:
args
- the command line arguments- See Also:
DefaultServerRun.doStartServer(java.lang.String[])
doStopServer
protected final void doStopServer(String[] args)
- Stops the Resin server. We use reflection so that the Resin jars do not need to be in the
classpath to compile this class.
Stops the server by connecting to the socket set up when the server
was started.
- Overrides:
doStopServer
in class DefaultServerRun
- Parameters:
args
- the command line arguments- See Also:
DefaultServerRun.doStopServer(java.lang.String[])
Copyright © 2004-2012 Codehaus. All Rights Reserved.