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 voidactivateDefaultPrincipalToRoleMapping()Does not do anything since GlassFish 2.x support was not tested.voidcreateFileUser(User user)Does not do anything since GlassFish 2.x support was not tested.voiddeployDatasource(DataSource dataSource)Does not do anything since GlassFish 2.x cannot deploy datasources usingjava.sql.Driverdrivers.voiddeployResource(Resource resource)Does not do anything since GlassFish 2.x support was not tested.protected voiddoDeploy(Deployable deployable, boolean overwrite)Does the actual deployment.voidundeploy(Deployable deployable)Undeploy aDeployablefrom the running container.voidundeployDatasource(String poolName, String jdbcName)Undeploy a datasource.-
Methods inherited from class org.codehaus.cargo.container.glassfish.internal.AbstractGlassFishInstalledLocalDeployer
addConnectOptions, addDeploymentArguments, addUndeploymentArguments, deploy, getDeployableName, 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:
doDeployin classAbstractGlassFishInstalledLocalDeployer- Parameters:
deployable- Deployable to deploy.overwrite- Whether to overwrite.
-
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
-
deployDatasource
public void deployDatasource(DataSource dataSource)
Does not do anything since GlassFish 2.x cannot deploy datasources usingjava.sql.Driverdrivers. Deploy a datasource.- Specified by:
deployDatasourcein classAbstractGlassFishInstalledLocalDeployer- Parameters:
dataSource- Datasource to deploy.
-
undeployDatasource
public void undeployDatasource(String poolName, String jdbcName)
Undeploy a datasource.- Specified by:
undeployDatasourcein 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:
deployResourcein 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-uservia asadmin to register a user.- Specified by:
createFileUserin 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.usersto be used as the roles for the application.- Specified by:
activateDefaultPrincipalToRoleMappingin classAbstractGlassFishInstalledLocalDeployer
-
-