com.xebialabs.deployit.plugin.was.runbook
Class WasDeploymentRunBook

java.lang.Object
  extended by com.xebialabs.deployit.plugin.was.runbook.WasRunBookBase<com.xebialabs.deployit.ci.Deployment>
      extended by com.xebialabs.deployit.plugin.was.runbook.WasDeploymentRunBook
All Implemented Interfaces:
com.xebialabs.deployit.RunBook

public class WasDeploymentRunBook
extends WasRunBookBase<com.xebialabs.deployit.ci.Deployment>
implements com.xebialabs.deployit.RunBook

Supports the deployment, re-deployment and undeployment of a Application Package to a WAS Cluster.

Conditions

Will trigger if the change plan contains the addition, modification or deletion of a Deployment CI to an Environment CI which contains WAS middleware CI's.

Actions

Addition:
  1. Deploy WebSphere resources from cluster
  2. Deploy ear from cluster (Undeploy ear, destroy vhost definition, update webserver plugin config)
  3. Deploy war from cluster (Undeploy war, destroy vhost definition, update webserver plugin config)
  4. Create Apache Virtual Host definition on an apache webserver
  5. Deploy static content from an apache webserver
  6. Restart an apache webserver
All Modifications are handled as Deletion and Addition.

Deletion:

  1. Undeploy static content from an apache webserver
  2. Undeploy ear from cluster (Undeploy ear, destroy vhost definition, update webserver plugin config)
  3. Undeploy war from cluster (Undeploy war, destroy vhost definition, update webserver plugin config)
  4. Undeploy WebSphere resources from cluster
  5. Destroy Apache Virtual Host definition on an apache webserver
  6. Restart an apache webserver


Constructor Summary
WasDeploymentRunBook()
           
 
Method Summary
private  void createApacheVirtualHosts(java.util.Map<com.xebialabs.deployit.plugin.apache.httpd.ci.ApacheHttpdServer,java.util.Set<java.lang.String>> virtualHostsPerWebServer, java.util.List<com.xebialabs.deployit.Step> steps)
           
private  void destroyApacheVirtualHosts(java.util.Map<com.xebialabs.deployit.plugin.apache.httpd.ci.ApacheHttpdServer,java.util.Set<java.lang.String>> virtualHostsPerWebServer, java.util.List<com.xebialabs.deployit.Step> steps)
           
private  java.util.Set<com.xebialabs.deployit.Change<WasCluster>> findClusterChangesForDeploymentChange(com.xebialabs.deployit.Change<com.xebialabs.deployit.ci.Deployment> deploymentChange, com.xebialabs.deployit.ChangePlan changePlan)
           
private  boolean isClusterDeploymentTarget(WasCluster cluster, com.xebialabs.deployit.ci.Deployment deployment)
           
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 restartApacheWebServers(java.util.Map<com.xebialabs.deployit.plugin.apache.httpd.ci.ApacheHttpdServer,java.util.Set<java.lang.String>> virtualHostsPerWebServer, java.util.List<com.xebialabs.deployit.Step> steps)
           
 
Methods inherited from class com.xebialabs.deployit.plugin.was.runbook.WasRunBookBase
resolve
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.xebialabs.deployit.RunBook
resolve
 

Constructor Detail

WasDeploymentRunBook

public WasDeploymentRunBook()
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 WasRunBookBase<com.xebialabs.deployit.ci.Deployment>

findClusterChangesForDeploymentChange

private java.util.Set<com.xebialabs.deployit.Change<WasCluster>> findClusterChangesForDeploymentChange(com.xebialabs.deployit.Change<com.xebialabs.deployit.ci.Deployment> deploymentChange,
                                                                                                       com.xebialabs.deployit.ChangePlan changePlan)

isClusterDeploymentTarget

private boolean isClusterDeploymentTarget(WasCluster cluster,
                                          com.xebialabs.deployit.ci.Deployment deployment)

createApacheVirtualHosts

private void createApacheVirtualHosts(java.util.Map<com.xebialabs.deployit.plugin.apache.httpd.ci.ApacheHttpdServer,java.util.Set<java.lang.String>> virtualHostsPerWebServer,
                                      java.util.List<com.xebialabs.deployit.Step> steps)

destroyApacheVirtualHosts

private void destroyApacheVirtualHosts(java.util.Map<com.xebialabs.deployit.plugin.apache.httpd.ci.ApacheHttpdServer,java.util.Set<java.lang.String>> virtualHostsPerWebServer,
                                       java.util.List<com.xebialabs.deployit.Step> steps)

restartApacheWebServers

private void restartApacheWebServers(java.util.Map<com.xebialabs.deployit.plugin.apache.httpd.ci.ApacheHttpdServer,java.util.Set<java.lang.String>> virtualHostsPerWebServer,
                                     java.util.List<com.xebialabs.deployit.Step> steps)


Copyright © 2009. All Rights Reserved.