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

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.codehaus.cargo.container.spi.util.DefaultServerRun
          extended byorg.codehaus.cargo.container.resin.internal.ResinRun
All Implemented Interfaces:
java.lang.Runnable

public class ResinRun
extends org.codehaus.cargo.container.spi.util.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 1032 2006-05-25 19:40:31Z vmassol $

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, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, 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.

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.

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


Copyright © 2004-2007 Codehaus. All Rights Reserved.