com.xebialabs.deployit.plugin.was.runbook
Class WasDeploymentRunBook
java.lang.Object
com.xebialabs.deployit.plugin.was.runbook.WasRunBookBase<com.xebialabs.deployit.ci.Deployment>
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:
- Deploy
WebSphere resources from cluster
- Deploy
ear from cluster (Undeploy ear, destroy vhost definition, update webserver plugin config)
- Deploy
war from cluster (Undeploy war, destroy vhost definition, update webserver plugin config)
- Create Apache Virtual Host definition on
an apache webserver
- Deploy
static content from an apache webserver
- Restart
an apache webserver
All Modifications are handled as Deletion and Addition.
Deletion:
- Undeploy
static content from an apache webserver
- Undeploy
ear from cluster (Undeploy ear, destroy vhost definition, update webserver plugin config)
- Undeploy
war from cluster (Undeploy war, destroy vhost definition, update webserver plugin config)
- Undeploy
WebSphere resources from cluster
- Destroy Apache Virtual Host definition on
an apache webserver
- Restart
an apache webserver
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.xebialabs.deployit.RunBook |
resolve |
WasDeploymentRunBook
public WasDeploymentRunBook()
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.