Groovy Documentation

[Groovy] Class JettyGluScript

java.lang.Object
  JettyGluScript

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:

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

DEFAULT_JETTY_CONFIG

static String DEFAULT_JETTY_CONFIG


DEFAULT_JETTY_CTL

static String DEFAULT_JETTY_CTL


DEFAULT_JETTY_XML

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! This script will create a etc/jetty-glu.xml and use it instead


WAR_CONTEXT

static String WAR_CONTEXT


configure

java.lang.Object configure
**************************************************** configure phase *****************************************************


gcLog

java.lang.Object gcLog


install

java.lang.Object install
**************************************************** install phase *****************************************************


logsDir

java.lang.Object logsDir


pid

java.lang.Object pid


port

java.lang.Object port


requires

static java.lang.Object requires


serverCmd

java.lang.Object serverCmd


serverLog

java.lang.Object serverLog


serverMonitor

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)


serverRoot

java.lang.Object serverRoot


start

java.lang.Object start
**************************************************** start phase *****************************************************


stop

java.lang.Object stop
**************************************************** stop phase *****************************************************


unconfigure

java.lang.Object unconfigure
**************************************************** unconfigure phase *****************************************************


uninstall

java.lang.Object uninstall
**************************************************** uninstall phase *****************************************************


version

java.lang.Object version
**************************************************** Script state *****************************************************


webapps

java.lang.Object webapps


 

Groovy Documentation