Class GlassFish3xInstalledLocalDeployer
- 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.GlassFish3xInstalledLocalDeployer
-
- Direct Known Subclasses:
GlassFish4xInstalledLocalDeployer
public class GlassFish3xInstalledLocalDeployer extends AbstractGlassFishInstalledLocalDeployer
GlassFish 3.x installed local deployer, which uses the GlassFish asadmin to deploy and undeploy applications.
-
-
Constructor Summary
Constructors Constructor Description GlassFish3xInstalledLocalDeployer(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 3.x support was not tested.voidcreateFileUser(User user)Does not do anything since GlassFish 3.x support was not tested.voiddeployDatasource(DataSource dataSource)Deploy a datasource.voiddeployResource(Resource resource)This will be used to deploy JavaMail, JMS and Managed Executor Services resources only usingcreate-javamail-resource,create-jms-resourceandcreate-managed-executor-servicerespectively.protected voiddoDeploy(Deployable deployable, boolean overwrite)Does the actual deployment.protected booleanisJakartaEe()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
-
GlassFish3xInstalledLocalDeployer
public GlassFish3xInstalledLocalDeployer(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)
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)
This will be used to deploy JavaMail, JMS and Managed Executor Services resources only usingcreate-javamail-resource,create-jms-resourceandcreate-managed-executor-servicerespectively. Other resource types will be created usingcreate-custom-resource. 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 3.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 3.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
-
isJakartaEe
protected boolean isJakartaEe()
- Returns:
trueif the the GlassFish container deployed on is Jakarta EE,falsein the base implementation.
-
-