org.grails.plugins.tomcat
Class TomcatKillSwitch

java.lang.Object
  extended by org.grails.plugins.tomcat.TomcatKillSwitch
All Implemented Interfaces:
java.lang.Runnable

public class TomcatKillSwitch
extends java.lang.Object
implements java.lang.Runnable

Allows the tomcat server to be killed by pinging a port one greater than the server port.

Since:
2.1

Field Summary
static java.lang.String TOMCAT_KILL_SWITCH_ACTIVE
           
 
Constructor Summary
TomcatKillSwitch(org.apache.catalina.startup.Tomcat tomcat, int serverPort)
           
 
Method Summary
static boolean isActive()
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TOMCAT_KILL_SWITCH_ACTIVE

public static final java.lang.String TOMCAT_KILL_SWITCH_ACTIVE
See Also:
Constant Field Values
Constructor Detail

TomcatKillSwitch

public TomcatKillSwitch(org.apache.catalina.startup.Tomcat tomcat,
                        int serverPort)
Method Detail

isActive

public static boolean isActive()

run

public void run()
Specified by:
run in interface java.lang.Runnable