public class DeploymentJBossASClient extends JBossASClient
| Modifier and Type | Field and Description |
|---|---|
static String |
CONTENT |
static String |
ENABLED |
static String |
PATH |
static String |
SUBSYSTEM_DEPLOYMENT |
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 |
deployDomain(String deploymentName,
InputStream content,
boolean enabled)
Uploads the content to the app server's content repository and then deploys the content.
|
void |
deployStandalone(String deploymentName,
InputStream content,
boolean enabled)
Uploads the content to the app server's content repository and then deploys the content.
|
void |
disableDeployment(String name) |
void |
enableDeployment(String name) |
String |
getDeploymentPath(String name)
Given the name of a deployment, this returns where the deployment is (specifically,
it returns the PATH of the deployment).
|
boolean |
isDeployment(String name)
Checks to see if there is already a deployment with the given name.
|
boolean |
isDeploymentEnabled(String name) |
close, createBatchRequest, createReadAttributeRequest, createReadAttributeRequest, createRequest, createRequest, createWriteAttributeRequest, execute, findNodeInList, getAttribute, getAttribute, getFailureDescription, getModelControllerClient, getResultListAsStrings, getResults, getStringAttribute, getStringAttribute, isSuccess, readResource, readResource, remove, setPossibleExpressionpublic static final String SUBSYSTEM_DEPLOYMENT
public static final String ENABLED
public static final String CONTENT
public static final String PATH
public DeploymentJBossASClient(org.jboss.as.controller.client.ModelControllerClient client)
public boolean isDeployment(String name) throws Exception
name - the deployment name to checkException - any errorpublic boolean isDeploymentEnabled(String name) throws Exception
Exceptionpublic String getDeploymentPath(String name) throws Exception
name - the name of the deploymentException - any errorpublic void deployStandalone(String deploymentName, InputStream content, boolean enabled)
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 runtimepublic void deployDomain(String deploymentName, InputStream content, boolean enabled)
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 runtimeCopyright © 2015 Red Hat, Inc.. All rights reserved.