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 void
activateDefaultPrincipalToRoleMapping()
Does not do anything since GlassFish 3.x support was not tested.void
createFileUser(User user)
Does not do anything since GlassFish 3.x support was not tested.void
deployDatasource(DataSource dataSource)
Deploy a datasource.void
deployResource(Resource resource)
This will be used to deploy JavaMail, JMS and Managed Executor Services resources only usingcreate-javamail-resource
,create-jms-resource
andcreate-managed-executor-service
respectively.protected void
doDeploy(Deployable deployable, boolean overwrite)
Does the actual deployment.protected boolean
isJakartaEe()
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
-
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:
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)
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)
This will be used to deploy JavaMail, JMS and Managed Executor Services resources only usingcreate-javamail-resource
,create-jms-resource
andcreate-managed-executor-service
respectively. Other resource types will be created usingcreate-custom-resource
. 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 3.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 3.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
-
isJakartaEe
protected boolean isJakartaEe()
- Returns:
true
if the the GlassFish container deployed on is Jakarta EE,false
in the base implementation.
-
-