Package com.yahoo.config.provision
Interface Deployer
public interface Deployer
A deployer is used to deploy applications.
- Author:
- bratseth
-
Method Summary
Modifier and TypeMethodDescriptionactivationTime
(ApplicationId application) Returns the time the active session was activated, or empty if there is no active sessiondefault boolean
Whether the deployer is bootstrapping, some users of the deployer will want to hold off with deployments in that case.default Optional<Deployment>
deployFromLocalActive
(ApplicationId application) Creates a new deployment from the active application, if available.deployFromLocalActive
(ApplicationId application, boolean bootstrap) Creates a new deployment from the active application, if available.default Optional<Deployment>
deployFromLocalActive
(ApplicationId application, Duration timeout) Creates a new deployment from the active application, if available.deployFromLocalActive
(ApplicationId application, Duration timeout, boolean bootstrap) Creates a new deployment from the active application, if available.deployTime
(ApplicationId application) Returns the time of last deployed session for this application or empty if there are no deploymentsboolean
readiedReindexingAfter
(ApplicationId application, Instant instant) Returns whether the application has reindexing ready to go, which was readied after the given instant.Timeout for deploy in server, clients can use this to set correct client timeout
-
Method Details
-
deployFromLocalActive
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 active application, or empty if application does not exist
-
deployFromLocalActive
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 active application, or empty if application does not exist
-
deployFromLocalActive
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 active application, or empty if application does not exist
-
deployFromLocalActive
Optional<Deployment> deployFromLocalActive(ApplicationId application, 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 active application, or empty if application does not exist
-
activationTime
Returns the time the active session was activated, or empty if there is no active session -
deployTime
Returns the time of last deployed session for this application or empty if there are no deployments -
readiedReindexingAfter
Returns whether the application has reindexing ready to go, which was readied after the given instant. -
bootstrapping
default boolean bootstrapping()Whether the deployer is bootstrapping, some users of the deployer will want to hold off with deployments in that case. -
serverDeployTimeout
Duration serverDeployTimeout()Timeout for deploy in server, clients can use this to set correct client timeout
-