Package com.yahoo.config.provision
Interface Deployer
-
public interface Deployer
A deployer is used to deploy applications.- Author:
- bratseth
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.util.Optional<Deployment>
deployFromLocalActive(ApplicationId application)
Creates a new deployment from the active application, if available.java.util.Optional<Deployment>
deployFromLocalActive(ApplicationId application, boolean bootstrap)
Creates a new deployment from the active application, if available.default java.util.Optional<Deployment>
deployFromLocalActive(ApplicationId application, java.time.Duration timeout)
Creates a new deployment from the active application, if available.java.util.Optional<Deployment>
deployFromLocalActive(ApplicationId application, java.time.Duration timeout, boolean bootstrap)
Creates a new deployment from the active application, if available.java.util.Optional<java.time.Instant>
lastDeployTime(ApplicationId application)
Returns the time the current local active session was created, or empty if there is no local active session
-
-
-
Method Detail
-
deployFromLocalActive
default java.util.Optional<Deployment> deployFromLocalActive(ApplicationId application)
Creates a new deployment from the active application, if available. Will use the default timeout for deployment.- Parameters:
application
- the active application to be redeployed- Returns:
- a new deployment from the local active, or empty if a local active application was not present for this id (meaning it either is not active or deployed at another node in the config server cluster)
-
deployFromLocalActive
java.util.Optional<Deployment> deployFromLocalActive(ApplicationId application, boolean bootstrap)
Creates a new deployment from the active application, if available. Will use the default timeout for deployment.- Parameters:
application
- the active application to be redeployedbootstrap
- the deployment is done when bootstrapping- Returns:
- a new deployment from the local active, or empty if a local active application was not present for this id (meaning it either is not active or deployed at another node in the config server cluster)
-
deployFromLocalActive
default java.util.Optional<Deployment> deployFromLocalActive(ApplicationId application, java.time.Duration timeout)
Creates a new deployment from the active application, if available. PreferdeployFromLocalActive(ApplicationId)
if possible, this method is for testing and will override the default timeout for deployment.- Parameters:
application
- the active application to be redeployedtimeout
- the timeout to use for each individual deployment operation- Returns:
- a new deployment from the local active, or empty if a local active application was not present for this id (meaning it either is not active or active on another node in the config server cluster)
-
deployFromLocalActive
java.util.Optional<Deployment> deployFromLocalActive(ApplicationId application, java.time.Duration timeout, boolean bootstrap)
Creates a new deployment from the active application, if available. PreferdeployFromLocalActive(ApplicationId)
if possible, this method is for testing and will override the default timeout for deployment.- Parameters:
application
- the active application to be redeployedtimeout
- the timeout to use for each individual deployment operationbootstrap
- the deployment is done when bootstrapping- Returns:
- a new deployment from the local active, or empty if a local active application was not present for this id (meaning it either is not active or active on another node in the config server cluster)
-
lastDeployTime
java.util.Optional<java.time.Instant> lastDeployTime(ApplicationId application)
Returns the time the current local active session was created, or empty if there is no local active session
-
-