public class DeploymentJBossASClient extends JBossASClient
ADD, ADDRESS, BATCH, BATCH_STEPS, FAILURE_DESCRIPTION, log, NAME, OPERATION, OUTCOME, OUTCOME_SUCCESS, PERSISTENT, READ_ATTRIBUTE, READ_RESOURCE, REMOVE, RESULT, SUBSYSTEM, SYSTEM_PROPERTY, VALUE, WRITE_ATTRIBUTE| Constructor and Description |
|---|
DeploymentJBossASClient(org.jboss.as.controller.client.ModelControllerClient client) |
| Modifier and Type | Method and Description |
|---|---|
void |
deploy(String deploymentName,
InputStream content,
boolean enabled,
Set<String> serverGroups)
Uploads the content to the app server's content repository and then deploys the content.
|
void |
disableDeployment(String name) |
void |
enableDeployment(String name) |
void |
undeploy(String deploymentName,
Set<String> serverGroups)
Undeploys an app.
|
close, createBatchRequest, createReadAttributeRequest, createReadAttributeRequest, createRequest, createRequest, createWriteAttributeRequest, execute, findNodeInList, getAttribute, getAttribute, getFailureDescription, getModelControllerClient, getResultListAsStrings, getResults, getStringAttribute, getStringAttribute, isSuccess, readResource, readResource, remove, setPossibleExpressionpublic DeploymentJBossASClient(org.jboss.as.controller.client.ModelControllerClient client)
public void deploy(String deploymentName, InputStream content, boolean enabled, Set<String> serverGroups)
deploymentName - name that the content will be known ascontent - stream containing the actual content dataenabled - if true, the content will be uploaded and actually deployed;
if false, content will be uploaded to the server, but it won't be deployed in the server runtimeserverGroups - the server groups where the application will be deployed if in domain modepublic void undeploy(String deploymentName, Set<String> serverGroups)
deploymentName - name that the app is known asserverGroups - the server groups where the application may already be deployed. If empty,
this will assume the app server is in STANDALONE mode.Copyright © 2015–2016 Red Hat, Inc.. All rights reserved.