|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.ObjectJettyGluScript
class JettyGluScript
The purpose of this glu script is to deploy (in an atomic fashion), a jetty container and some webapps. This glu script is extensively commented in order to serve as good documentation on how to write a glu script.
This glu script has been tested with jetty v7.2.2.v20101205
This glu script uses the following initParameters
:
contextPath: "/cp1" // where to 'mount' the webapp in jetty (required) war: a url pointing to the war (similar to skeleton value) (required) monitor: "/monitor" // a path (relative to contextPath!) for monitoring (optional)
null
which means forever). Note that 'forever' is usually the right value
as you can always interrupt an action if it takes an abnormal long time to execute.
null
which means forever). Note that 'forever' is usually the right value
as you can always interrupt an action if it takes an abnormal long time to execute.
Here is an example of system representing those values (json format)
"initParameters": { "port": 9000, "skeleton": "http://localhost:8080/glu/repository/tgzs/jetty-distribution-7.2.2.v20101205.tar.gz", "webapps": [ { "contextPath": "/cp1", "monitor": "/monitor", "war": "http://localhost:8080/glu/repository/wars/org.linkedin.glu.samples.sample-webapp-1.6.0-SNAPSHOT.war" }, { "contextPath": "/cp2", "monitor": "/monitor", "war": "http://localhost:8080/glu/repository/wars/org.linkedin.glu.samples.sample-webapp-1.6.0-SNAPSHOT.war" } ] }
Property Summary | |
---|---|
static String |
DEFAULT_JETTY_CONFIG
|
static String |
DEFAULT_JETTY_CTL
|
static String |
DEFAULT_JETTY_XML
The 'default' file etc/jetty.xml contains a lot of hardcoded values and does not use SystemProperty which is a bug because jetty.sh use -Djetty.port for the port! |
static String |
WAR_CONTEXT
|
java.lang.Object |
configure
*************************************************** configure phase **************************************************** |
java.lang.Object |
gcLog
|
java.lang.Object |
install
*************************************************** install phase **************************************************** |
java.lang.Object |
logsDir
|
java.lang.Object |
pid
|
java.lang.Object |
port
|
static java.lang.Object |
requires
|
java.lang.Object |
serverCmd
|
java.lang.Object |
serverLog
|
java.lang.Object |
serverMonitor
Defines the timer that will check for the server to be up and running and will act according if not (change state) |
java.lang.Object |
serverRoot
|
java.lang.Object |
start
*************************************************** start phase **************************************************** |
java.lang.Object |
stop
*************************************************** stop phase **************************************************** |
java.lang.Object |
unconfigure
*************************************************** unconfigure phase **************************************************** |
java.lang.Object |
uninstall
*************************************************** uninstall phase **************************************************** |
java.lang.Object |
version
*************************************************** Script state **************************************************** |
java.lang.Object |
webapps
|
Method Summary |
---|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Property Detail |
---|
static String DEFAULT_JETTY_CONFIG
static String DEFAULT_JETTY_CTL
static String DEFAULT_JETTY_XML
static String WAR_CONTEXT
java.lang.Object configure
java.lang.Object gcLog
java.lang.Object install
java.lang.Object logsDir
java.lang.Object pid
java.lang.Object port
static java.lang.Object requires
java.lang.Object serverCmd
java.lang.Object serverLog
java.lang.Object serverMonitor
java.lang.Object serverRoot
java.lang.Object start
java.lang.Object stop
java.lang.Object unconfigure
java.lang.Object uninstall
java.lang.Object version
java.lang.Object webapps
Groovy Documentation