org.codehaus.cargo.container.jboss
Class JBossRemoteDeployer

java.lang.Object
  extended by org.codehaus.cargo.util.log.LoggedObject
      extended by org.codehaus.cargo.container.spi.deployer.AbstractDeployer
          extended by org.codehaus.cargo.container.spi.deployer.AbstractRemoteDeployer
              extended by org.codehaus.cargo.container.jboss.JBossRemoteDeployer
All Implemented Interfaces:
org.codehaus.cargo.container.deployer.Deployer, org.codehaus.cargo.util.log.Loggable

public class JBossRemoteDeployer
extends org.codehaus.cargo.container.spi.deployer.AbstractRemoteDeployer

Remote deployer that uses JMX to deploy to JBoss.

Version:
$Id: JBossRemoteDeployer.java 1198 2006-11-01 13:39:02Z vmassol $

Constructor Summary
  JBossRemoteDeployer(org.codehaus.cargo.container.RemoteContainer container)
          Use the JdkHttpURLConnection class to connect the JBoss remote URLs.
protected JBossRemoteDeployer(org.codehaus.cargo.container.RemoteContainer container, HttpURLConnection connection)
           
 
Method Summary
protected  java.lang.String createJBossRemoteURL(org.codehaus.cargo.container.deployable.Deployable deployable, java.lang.String urlPrefix)
          Compute the JBoss deploy/undeploy URL.
 void deploy(org.codehaus.cargo.container.deployable.Deployable deployable)
          
 void redeploy(org.codehaus.cargo.container.deployable.Deployable deployable)
          
 void setDeployURL(java.lang.String deployURL)
           
 void setRedeployURL(java.lang.String redeployURL)
           
 void setUndeployURL(java.lang.String undeployURL)
           
 void undeploy(org.codehaus.cargo.container.deployable.Deployable deployable)
          
 
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractRemoteDeployer
getType
 
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractDeployer
deploy, deploy, start, stop
 
Methods inherited from class org.codehaus.cargo.util.log.LoggedObject
getLogger, setLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.codehaus.cargo.util.log.Loggable
getLogger, setLogger
 

Constructor Detail

JBossRemoteDeployer

public JBossRemoteDeployer(org.codehaus.cargo.container.RemoteContainer container)
Use the JdkHttpURLConnection class to connect the JBoss remote URLs.

Parameters:
container - the container containing the configuration to use to find the deployer properties such as url, user name and password to use to connect to the deployer

JBossRemoteDeployer

protected JBossRemoteDeployer(org.codehaus.cargo.container.RemoteContainer container,
                              HttpURLConnection connection)
Parameters:
container - the container containing the configuration to use to find the deployer properties such as url, user name and password to use to connect to the deployer
connection - the connection class to use
Method Detail

setDeployURL

public void setDeployURL(java.lang.String deployURL)
Parameters:
deployURL - the deployment URL that will override the default

setUndeployURL

public void setUndeployURL(java.lang.String undeployURL)
Parameters:
undeployURL - the undeployment URL that will override the default

setRedeployURL

public void setRedeployURL(java.lang.String redeployURL)
Parameters:
redeployURL - the redeployment URL that will override the default

deploy

public void deploy(org.codehaus.cargo.container.deployable.Deployable deployable)

Specified by:
deploy in interface org.codehaus.cargo.container.deployer.Deployer
Overrides:
deploy in class org.codehaus.cargo.container.spi.deployer.AbstractDeployer
See Also:
Deployer.deploy(Deployable)

undeploy

public void undeploy(org.codehaus.cargo.container.deployable.Deployable deployable)

Specified by:
undeploy in interface org.codehaus.cargo.container.deployer.Deployer
Overrides:
undeploy in class org.codehaus.cargo.container.spi.deployer.AbstractDeployer
See Also:
Deployer.undeploy(Deployable)

redeploy

public void redeploy(org.codehaus.cargo.container.deployable.Deployable deployable)

Specified by:
redeploy in interface org.codehaus.cargo.container.deployer.Deployer
Overrides:
redeploy in class org.codehaus.cargo.container.spi.deployer.AbstractDeployer
See Also:
Deployer.redeploy(Deployable)

createJBossRemoteURL

protected java.lang.String createJBossRemoteURL(org.codehaus.cargo.container.deployable.Deployable deployable,
                                                java.lang.String urlPrefix)
Compute the JBoss deploy/undeploy URL.

Parameters:
deployable - the file to deploy/undeploy
urlPrefix - the JBoss static part of the deploy??undeploy URL
Returns:
the full deploy/undeploy URL


Copyright © 2004-2010 Codehaus. All Rights Reserved.