Class AbstractApplicationDeploymentService
java.lang.Object
dev.getelements.elements.common.app.AbstractApplicationDeploymentService
- All Implemented Interfaces:
ApplicationDeploymentService
- Direct Known Subclasses:
JettyApplicationDeploymentService
public abstract class AbstractApplicationDeploymentService
extends Object
implements ApplicationDeploymentService
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.getelements.elements.common.app.ApplicationDeploymentService
ApplicationDeploymentService.DeploymentRecord, ApplicationDeploymentService.DeploymentStatus -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final LockThe lock to use for synchronizing deployments.Fields inherited from interface dev.getelements.elements.common.app.ApplicationDeploymentService
APP_NODE, APP_SERVE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeployApplication(Application application) Deploys theApplication.protected abstract ApplicationDeploymentService.DeploymentRecorddoDeployment(Application application, ApplicationElementService.ApplicationElementRecord record) Performs the actual deployment of theApplicationElementService.ApplicationElementRecord.Lists all deployments known to the service at the time of the method call.voidsetApplicationElementService(ApplicationElementService applicationElementService) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.getelements.elements.common.app.ApplicationDeploymentService
deployAvailableApplications
-
Field Details
-
lock
The lock to use for synchronizing deployments. This is a service-wide lock, meaning that only one deployment can happen at a time.
-
-
Constructor Details
-
AbstractApplicationDeploymentService
public AbstractApplicationDeploymentService()
-
-
Method Details
-
listAllDeployments
Description copied from interface:ApplicationDeploymentServiceLists all deployments known to the service at the time of the method call.- Specified by:
listAllDeploymentsin interfaceApplicationDeploymentService- Returns:
- a
List
-
deployApplication
Description copied from interface:ApplicationDeploymentServiceDeploys theApplication.- Specified by:
deployApplicationin interfaceApplicationDeploymentService- Parameters:
application- theApplication
-
doDeployment
protected abstract ApplicationDeploymentService.DeploymentRecord doDeployment(Application application, ApplicationElementService.ApplicationElementRecord record) Performs the actual deployment of theApplicationElementService.ApplicationElementRecord. This is called within the context of a lock on this service, so implementations do not need to provide their own locking.- Parameters:
record- the result of loading theApplication- Returns:
- the result of the deployment
-
getApplicationElementService
-
setApplicationElementService
@Inject public void setApplicationElementService(ApplicationElementService applicationElementService)
-