Class ArchiveDeployer
- java.lang.Object
-
- org.jboss.as.arquillian.container.domain.ArchiveDeployer
-
public class ArchiveDeployer extends Object
Allows deployment operations to be executed on a running server.The client is not closed by an instance of this and is the responsibility of the user to clean up the client instance.
- Since:
- 17-Nov-2010
- Author:
- Thomas.Diesler@jboss.com, James R. Perkins
-
-
Constructor Summary
Constructors Constructor Description ArchiveDeployer(ManagementClient client)Creates a new deployer.ArchiveDeployer(org.jboss.as.controller.client.helpers.domain.DomainDeploymentManager deploymentManager)Deprecated.theDomainDeploymentManagerwill no longer be used in future releases, use theArchiveDeployer(ManagementClient)constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdeploy(org.jboss.shrinkwrap.api.Archive<?> archive, String serverGroup)Deploys the archive to the server group.Stringdeploy(org.jboss.shrinkwrap.api.Archive<?> archive, Set<String> serverGroups)Deploys the archive to multiple server groups.booleanhasDeployment(String name)Checks if the deployment content is on the server.booleanhasDeployment(String name, String serverGroup)Checks if the deployment content is on the server.voidundeploy(String runtimeName, String serverGroup)Undeploys the content specified by theruntimeNamefrom the server group.voidundeploy(String runtimeName, Set<String> serverGroups)Undeploys the content specified by theruntimeNamefrom the server groups.
-
-
-
Constructor Detail
-
ArchiveDeployer
@Deprecated public ArchiveDeployer(org.jboss.as.controller.client.helpers.domain.DomainDeploymentManager deploymentManager)
Deprecated.theDomainDeploymentManagerwill no longer be used in future releases, use theArchiveDeployer(ManagementClient)constructorCreates a new deployer.- Parameters:
deploymentManager- the deployment manager to use- See Also:
ArchiveDeployer(ManagementClient)
-
ArchiveDeployer
public ArchiveDeployer(ManagementClient client)
Creates a new deployer.- Parameters:
client- the client used to communicate with the server
-
-
Method Detail
-
deploy
public String deploy(org.jboss.shrinkwrap.api.Archive<?> archive, String serverGroup) throws org.jboss.arquillian.container.spi.client.container.DeploymentException
Deploys the archive to the server group.- Parameters:
archive- the archive to deployserverGroup- the server group to deploy to- Returns:
- a unique identifier for the deployment
- Throws:
org.jboss.arquillian.container.spi.client.container.DeploymentException- if an error occurs during deployment
-
deploy
public String deploy(org.jboss.shrinkwrap.api.Archive<?> archive, Set<String> serverGroups) throws org.jboss.arquillian.container.spi.client.container.DeploymentException
Deploys the archive to multiple server groups.- Parameters:
archive- the archive to deployserverGroups- the server groups to deploy to- Returns:
- a unique identifier for the deployment
- Throws:
org.jboss.arquillian.container.spi.client.container.DeploymentException- if an error occurs during deployment
-
undeploy
public void undeploy(String runtimeName, String serverGroup) throws org.jboss.arquillian.container.spi.client.container.DeploymentException
Undeploys the content specified by theruntimeNamefrom the server group.- Parameters:
runtimeName- the name of the deploymentserverGroup- the server group to undeploy to- Throws:
org.jboss.arquillian.container.spi.client.container.DeploymentException- if an error occurs during undeployment
-
undeploy
public void undeploy(String runtimeName, Set<String> serverGroups) throws org.jboss.arquillian.container.spi.client.container.DeploymentException
Undeploys the content specified by theruntimeNamefrom the server groups.- Parameters:
runtimeName- the name of the deploymentserverGroups- the server groups to undeploy to- Throws:
org.jboss.arquillian.container.spi.client.container.DeploymentException- if an error occurs during undeployment
-
hasDeployment
public boolean hasDeployment(String name) throws IOException
Checks if the deployment content is on the server.- Parameters:
name- the name of the deployment- Returns:
trueif the deployment content exists otherwisefalse- Throws:
IOException- if a failure occurs communicating with the server
-
hasDeployment
public boolean hasDeployment(String name, String serverGroup) throws IOException
Checks if the deployment content is on the server.- Parameters:
name- the name of the deploymentserverGroup- the server group to check for the deployment on- Returns:
trueif the deployment content exists otherwisefalse- Throws:
IOException- if a failure occurs communicating with the server
-
-