Package org.glassfish.kernel.embedded
Class EmbeddedDeployerImpl
- java.lang.Object
-
- org.glassfish.kernel.embedded.EmbeddedDeployerImpl
-
- All Implemented Interfaces:
EmbeddedDeployer
@Service public class EmbeddedDeployerImpl extends Object implements EmbeddedDeployer
- Author:
- Jerome Dochez
-
-
Constructor Summary
Constructors Constructor Description EmbeddedDeployerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdeploy(File archive, DeployCommandParameters params)Deploys a file or directory to the servers passing the deployment command parameters Starts the server if it is not started yet.Stringdeploy(ReadableArchive archive, DeployCommandParameters params)Deploys an archive abstraction to the servers passing the deployment command parametersFilegetApplicationsDir()Returns the location of the applications directory, where deployed applications are saved.FilegetAutoDeployDir()Returns the location of the auto-deploy directory.voidsetAutoDeploy(boolean flag)Enables or disables the auto-deployment featurevoidundeploy(String name, UndeployCommandParameters params)Undeploys a previously deployed applicationvoidundeployAll()Undeploys all deployed applications.
-
-
-
Method Detail
-
getApplicationsDir
public File getApplicationsDir()
Description copied from interface:EmbeddedDeployerReturns the location of the applications directory, where deployed applications are saved.- Specified by:
getApplicationsDirin interfaceEmbeddedDeployer- Returns:
- the deployed application directory.
-
getAutoDeployDir
public File getAutoDeployDir()
Description copied from interface:EmbeddedDeployerReturns the location of the auto-deploy directory.- Specified by:
getAutoDeployDirin interfaceEmbeddedDeployer- Returns:
- the auto-deploy directory
-
setAutoDeploy
public void setAutoDeploy(boolean flag)
Description copied from interface:EmbeddedDeployerEnables or disables the auto-deployment feature- Specified by:
setAutoDeployin interfaceEmbeddedDeployer- Parameters:
flag- set to true to enable, false to disable
-
deploy
public String deploy(File archive, DeployCommandParameters params)
Description copied from interface:EmbeddedDeployerDeploys a file or directory to the servers passing the deployment command parameters Starts the server if it is not started yet.- Specified by:
deployin interfaceEmbeddedDeployer- Parameters:
archive- archive or directory of the applicationparams- deployment command parameters- Returns:
- the deployed application name
-
deploy
public String deploy(ReadableArchive archive, DeployCommandParameters params)
Description copied from interface:EmbeddedDeployerDeploys an archive abstraction to the servers passing the deployment command parameters- Specified by:
deployin interfaceEmbeddedDeployer- Parameters:
archive- archive or directory of the applicationparams- deployment command parameters- Returns:
- the deployed application name
-
undeploy
public void undeploy(String name, UndeployCommandParameters params)
Description copied from interface:EmbeddedDeployerUndeploys a previously deployed application- Specified by:
undeployin interfaceEmbeddedDeployer- Parameters:
name- name returned by {@link EmbeddedDeployer#deploy(File, org.glassfish.api.deployment.DeployCommandParameters}params- the undeployment parameters, can be null for default values
-
undeployAll
public void undeployAll()
Description copied from interface:EmbeddedDeployerUndeploys all deployed applications.- Specified by:
undeployAllin interfaceEmbeddedDeployer
-
-