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.dmr.ModelNode |
createAddress(Iterable<String> pairs)
Creates an address that can be used as the address for an operation.
|
static org.jboss.dmr.ModelNode |
createAddress(String... pairs)
Creates an address that can be used as the address for an operation.
|
static org.jboss.as.controller.client.Operation |
createDeploymentAddOperation(InputStream content,
String name,
String runtimeName)
Creates an operation to add deployment content to the deployment repository.
|
static org.jboss.as.controller.client.Operation |
createDeploymentAddOperation(Path content,
String name,
String runtimeName)
Creates an operation to add deployment content to the deployment repository.
|
static org.jboss.as.controller.client.Operation |
createDeployOperation(Deployment deployment)
Creates an operation to deploy the content to a running server.
|
static org.jboss.as.controller.client.Operation |
createDeployOperation(Set<Deployment> deployments)
Creates an operation to deploy the content to a running server.
|
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.
|
static org.jboss.as.controller.client.Operation |
createUndeployOperation(UndeployDescription undeployDescription)
Creates an undeploy operation.
|
public static org.jboss.dmr.ModelNode createAddress(String... pairs)
ModelNode of type ModelType.LIST.
The string is split into key/value pairs. If the final key does not have a value an * is used to
indicate a wildcard for the address.
pairs - the key/value pairs to usepublic static org.jboss.dmr.ModelNode createAddress(Iterable<String> pairs)
ModelNode of type ModelType.LIST.
The string is split into key/value pairs. If the final key does not have a value an * is used to
indicate a wildcard for the address.
pairs - the key/value pairs to usepublic static org.jboss.as.controller.client.Operation createDeploymentAddOperation(Path content, String name, String runtimeName)
Note this does not deploy the content.
content - the path to the content to deployname - the name for the deployment content, if null the paths file name is usedruntimeName - the runtime name for the deployment contentpublic static org.jboss.as.controller.client.Operation createDeploymentAddOperation(InputStream content, String name, String runtimeName)
Note this does not deploy the content.
content - the content to deployname - the name for the deployment contentruntimeName - the runtime name for the deployment content, can be nullpublic static org.jboss.as.controller.client.Operation createDeployOperation(Deployment deployment)
deployment - the deployment to deploypublic static org.jboss.as.controller.client.Operation createDeployOperation(Set<Deployment> 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)
undeployDescription - the description used to crate the operationpublic static org.jboss.as.controller.client.Operation createUndeployOperation(Set<UndeployDescription> undeployDescriptions)
undeployDescriptions - the set of descriptions used to crate the operationCopyright © 2016 JBoss by Red Hat. All rights reserved.