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:
Deployer, Loggable

public class JBossRemoteDeployer
extends 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(RemoteContainer container)
          Use the JdkHttpURLConnection class to connect the JBoss remote URLs.
protected JBossRemoteDeployer(RemoteContainer container, HttpURLConnection connection)
           
 
Method Summary
protected  String createJBossRemoteURL(Deployable deployable, String urlPrefix)
          Compute the JBoss deploy/undeploy URL.
 void deploy(Deployable deployable)
          Deploy a Deployable to the running container and make it available for requests.
 void redeploy(Deployable deployable)
          Redeploy a Deployable already deployed to the running container.
 void setDeployURL(String deployURL)
           
 void setRedeployURL(String redeployURL)
           
 void setUndeployURL(String undeployURL)
           
 void undeploy(Deployable deployable)
          Undeploy a Deployable from the running container.
 
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, undeploy
 
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(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(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(String deployURL)
Parameters:
deployURL - the deployment URL that will override the default

setUndeployURL

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

setRedeployURL

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

deploy

public void deploy(Deployable deployable)
Deploy a Deployable to the running container and make it available for requests.

Specified by:
deploy in interface Deployer
Overrides:
deploy in class AbstractDeployer
Parameters:
deployable - the Deployable to deploy
See Also:
Deployer.deploy(Deployable)

undeploy

public void undeploy(Deployable deployable)
Undeploy a Deployable from the running container. The service becomes unavailable for requests.

Specified by:
undeploy in interface Deployer
Overrides:
undeploy in class AbstractDeployer
Parameters:
deployable - the Deployable to undeploy
See Also:
Deployer.undeploy(Deployable)

redeploy

public void redeploy(Deployable deployable)

Redeploy a Deployable already deployed to the running container. The service becomes available for requests.

Note that this method will be unsupported by the Deployers based on the AbstractCopyingInstalledLocalDeployer.

Specified by:
redeploy in interface Deployer
Overrides:
redeploy in class AbstractDeployer
Parameters:
deployable - the Deployable to redeploy
See Also:
Deployer.redeploy(Deployable)

createJBossRemoteURL

protected String createJBossRemoteURL(Deployable deployable,
                                      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-2012 Codehaus. All Rights Reserved.