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,
boolean forceDeploy)
Uploads the content to the app server's content repository and then deploys the content.
|
void |
disableDeployment(String name,
Set<String> serverGroups) |
void |
enableDeployment(String name,
Set<String> serverGroups) |
void |
restartDeployment(String name,
Set<String> serverGroups) |
void |
undeploy(String deploymentName,
Set<String> serverGroups,
boolean removeContent)
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 enableDeployment(String name, Set<String> serverGroups) throws Exception
Exceptionpublic void disableDeployment(String name, Set<String> serverGroups) throws Exception
Exceptionpublic void restartDeployment(String name, Set<String> serverGroups) throws Exception
Exceptionpublic void deploy(String deploymentName, InputStream content, boolean enabled, Set<String> serverGroups, boolean forceDeploy)
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 modeforceDeploy - if true the deployment content is uploaded even if that deployment name already has content
(in other words, the new content will overwrite the old). If false, an error will occur if
there is already content associated with the deployment name.public void undeploy(String deploymentName, Set<String> serverGroups, boolean removeContent)
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.removeContent - if true, the content will be removed from the repository; false means the content stays.Copyright © 2015–2016 Red Hat, Inc.. All rights reserved.