com.xebialabs.deployit.plugin.generic.deployed
Class ExecutedScript<D extends com.xebialabs.deployit.plugin.api.udm.Deployable>

java.lang.Object
  extended by com.xebialabs.deployit.plugin.api.udm.base.BaseConfigurationItem
      extended by com.xebialabs.deployit.plugin.api.udm.base.BaseDeployed<D,com.xebialabs.deployit.plugin.overthere.HostContainer>
          extended by com.xebialabs.deployit.plugin.generic.deployed.AbstractDeployed<D>
              extended by com.xebialabs.deployit.plugin.generic.deployed.ExecutedScript<D>
All Implemented Interfaces:
com.xebialabs.deployit.plugin.api.udm.ConfigurationItem, com.xebialabs.deployit.plugin.api.udm.Deployed<D,com.xebialabs.deployit.plugin.overthere.HostContainer>, java.io.Serializable, java.lang.Comparable<com.xebialabs.deployit.plugin.api.udm.base.BaseConfigurationItem>
Direct Known Subclasses:
ExecutedScriptWithDerivedArtifact

@Metadata(virtual=true,
          description="A script executed on a generic container")
public class ExecutedScript<D extends com.xebialabs.deployit.plugin.api.udm.Deployable>
extends AbstractDeployed<D>

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.xebialabs.deployit.plugin.api.udm.base.BaseConfigurationItem
id, syntheticProperties, type
 
Fields inherited from interface com.xebialabs.deployit.plugin.api.udm.Deployed
CONTAINER_FIELD, DEPLOYABLE_FIELD
 
Fields inherited from interface com.xebialabs.deployit.plugin.api.udm.ConfigurationItem
SYNTHETIC_PROPERTIES_FIELD, TYPE_FIELD
 
Constructor Summary
ExecutedScript()
           
 
Method Summary
protected  boolean addStep(com.xebialabs.deployit.plugin.api.deployment.planning.DeploymentPlanningContext ctx, int order, java.lang.String script, java.lang.String verb)
           
 void executeCreate(com.xebialabs.deployit.plugin.api.deployment.planning.DeploymentPlanningContext ctx, com.xebialabs.deployit.plugin.api.deployment.specification.Delta d)
           
 void executeDestroy(com.xebialabs.deployit.plugin.api.deployment.planning.DeploymentPlanningContext ctx, com.xebialabs.deployit.plugin.api.deployment.specification.Delta d)
           
 void executeModify(com.xebialabs.deployit.plugin.api.deployment.planning.DeploymentPlanningContext ctx, com.xebialabs.deployit.plugin.api.deployment.specification.Delta d)
           
 void executeNoop(com.xebialabs.deployit.plugin.api.deployment.planning.DeploymentPlanningContext ctx)
           
protected  com.xebialabs.overthere.OverthereFile getArtifactIfPresent()
           
 java.util.Set<java.lang.String> getClasspathResources()
           
 java.lang.String getCreateScript()
           
 java.lang.String getDestroyScript()
           
 java.lang.String getModifyScript()
           
 java.lang.String getNoopScript()
           
 java.lang.String getRemoteWorkingDirectoryPath()
           
 java.util.Set<java.lang.String> getTemplateClasspathResources()
           
 boolean isRetainRemoteWorkingDirectory()
           
 void setClasspathResources(java.util.Set<java.lang.String> classpathResources)
           
 void setCreateScript(java.lang.String createScript)
           
 void setDestroyScript(java.lang.String destroyScript)
           
 void setModifyScript(java.lang.String modifyScript)
           
 void setNoopScript(java.lang.String noopScript)
           
 void setRemoteWorkingDirectoryPath(java.lang.String remoteWorkingDirectoryPath)
           
 void setRetainRemoteWorkingDirectory(boolean retainRemoteWorkingDirectory)
           
 void setTemplateClasspathResources(java.util.Set<java.lang.String> templateClasspathResources)
           
 
