@Service public class EmbeddedDeployerImpl extends Object implements EmbeddedDeployer
| Constructor and Description |
|---|
EmbeddedDeployerImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
deploy(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.
|
String |
deploy(ReadableArchive archive,
DeployCommandParameters params)
Deploys an archive abstraction to the servers passing the deployment command parameters
|
File |
getApplicationsDir()
Returns the location of the applications directory, where deployed applications
are saved.
|
File |
getAutoDeployDir()
Returns the location of the auto-deploy directory.
|
void |
setAutoDeploy(boolean flag)
Enables or disables the auto-deployment feature
|
void |
undeploy(String name,
UndeployCommandParameters params)
Undeploys a previously deployed application
|
void |
undeployAll()
Undeploys all deployed applications.
|
public File getApplicationsDir()
EmbeddedDeployergetApplicationsDir in interface EmbeddedDeployerpublic File getAutoDeployDir()
EmbeddedDeployergetAutoDeployDir in interface EmbeddedDeployerpublic void setAutoDeploy(boolean flag)
EmbeddedDeployersetAutoDeploy in interface EmbeddedDeployerflag - set to true to enable, false to disablepublic String deploy(File archive, DeployCommandParameters params)
EmbeddedDeployerdeploy in interface EmbeddedDeployerarchive - archive or directory of the applicationparams - deployment command parameterspublic String deploy(ReadableArchive archive, DeployCommandParameters params)
EmbeddedDeployerdeploy in interface EmbeddedDeployerarchive - archive or directory of the applicationparams - deployment command parameterspublic void undeploy(String name, UndeployCommandParameters params)
EmbeddedDeployerundeploy in interface EmbeddedDeployername - name returned by EmbeddedDeployer#deploy(File, org.glassfish.api.deployment.DeployCommandParametersparams - the undeployment parameters, can be null for default valuespublic void undeployAll()
EmbeddedDeployerundeployAll in interface EmbeddedDeployerCopyright © 2019. All rights reserved.