aboutsummaryrefslogtreecommitdiffstats
path: root/config-provisioning/src/main/java/com/yahoo/config/provision/InfraDeployer.java
blob: 5fff9a892c941edea1577761552f96ad06e46114 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.config.provision;

import java.util.Optional;

/**
 * A deployer is used to deploy infrastructure applications.
 *
 * @author freva
 */
public interface InfraDeployer {

    /**
     * @param application the infrastructure application to be deployed
     * @return empty if the given application is not an infrastructure application or a {@link Deployment}
     */
    Optional<Deployment> getDeployment(ApplicationId application);

    /** Deploys all supported infrastructure applications in this zone. */
    void activateAllSupportedInfraApplications(boolean propagateException);

}