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 theJdkHttpURLConnection
class to connect the JBoss remote URLs.protected
JBoss4xRemoteDeployer(RemoteContainer container, JdkHttpURLConnection connection, ISimpleHttpFileServer fileServer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected InetSocketAddress
buildSocketAddressForDeployableServer()
return the socket address used for serving deployables to remote JBoss serversvoid
deploy(Deployable deployable)
Deploy aDeployable
to the running container and make it available for requests.void
redeploy(Deployable deployable)
Redeploy aDeployable
already deployed to the running container.void
redeploy(Deployable deployable, DeployableMonitor monitor)
Redeploy aDeployable
already deployed to the running container.void
setDeployURL(String deployURL)
void
setRedeployURL(String redeployURL)
void
setUndeployURL(String undeployURL)
void
undeploy(Deployable deployable)
Undeploy aDeployable
from 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 theJdkHttpURLConnection
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
-
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 aDeployable
to the running container and make it available for requests.- Specified by:
deploy
in interfaceDeployer
- Overrides:
deploy
in classAbstractDeployer
- Parameters:
deployable
- theDeployable
to deploy
-
undeploy
public void undeploy(Deployable deployable)
Undeploy aDeployable
from the running container. The service becomes unavailable for requests.- Specified by:
undeploy
in interfaceDeployer
- Overrides:
undeploy
in classAbstractDeployer
- Parameters:
deployable
- theDeployable
to undeploy
-
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
Deployer
s based on theAbstractCopyingInstalledLocalDeployer
.- Specified by:
redeploy
in interfaceDeployer
- Overrides:
redeploy
in classAbstractDeployer
- Parameters:
deployable
- theDeployable
to redeploy- See Also:
Deployer.deploy(Deployable)
,Deployer.undeploy(Deployable)
-
redeploy
public void redeploy(Deployable deployable, DeployableMonitor monitor)
Redeploy a
Deployable
already deployed to the running container. The service becomes available for requests.Note that this method will be unsupported by the
Deployer
s based on theAbstractCopyingInstalledLocalDeployer
.- Specified by:
redeploy
in interfaceDeployer
- Overrides:
redeploy
in classAbstractDeployer
- Parameters:
deployable
- theDeployable
to 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
-
-