public class ArchiveDeployer extends Object
The client is not closed by an instance of this and is the responsibility of the user to clean up the client instance.
| Constructor and Description |
|---|
ArchiveDeployer(org.jboss.as.controller.client.helpers.domain.DomainDeploymentManager deploymentManager)
Deprecated.
the
DomainDeploymentManager will no longer be used in future releases, use the
ArchiveDeployer(ManagementClient) constructor |
ArchiveDeployer(ManagementClient client)
Creates a new deployer.
|
| Modifier and Type | Method and Description |
|---|---|
String |
deploy(org.jboss.shrinkwrap.api.Archive<?> archive,
Set<String> serverGroups)
Deploys the archive to multiple server groups.
|
String |
deploy(org.jboss.shrinkwrap.api.Archive<?> archive,
String serverGroup)
Deploys the archive to the server group.
|
boolean |
hasDeployment(String name)
Checks if the deployment content is on the server.
|
boolean |
hasDeployment(String name,
String serverGroup)
Checks if the deployment content is on the server.
|
void |
undeploy(String runtimeName,
Set<String> serverGroups)
Undeploys the content specified by the
runtimeName from the server groups. |
void |
undeploy(String runtimeName,
String serverGroup)
Undeploys the content specified by the
runtimeName from the server group. |
@Deprecated public ArchiveDeployer(org.jboss.as.controller.client.helpers.domain.DomainDeploymentManager deploymentManager)
DomainDeploymentManager will no longer be used in future releases, use the
ArchiveDeployer(ManagementClient) constructordeploymentManager - the deployment manager to useArchiveDeployer(ManagementClient)public ArchiveDeployer(ManagementClient client)
client - the client used to communicate with the serverpublic String deploy(org.jboss.shrinkwrap.api.Archive<?> archive, String serverGroup) throws org.jboss.arquillian.container.spi.client.container.DeploymentException
archive - the archive to deployserverGroup - the server group to deploy toorg.jboss.arquillian.container.spi.client.container.DeploymentException - if an error occurs during deploymentpublic String deploy(org.jboss.shrinkwrap.api.Archive<?> archive, Set<String> serverGroups) throws org.jboss.arquillian.container.spi.client.container.DeploymentException
archive - the archive to deployserverGroups - the server groups to deploy toorg.jboss.arquillian.container.spi.client.container.DeploymentException - if an error occurs during deploymentpublic void undeploy(String runtimeName, String serverGroup) throws org.jboss.arquillian.container.spi.client.container.DeploymentException
runtimeName from the server group.runtimeName - the name of the deploymentserverGroup - the server group to undeploy toorg.jboss.arquillian.container.spi.client.container.DeploymentException - if an error occurs during undeploymentpublic void undeploy(String runtimeName, Set<String> serverGroups) throws org.jboss.arquillian.container.spi.client.container.DeploymentException
runtimeName from the server groups.runtimeName - the name of the deploymentserverGroups - the server groups to undeploy toorg.jboss.arquillian.container.spi.client.container.DeploymentException - if an error occurs during undeploymentpublic boolean hasDeployment(String name) throws IOException
name - the name of the deploymenttrue if the deployment content exists otherwise falseIOException - if a failure occurs communicating with the serverpublic boolean hasDeployment(String name, String serverGroup) throws IOException
name - the name of the deploymentserverGroup - the server group to check for the deployment ontrue if the deployment content exists otherwise falseIOException - if a failure occurs communicating with the serverCopyright © 2018 JBoss by Red Hat. All rights reserved.