Methods inherited from class com.xebialabs.deployit.plugin.generic.deployed.AbstractDeployed
controlTaskDispatch, getCreateOrder, getCreateVerb, getDeployedApplication, getDeployedAsFreeMarkerContext, getDescription, getDestroyOrder, getDestroyVerb, getInspectClasspathResources, getInspectScript, getInspectTemplateClasspathResources, getModifyOrder, getModifyVerb, getNoopOrder, getNoopVerb, getPlanOperation, getPropertyOrContainerDefault, inspectContainer, isRestartRequired, isRestartRequiredForNoop, resolveExpression, resolveExpression, resolveExpression, setCreateOrder, setCreateVerb, setDeployedApplication, setDestroyOrder, setDestroyVerb, setInspectClasspathResources, setInspectScript, setInspectTemplateClasspathResources, setModifyOrder, setModifyVerb, setNoopOrder, setNoopVerb, setPlanOperation, setRestartRequired, setRestartRequiredForNoop
 
Methods inherited from class com.xebialabs.deployit.plugin.api.udm.base.BaseDeployed
getContainer, getDeployable, setContainer, setDeployable
 
Methods inherited from class com.xebialabs.deployit.plugin.api.udm.base.BaseConfigurationItem
compareTo, equals, getId, getName, getProperty, getPropertyDescriptor, getSyntheticProperties, getSyntheticProperty, getType, hashCode, hasProperty, hasSyntheticProperty, putSyntheticProperties, putSyntheticProperty, setId, setProperty, setSyntheticProperties, setType, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.xebialabs.deployit.plugin.api.udm.ConfigurationItem
getId, getName, getProperty, getSyntheticProperties, getSyntheticProperty, getType, hasProperty, putSyntheticProperty, setId, setProperty
 

Constructor Detail

ExecutedScript

public ExecutedScript()
Method Detail

addStep

protected boolean addStep(com.xebialabs.deployit.plugin.api.deployment.planning.DeploymentPlanningContext ctx,
                          int order,
                          java.lang.String script,
                          java.lang.String verb)

getArtifactIfPresent

protected com.xebialabs.overthere.OverthereFile getArtifactIfPresent()

executeCreate

public void executeCreate(com.xebialabs.deployit.plugin.api.deployment.planning.DeploymentPlanningContext ctx,
                          com.xebialabs.deployit.plugin.api.deployment.specification.Delta d)

executeModify

public void executeModify(com.xebialabs.deployit.plugin.api.deployment.planning.DeploymentPlanningContext ctx,
                          com.xebialabs.deployit.plugin.api.deployment.specification.Delta d)

executeDestroy

public void executeDestroy(com.xebialabs.deployit.plugin.api.deployment.planning.DeploymentPlanningContext ctx,
                           com.xebialabs.deployit.plugin.api.deployment.specification.Delta d)

executeNoop

public void executeNoop(com.xebialabs.deployit.plugin.api.deployment.planning.DeploymentPlanningContext ctx)

getCreateScript

public java.lang.String getCreateScript()

setCreateScript

public void setCreateScript(java.lang.String createScript)

getModifyScript

public java.lang.String getModifyScript()

setModifyScript

public void setModifyScript(java.lang.String modifyScript)

getDestroyScript

public java.lang.String getDestroyScript()

setDestroyScript

public void setDestroyScript(java.lang.String destroyScript)

getNoopScript

public java.lang.String getNoopScript()

setNoopScript

public void setNoopScript(java.lang.String noopScript)

getRemoteWorkingDirectoryPath

public java.lang.String getRemoteWorkingDirectoryPath()

setRemoteWorkingDirectoryPath

public void setRemoteWorkingDirectoryPath(java.lang.String remoteWorkingDirectoryPath)

isRetainRemoteWorkingDirectory

public boolean isRetainRemoteWorkingDirectory()

setRetainRemoteWorkingDirectory

public void setRetainRemoteWorkingDirectory(boolean retainRemoteWorkingDirectory)

getClasspathResources

public java.util.Set<java.lang.String> getClasspathResources()

setClasspathResources

public void setClasspathResources(java.util.Set<java.lang.String> classpathResources)

getTemplateClasspathResources

public java.util.Set<java.lang.String> getTemplateClasspathResources()

setTemplateClasspathResources

public void setTemplateClasspathResources(java.util.Set<java.lang.String> templateClasspathResources)