Class GlassFish2xInstalledLocalDeployer
- 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.glassfish.internal.AbstractGlassFishInstalledLocalDeployer
-
- org.codehaus.cargo.container.glassfish.GlassFish2xInstalledLocalDeployer
-
public class GlassFish2xInstalledLocalDeployer extends AbstractGlassFishInstalledLocalDeployer
GlassFish 2.x installed local deployer, which uses the GlassFish asadmin to deploy and undeploy applications.
-
-
Constructor Summary
Constructors Constructor Description GlassFish2xInstalledLocalDeployer(InstalledLocalContainer localContainer)
Calls parent constructor, which saves the container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activateDefaultPrincipalToRoleMapping()
Does not do anything since GlassFish 2.x support was not tested.void
createFileUser(User user)
Does not do anything since GlassFish 2.x support was not tested.void
deployDatasource(DataSource dataSource)
Does not do anything since GlassFish 2.x cannot deploy datasources usingjava.sql.Driver
drivers.void
deployResource(Resource resource)
Does not do anything since GlassFish 2.x support was not tested.protected void
doDeploy(Deployable deployable, boolean overwrite)
Does the actual deployment.void
undeploy(Deployable deployable)
Undeploy aDeployable
from the running container.void
undeployDatasource(String poolName, String jdbcName)
Undeploy a datasource.-
Methods inherited from class org.codehaus.cargo.container.glassfish.internal.AbstractGlassFishInstalledLocalDeployer
addConnectOptions, addDeploymentArguments, addUndeploymentArguments, cutExtension, deploy, getLocalContainer, getType, redeploy, redeploy, start, stop
-
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
-
GlassFish2xInstalledLocalDeployer
public GlassFish2xInstalledLocalDeployer(InstalledLocalContainer localContainer)
Calls parent constructor, which saves the container.- Parameters:
localContainer
- Container.
-
-
Method Detail
-
doDeploy
protected void doDeploy(Deployable deployable, boolean overwrite)
Does the actual deployment.- Specified by:
doDeploy
in classAbstractGlassFishInstalledLocalDeployer
- Parameters:
deployable
- Deployable to deploy.overwrite
- Whether to overwrite.
-
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
-
deployDatasource
public void deployDatasource(DataSource dataSource)
Does not do anything since GlassFish 2.x cannot deploy datasources usingjava.sql.Driver
drivers. Deploy a datasource.- Specified by:
deployDatasource
in classAbstractGlassFishInstalledLocalDeployer
- Parameters:
dataSource
- Datasource to deploy.
-
undeployDatasource
public void undeployDatasource(String poolName, String jdbcName)
Undeploy a datasource.- Specified by:
undeployDatasource
in classAbstractGlassFishInstalledLocalDeployer
- Parameters:
poolName
- Pool name of datasource to undeploy.jdbcName
- JNDI name of datasource to undeploy.
-
deployResource
public void deployResource(Resource resource)
Does not do anything since GlassFish 2.x support was not tested. Deploy a resource. There is no undeployResource inverse function.- Specified by:
deployResource
in classAbstractGlassFishInstalledLocalDeployer
- Parameters:
resource
- resource to deploy.
-
createFileUser
public void createFileUser(User user)
Does not do anything since GlassFish 2.x support was not tested. Callscreate-file-user
via asadmin to register a user.- Specified by:
createFileUser
in classAbstractGlassFishInstalledLocalDeployer
- Parameters:
user
- user to register
-
activateDefaultPrincipalToRoleMapping
public void activateDefaultPrincipalToRoleMapping()
Does not do anything since GlassFish 2.x support was not tested. Activates the default principal to role mapping. This allows groups defined incargo.servlet.users
to be used as the roles for the application.- Specified by:
activateDefaultPrincipalToRoleMapping
in classAbstractGlassFishInstalledLocalDeployer
-
-