Class GeronimoInstalledLocalDeployer
- java.lang.Object
-
- org.codehaus.cargo.util.log.LoggedObject
-
- org.codehaus.cargo.container.spi.deployer.AbstractDeployer
-
- org.codehaus.cargo.container.spi.deployer.AbstractLocalDeployer
-
- org.codehaus.cargo.container.spi.deployer.AbstractInstalledLocalDeployer
-
- org.codehaus.cargo.container.geronimo.GeronimoInstalledLocalDeployer
-
public class GeronimoInstalledLocalDeployer extends AbstractInstalledLocalDeployer
A Geronimo deploytool-based deployer to perform deployment to a local container.
-
-
Constructor Summary
Constructors Constructor Description GeronimoInstalledLocalDeployer(InstalledLocalContainer container)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deploy(Deployable deployable)
Deploy aDeployable
to the running container and make it available for requests.void
deployExtraClasspath(String[] extraClasspath)
Deploys extra classpath elements to the Geronimo classpath.void
deployRar(String id, File planFile)
Deploys a RAR plan.protected AbstractInstalledLocalContainer
getInstalledContainer()
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
start(Deployable deployable)
Starts aDeployable
that is already deployed in the running container but that is not servicing requests.void
stop(Deployable deployable)
Stop aDeployable
that is already deployed in the running container in order to prevent it from servicing requests.void
undeploy(Deployable deployable)
Undeploy aDeployable
from the running container.-
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractInstalledLocalDeployer
getType
-
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractLocalDeployer
getContainer, getFileHandler
-
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractDeployer
deploy, deploy, redeploy, start, stop, undeploy
-
Methods inherited from class org.codehaus.cargo.util.log.LoggedObject
getLogger, setLogger
-
-
-
-
Constructor Detail
-
GeronimoInstalledLocalDeployer
public GeronimoInstalledLocalDeployer(InstalledLocalContainer container)
-
-
Method Detail
-
getInstalledContainer
protected AbstractInstalledLocalContainer getInstalledContainer()
- Returns:
- the same value as
AbstractLocalDeployer.getContainer()
but more type-safe.
-
deployExtraClasspath
public void deployExtraClasspath(String[] extraClasspath) throws IOException
Deploys extra classpath elements to the Geronimo classpath.- Parameters:
extraClasspath
- Classpath elements to deploy- Throws:
IOException
- If the files in the extra classpath cannot be read
-
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
-
deployRar
public void deployRar(String id, File planFile)
Deploys a RAR plan.- Parameters:
id
- Plan identifier (used for undeploying previous instance if required).planFile
- XML file of plan.
-
start
public void start(Deployable deployable)
Starts aDeployable
that is already deployed in the running container but that is not servicing requests.- Specified by:
start
in interfaceDeployer
- Overrides:
start
in classAbstractDeployer
- Parameters:
deployable
- theDeployable
to start
-
stop
public void stop(Deployable deployable)
Stop aDeployable
that is already deployed in the running container in order to prevent it from servicing requests.- Specified by:
stop
in interfaceDeployer
- Overrides:
stop
in classAbstractDeployer
- Parameters:
deployable
- theDeployable
to stop
-
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)
-
-