org.codehaus.cargo.container.resin.internal
Class ResinRun

java.lang.Object
  extended by java.lang.Thread
      extended by org.codehaus.cargo.container.spi.util.DefaultServerRun
          extended by org.codehaus.cargo.container.resin.internal.ResinRun
All Implemented Interfaces:
java.lang.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 $

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
static int DEFAULT_KEEPALIVE_SOCKET_PORT
          Default keepalive socket port for Resin 3.x.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ResinRun(java.lang.String[] args)
           
 
Method Summary
protected  void doStartServer(java.lang.String[] args)
          Start the Resin server.
protected  void doStopServer(java.lang.String[] args)
          Stops the Resin server.
static void main(java.lang.String[] args)
          Entry point to start/stop the Resin server.
 
Methods inherited from class org.codehaus.cargo.container.spi.util.DefaultServerRun
doRun, run
 
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

ResinRun

public ResinRun(java.lang.String[] args)
Parameters:
args - the command line arguments
Method Detail

main

public static void main(java.lang.String[] args)
Entry point to start/stop the Resin server.

Parameters:
args - the command line arguments

doStartServer

protected final void doStartServer(java.lang.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.

Overrides:
doStartServer in class DefaultServerRun
See Also:
DefaultServerRun.doStartServer(java.lang.String[])

doStopServer

protected final void doStopServer(java.lang.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.

Overrides:
doStopServer in class DefaultServerRun
See Also:
DefaultServerRun.doStopServer(java.lang.String[])


Copyright © 2004-2011 Codehaus. All Rights Reserved.