diff options
author | Harald Musum <musum@oath.com> | 2017-12-13 14:38:54 +0100 |
---|---|---|
committer | Harald Musum <musum@oath.com> | 2017-12-13 14:38:54 +0100 |
commit | 34886141d8a0a60d84b31d85d5ba2eeaff4744bf (patch) | |
tree | 580d846616fd24c4c632ca409bae8c05302b0179 /config-provisioning | |
parent | d0a2b2f3aec7286e8504278f52135f737b106a3b (diff) |
Set timeout for internal deployment in one place
Use barrier timeout as basis for timeout, in the same way we do for external
deployments.
Diffstat (limited to 'config-provisioning')
-rw-r--r-- | config-provisioning/src/main/java/com/yahoo/config/provision/Deployer.java | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/config-provisioning/src/main/java/com/yahoo/config/provision/Deployer.java b/config-provisioning/src/main/java/com/yahoo/config/provision/Deployer.java index 77faa45ebe5..111073aca77 100644 --- a/config-provisioning/src/main/java/com/yahoo/config/provision/Deployer.java +++ b/config-provisioning/src/main/java/com/yahoo/config/provision/Deployer.java @@ -11,8 +11,20 @@ import java.util.Optional; */ public interface Deployer { + + /** + * Creates a new deployment from the active application, if available. Will use the default timeout for deployment. + * + * @param application the active application to be redeployed + * @return 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) + */ + Optional<Deployment> deployFromLocalActive(ApplicationId application); + /** - * Creates a new deployment from the active application, if available. + * Creates a new deployment from the active application, if available. Prefer {@link #deployFromLocalActive(ApplicationId)} + * if possible, this method is for testing and will override the default timeout for deployment. * * @param application the active application to be redeployed * @param timeout the timeout to use for each individual deployment operation |