Class ProvisionerAdapter
java.lang.Object
com.yahoo.vespa.config.server.provision.ProvisionerAdapter
- All Implemented Interfaces:
com.yahoo.config.model.api.HostProvisioner
public class ProvisionerAdapter
extends Object
implements com.yahoo.config.model.api.HostProvisioner
A wrapper for
Provisioner
to avoid having to expose multitenant
behavior to the config model. Adapts interface from a HostProvisioner
to a
Provisioner
.- Author:
- Ulf Lilleengen
-
Constructor Summary
ConstructorsConstructorDescriptionProvisionerAdapter
(com.yahoo.config.provision.Provisioner provisioner, com.yahoo.config.provision.ApplicationId applicationId, com.yahoo.config.model.api.Provisioned provisioned) -
Method Summary
Modifier and TypeMethodDescriptioncom.yahoo.config.provision.HostSpec
allocateHost
(String alias) List<com.yahoo.config.provision.HostSpec>
prepare
(com.yahoo.config.provision.ClusterSpec cluster, com.yahoo.config.provision.Capacity capacity, com.yahoo.config.provision.ProvisionLogger logger)
-
Constructor Details
-
ProvisionerAdapter
public ProvisionerAdapter(com.yahoo.config.provision.Provisioner provisioner, com.yahoo.config.provision.ApplicationId applicationId, com.yahoo.config.model.api.Provisioned provisioned)
-
-
Method Details
-
allocateHost
- Specified by:
allocateHost
in interfacecom.yahoo.config.model.api.HostProvisioner
-
prepare
public List<com.yahoo.config.provision.HostSpec> prepare(com.yahoo.config.provision.ClusterSpec cluster, com.yahoo.config.provision.Capacity capacity, com.yahoo.config.provision.ProvisionLogger logger) - Specified by:
prepare
in interfacecom.yahoo.config.model.api.HostProvisioner
-