public interface DeploymentService
Modifier and Type | Method and Description |
---|---|
java.lang.String |
createTask(Deployment deployment)
Creates the deployment task.
|
java.util.Map<java.lang.String,java.lang.String> |
effectiveDictionary(java.lang.String environment,
java.lang.String application,
java.lang.String container)
Get the effective dictionary for an environment, optionally filtered by application and container.
|
Deployment |
generateSelectedDeployeds(java.util.List<java.lang.String> deployableIds,
Deployment deployment)
|
Deployment |
generateSelectedDeployeds(SelectedDeployment selectedDeployment)
Generates only the deployeds for the given deployables in the deployment.
|
Deployment |
generateSingleDeployed(java.lang.String deployableId,
java.lang.String containerId,
com.xebialabs.deployit.plugin.api.reflect.Type deployedType,
Deployment deployment)
Generates a deployed for the given deployable to the given container in the deployment.
|
boolean |
isDeployed(java.lang.String applicationId,
java.lang.String environmentId)
Returns whether or not a
udm.Version of the
udm.Application that is passed in is already deployed to the
udm.Environment . |
Deployment |
prepareAutoDeployeds(Deployment deployment)
Prepares all the deployeds for the given deployment.
|
Deployment |
prepareInitial(java.lang.String versionId,
java.lang.String environmentId)
Prepares an initial deployment.
|
Deployment |
prepareUndeploy(java.lang.String deployedApplicationId)
Prepares an undeployment.
|
Deployment |
prepareUpdate(java.lang.String versionId,
java.lang.String deployedApplicationId)
Prepares an update deployment.
|
java.lang.String |
rollback(java.lang.String taskId)
Rollback a
STOPPED or EXECUTED task. |
TaskPreviewBlock |
taskPreviewBlock(Deployment deployment)
Calculate the plan that XL Deploy will execute for the given deployment.
|
StepState |
taskPreviewBlock(Deployment deployment,
java.lang.String blockId,
int stepNr)
Get details on a step in a step block.
|
Deployment |
validate(Deployment deployment)
Validates the generated deployment.
|
boolean isDeployed(java.lang.String applicationId, java.lang.String environmentId)
udm.Version
of the
udm.Application
that is passed in is already deployed to the
udm.Environment
.applicationId
- The ID of the udm.Application
.environmentId
- The ID of the udm.Environment
.true
if there exists a deployed version of the application on the environment, false
otherwise.Deployment prepareInitial(java.lang.String versionId, java.lang.String environmentId)
versionId
- The ID of the udm.Version
that is the source of the deployment.environmentId
- The ID of the udm.Environment
that is the target of the deployment.Deployment
object to which you can add deployeds.Deployment prepareUpdate(java.lang.String versionId, java.lang.String deployedApplicationId)
versionId
- The ID of the new udm.Version
that is the source of the deployment.deployedApplicationId
- The ID of the udm.DeployedApplication
that is to be updated.Deployment
object which contains the updated deployeds.Deployment prepareUndeploy(java.lang.String deployedApplicationId)
deployedApplicationId
- The ID of the udm.DeployedApplication
that is to be undeployed.Deployment
object which contains no deployeds (ie. all deployeds of the previous deployment will be deleted).Deployment prepareAutoDeployeds(Deployment deployment)
deployment
- The prepared Deployment parameter objectDeployment generateSelectedDeployeds(java.util.List<java.lang.String> deployableIds, Deployment deployment)
Containers
in the Environment
of the Deployment parameter object.
deployableIds
- The list of IDs of deployables to generate the deployeds for.deployment
- The prepared Deployment parameter objectDeployment generateSelectedDeployeds(SelectedDeployment selectedDeployment)
Containers
in the Environment
of the Deployment parameter object.
This request is same as /deployment/generate/selected but does
not use URL query parameters avoiding it becoming too long.
selectedDeployment
- The prepared Deployment parameter object with list of IDs of deployables to generate the deployeds for.Deployment generateSingleDeployed(java.lang.String deployableId, java.lang.String containerId, com.xebialabs.deployit.plugin.api.reflect.Type deployedType, Deployment deployment)
deployableId
- The ID of the deployable to generate a deployed forcontainerId
- The ID of the container to generate a deployed todeployedType
- (Optional) The type of the deployed to generatedeployment
- The prepared Deployment parameter objectDeployment validate(Deployment deployment)
deployment
- The deployment to validate.TaskPreviewBlock taskPreviewBlock(Deployment deployment)
deployment
- The deployment to generate the block for.StepState taskPreviewBlock(Deployment deployment, java.lang.String blockId, int stepNr)
deployment
- The deployment to generate the block for.blockId
- The id of the step block to query the steps for.stepNr
- The number of the step to retrieve.java.lang.String createTask(Deployment deployment)
deployment
- The fully prepared Deployment parameter object.TaskService
.java.lang.String rollback(java.lang.String taskId)
STOPPED
or EXECUTED
task. Reverting the deployment to the previous state. The task
will be set to CANCELLED
when it was STOPPED
, and DONE
when it was EXECUTED
.taskId
- the ID of the taskjava.util.Map<java.lang.String,java.lang.String> effectiveDictionary(java.lang.String environment, java.lang.String application, java.lang.String container)
environment
- The ID of the environmentapplication
- The ID of the application (optional, can be null)container
- The ID of the container (optional, can be null)