Class Deployment
java.lang.Object
com.yahoo.vespa.config.server.deploy.Deployment
- All Implemented Interfaces:
com.yahoo.config.provision.Deployment
The process of deploying an application.
Deployments are created by an
ApplicationRepository
.
Instances of this are not multi-thread safe.- Author:
- Ulf Lilleengen, bratseth
-
Method Summary
Modifier and TypeMethodDescriptionlong
activate()
Activates this.void
prepare()
Prepares this.static Deployment
prepared
(Session session, ApplicationRepository applicationRepository, Optional<com.yahoo.config.provision.Provisioner> provisioner, Tenant tenant, com.yahoo.config.application.api.DeployLogger logger, Duration timeout, Clock clock, boolean isBootstrap, boolean force) void
restart
(com.yahoo.config.provision.HostFilter filter) Request a restart of services of this application on hosts matching the filter.session()
Exposes the session of this for testing onlystatic Deployment
unprepared
(Session session, ApplicationRepository applicationRepository, Optional<com.yahoo.config.provision.Provisioner> provisioner, Tenant tenant, com.yahoo.config.application.api.DeployLogger logger, Duration timeout, Clock clock, boolean validate, boolean isBootstrap) static Deployment
unprepared
(Session session, ApplicationRepository applicationRepository, Optional<com.yahoo.config.provision.Provisioner> provisioner, Tenant tenant, PrepareParams params, com.yahoo.config.application.api.DeployLogger logger, Clock clock)
-
Method Details
-
unprepared
public static Deployment unprepared(Session session, ApplicationRepository applicationRepository, Optional<com.yahoo.config.provision.Provisioner> provisioner, Tenant tenant, PrepareParams params, com.yahoo.config.application.api.DeployLogger logger, Clock clock) -
unprepared
public static Deployment unprepared(Session session, ApplicationRepository applicationRepository, Optional<com.yahoo.config.provision.Provisioner> provisioner, Tenant tenant, com.yahoo.config.application.api.DeployLogger logger, Duration timeout, Clock clock, boolean validate, boolean isBootstrap) -
prepared
public static Deployment prepared(Session session, ApplicationRepository applicationRepository, Optional<com.yahoo.config.provision.Provisioner> provisioner, Tenant tenant, com.yahoo.config.application.api.DeployLogger logger, Duration timeout, Clock clock, boolean isBootstrap, boolean force) -
prepare
public void prepare()Prepares this. This does nothing if this is already prepared- Specified by:
prepare
in interfacecom.yahoo.config.provision.Deployment
-
activate
public long activate()Activates this. If it is not already prepared, this will call prepare first.- Specified by:
activate
in interfacecom.yahoo.config.provision.Deployment
-
restart
public void restart(com.yahoo.config.provision.HostFilter filter) Request a restart of services of this application on hosts matching the filter. This is sometimes needed after activation, but can also be requested without doing prepare and activate in the same session.- Specified by:
restart
in interfacecom.yahoo.config.provision.Deployment
-
session
Exposes the session of this for testing only -
configChangeActions
- Returns:
- config change actions that need to be performed as result of prepare
- Throws:
IllegalArgumentException
- if called without being prepared by this
-