public class ContainerDeployController
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
ContainerDeployController.Operation<T,X> |
Modifier and Type | Field and Description |
---|---|
private Instance<ContainerRegistry> |
containerRegistry |
private Instance<DeploymentScenario> |
deploymentScenario |
private Instance<Injector> |
injector |
Constructor and Description |
---|
ContainerDeployController() |
Modifier and Type | Method and Description |
---|---|
void |
deploy(DeployDeployment event) |
void |
deployManaged(DeployManagedDeployments event)
Deploy all deployments marked as managed = true.
|
private void |
executeOperation(java.util.concurrent.Callable<java.lang.Void> operation) |
private void |
forEachDeployedDeployment(ContainerDeployController.Operation<Container,Deployment> operation) |
private void |
forEachDeployment(java.util.List<Deployment> deployments,
ContainerDeployController.Operation<Container,Deployment> operation) |
private void |
forEachManagedDeployment(ContainerDeployController.Operation<Container,Deployment> operation) |
void |
undeploy(UnDeployDeployment event) |
void |
undeployManaged(UnDeployManagedDeployments event)
Undeploy all deployments marked as managed, and all manually deployed.
|
@Inject private Instance<ContainerRegistry> containerRegistry
@Inject private Instance<DeploymentScenario> deploymentScenario
public void deployManaged(@Observes DeployManagedDeployments event) throws java.lang.Exception
event
- java.lang.Exception
public void undeployManaged(@Observes UnDeployManagedDeployments event) throws java.lang.Exception
event
- java.lang.Exception
public void deploy(@Observes DeployDeployment event) throws java.lang.Exception
java.lang.Exception
public void undeploy(@Observes UnDeployDeployment event) throws java.lang.Exception
java.lang.Exception
private void forEachManagedDeployment(ContainerDeployController.Operation<Container,Deployment> operation) throws java.lang.Exception
java.lang.Exception
private void forEachDeployedDeployment(ContainerDeployController.Operation<Container,Deployment> operation) throws java.lang.Exception
java.lang.Exception
private void forEachDeployment(java.util.List<Deployment> deployments, ContainerDeployController.Operation<Container,Deployment> operation) throws java.lang.Exception
java.lang.Exception
private void executeOperation(java.util.concurrent.Callable<java.lang.Void> operation) throws java.lang.Exception
java.lang.Exception