public class DeploymentOperations extends Object
Note that when creating operations deployment operations the deployments server-groups are used to determine if the deployment is for a managed domain. If the server groups are is empty the standalone deployment operations will be created. Otherwise deployment operations for managed domains will be created.
All operations create will be composite operations for consistency of parsing the result of executing the operation.
Constructor and Description |
---|
DeploymentOperations() |
Modifier and Type | Method and Description |
---|---|
static org.jboss.as.controller.client.Operation |
createAddDeploymentOperation(Deployment deployment)
Creates an operation to add deployment content to a running server.
|
static org.jboss.as.controller.client.Operation |
createAddDeploymentOperation(Set<Deployment> deployments)
Creates an operation to add deployment content to a running server for each deployment.
|
static org.jboss.as.controller.client.Operation |
createDeployOperation(DeploymentDescription deployment)
Creates an operation to deploy existing deployment content to the runtime.
|
static org.jboss.as.controller.client.Operation |
createDeployOperation(Set<DeploymentDescription> deployments)
Creates an option to deploy existing content to the runtime for each deployment
|
static org.jboss.as.controller.client.Operation |
createRedeployOperation(DeploymentDescription deployment)
Creates a redeploy operation for the deployment.
|
static org.jboss.as.controller.client.Operation |
createRedeployOperation(Set<DeploymentDescription> deployments)
Creates a redeploy operation for the deployment.
|
static org.jboss.as.controller.client.Operation |
createReplaceOperation(Deployment deployment)
Creates an operation to replace deployment content to a running server.
|
static org.jboss.as.controller.client.Operation |
createReplaceOperation(Set<Deployment> deployments)
Creates an operation to replace deployment content to a running server.
|
static org.jboss.as.controller.client.Operation |
createUndeployOperation(Set<UndeployDescription> undeployDescriptions)
Creates an undeploy operation for each deployment description.
|
static org.jboss.as.controller.client.Operation |
createUndeployOperation(UndeployDescription undeployDescription)
Creates an undeploy operation.
|
public static org.jboss.as.controller.client.Operation createAddDeploymentOperation(Deployment deployment)
deployment
- the deployment to deploycreateDeployOperation(DeploymentDescription)
public static org.jboss.as.controller.client.Operation createAddDeploymentOperation(Set<Deployment> deployments)
deployments
- a set of deployments to deploycreateDeployOperation(Set)
public static org.jboss.as.controller.client.Operation createDeployOperation(DeploymentDescription deployment)
deployment
- the deployment to deploypublic static org.jboss.as.controller.client.Operation createDeployOperation(Set<DeploymentDescription> deployments)
deployments
- a set of deployments to deploypublic static org.jboss.as.controller.client.Operation createReplaceOperation(Deployment deployment)
deployment
- the deployment used to replace an existing deploymentpublic static org.jboss.as.controller.client.Operation createReplaceOperation(Set<Deployment> deployments)
deployments
- the set deployment used to replace existing deployments which match the same namepublic static org.jboss.as.controller.client.Operation createRedeployOperation(DeploymentDescription deployment)
Note this does not upload new content. To add new content and deploy the new content see
createReplaceOperation(Deployment)
.
deployment
- the deployment to redeploypublic static org.jboss.as.controller.client.Operation createRedeployOperation(Set<DeploymentDescription> deployments)
Note this does not upload new content. To add new content and deploy the new content see
createReplaceOperation(Set)
.
deployments
- the set of deployments to redeploypublic static org.jboss.as.controller.client.Operation createUndeployOperation(UndeployDescription undeployDescription)
If the UndeployDescription.isRemoveContent()
returns true
the content will also be removed from
the content repository. Otherwise the content will remain on the server and only the undeploy
operation
will be executed.
Note that the failOnMissing
is ignored and the operation will fail
if any deployments being undeployed are missing.
undeployDescription
- the description used to crate the operationpublic static org.jboss.as.controller.client.Operation createUndeployOperation(Set<UndeployDescription> undeployDescriptions)
If the UndeployDescription.isRemoveContent()
returns true
the content will also be removed from
the content repository. Otherwise the content will remain on the server and only the undeploy
operation
will be executed.
Note that the failOnMissing
is ignored and the operation will fail
if any deployments being undeployed are missing.
undeployDescriptions
- the set of descriptions used to crate the operationCopyright © 2021 JBoss by Red Hat. All rights reserved.