Class JBoss4xRemoteDeployer
- java.lang.Object
-
- org.codehaus.cargo.util.log.LoggedObject
-
- org.codehaus.cargo.container.spi.deployer.AbstractDeployer
-
- org.codehaus.cargo.container.spi.deployer.AbstractRemoteDeployer
-
- org.codehaus.cargo.container.jboss.JBoss4xRemoteDeployer
-
public class JBoss4xRemoteDeployer extends AbstractRemoteDeployer
Remote deployer that uses the JMX console to deploy to JBoss.
-
-
Constructor Summary
Constructors Modifier Constructor Description JBoss4xRemoteDeployer(RemoteContainer container)Use theJdkHttpURLConnectionclass to connect the JBoss remote URLs.protectedJBoss4xRemoteDeployer(RemoteContainer container, JdkHttpURLConnection connection, ISimpleHttpFileServer fileServer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected InetSocketAddressbuildSocketAddressForDeployableServer()return the socket address used for serving deployables to remote JBoss serversvoiddeploy(Deployable deployable)Deploy aDeployableto the running container and make it available for requests.voidredeploy(Deployable deployable)Redeploy aDeployablealready deployed to the running container.voidredeploy(Deployable deployable, DeployableMonitor monitor)Redeploy aDeployablealready deployed to the running container.voidsetDeployURL(String deployURL)voidsetRedeployURL(String redeployURL)voidsetUndeployURL(String undeployURL)voidundeploy(Deployable deployable)Undeploy aDeployablefrom the running container.-
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractRemoteDeployer
getContainer, getType
-
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractDeployer
deploy, deploy, redeploy, start, start, stop, stop, undeploy
-
Methods inherited from class org.codehaus.cargo.util.log.LoggedObject
getLogger, setLogger
-
-
-
-
Constructor Detail
-
JBoss4xRemoteDeployer
public JBoss4xRemoteDeployer(RemoteContainer container)
Use theJdkHttpURLConnectionclass 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
-
JBoss4xRemoteDeployer
protected JBoss4xRemoteDeployer(RemoteContainer container, JdkHttpURLConnection connection, ISimpleHttpFileServer fileServer)
- 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 deployerconnection- the connection class to usefileServer- http file server 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 aDeployableto the running container and make it available for requests.- Specified by:
deployin interfaceDeployer- Overrides:
deployin classAbstractDeployer- Parameters:
deployable- theDeployableto deploy
-
undeploy
public void undeploy(Deployable deployable)
Undeploy aDeployablefrom the running container. The service becomes unavailable for requests.- Specified by:
undeployin interfaceDeployer- Overrides:
undeployin classAbstractDeployer- Parameters:
deployable- theDeployableto undeploy
-
redeploy
public void redeploy(Deployable deployable)
Redeploy a
Deployablealready deployed to the running container. The service becomes available for requests.Note that this method will be unsupported by the
Deployers based on theAbstractCopyingInstalledLocalDeployer.- Specified by:
redeployin interfaceDeployer- Overrides:
redeployin classAbstractDeployer- Parameters:
deployable- theDeployableto redeploy- See Also:
Deployer.deploy(Deployable),Deployer.undeploy(Deployable)
-
redeploy
public void redeploy(Deployable deployable, DeployableMonitor monitor)
Redeploy a
Deployablealready deployed to the running container. The service becomes available for requests.Note that this method will be unsupported by the
Deployers based on theAbstractCopyingInstalledLocalDeployer.- Specified by:
redeployin interfaceDeployer- Overrides:
redeployin classAbstractDeployer- Parameters:
deployable- theDeployableto redeploymonitor- the monitor that checks for deployment status- See Also:
Deployer.deploy(Deployable),Deployer.undeploy(Deployable)
-
buildSocketAddressForDeployableServer
protected InetSocketAddress buildSocketAddressForDeployableServer()
return the socket address used for serving deployables to remote JBoss servers- Returns:
- socket address used for remote deployment
-
-