com.xebialabs.deployit.plugin.tomcat.runbook
Class TomcatDeploymentRunBook

java.lang.Object
  extended by com.xebialabs.deployit.util.SingleTypeHandlingRunBook<com.xebialabs.deployit.ci.Deployment>
      extended by com.xebialabs.deployit.plugin.tomcat.runbook.TomcatDeploymentRunBook
All Implemented Interfaces:
com.xebialabs.deployit.RunBook

public class TomcatDeploymentRunBook
extends com.xebialabs.deployit.util.SingleTypeHandlingRunBook<com.xebialabs.deployit.ci.Deployment>

Supports the deployment, re-deployment and undeployment of an Application Package to a Tomcat Servlet Container.

Conditions

Will trigger if the change plan contains the addition, modification or deletion of a Deployment CI to an Environment CI which contains Tomcat middleware CI's. Note that Additions, Modifications and Deletions are always handled in one single flow.

Actions

  1. Undeploy war from Tomcat Server
  2. Deploy war from JBoss Application Server


Constructor Summary
TomcatDeploymentRunBook()
           
 
Method Summary
private  void checkForServerConfigurationErrors(java.util.Set<TomcatServer> affectedServers)
           
private  boolean isTomcatDeployment(WarToTomcatServerMapper warToServerMapper)
           
protected  void resolve(com.xebialabs.deployit.Change<com.xebialabs.deployit.ci.Deployment> change, com.xebialabs.deployit.ChangePlan changePlan, java.util.List<com.xebialabs.deployit.Step> steps)
           
private  void startServers(java.util.Set<TomcatServer> servers, java.util.List<com.xebialabs.deployit.Step> steps)
           
private  void stopServers(java.util.Set<TomcatServer> servers, java.util.List<com.xebialabs.deployit.Step> steps)
           
 
Methods inherited from class com.xebialabs.deployit.util.SingleTypeHandlingRunBook
resolve
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TomcatDeploymentRunBook

public TomcatDeploymentRunBook()
Method Detail

resolve

protected void resolve(com.xebialabs.deployit.Change<com.xebialabs.deployit.ci.Deployment> change,
                       com.xebialabs.deployit.ChangePlan changePlan,
                       java.util.List<com.xebialabs.deployit.Step> steps)
Specified by:
resolve in class com.xebialabs.deployit.util.SingleTypeHandlingRunBook<com.xebialabs.deployit.ci.Deployment>

checkForServerConfigurationErrors

private void checkForServerConfigurationErrors(java.util.Set<TomcatServer> affectedServers)

isTomcatDeployment

private boolean isTomcatDeployment(WarToTomcatServerMapper warToServerMapper)

stopServers

private void stopServers(java.util.Set<TomcatServer> servers,
                         java.util.List<com.xebialabs.deployit.Step> steps)

startServers

private void startServers(java.util.Set<TomcatServer> servers,
                          java.util.List<com.xebialabs.deployit.Step> steps)


Copyright © 2010. All Rights Reserved.