Package com.yahoo.config.model.api
Interface HostProvisioner
public interface HostProvisioner
Interface towards the host provisioner used to build a
Model
. The difference between this provisioner
and Provisioner
, is that this interface only exposes methods needed
to build the model.- Author:
- Ulf Lilleengen
-
Method Summary
Modifier and TypeMethodDescriptioncom.yahoo.config.provision.HostSpec
allocateHost
(String alias) Allocates a single host for a serviceList<com.yahoo.config.provision.HostSpec>
prepare
(com.yahoo.config.provision.ClusterSpec cluster, com.yahoo.config.provision.Capacity capacity, com.yahoo.config.provision.ProvisionLogger logger) Prepares allocation of a set of hosts with a given type, common id and the amount.
-
Method Details
-
allocateHost
Allocates a single host for a service -
prepare
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) Prepares allocation of a set of hosts with a given type, common id and the amount.- Parameters:
cluster
- the cluster to allocate nodes tocapacity
- the capacity describing the capacity requestedlogger
- a logger to which messages to the deployer may be written- Returns:
- the specification of the allocated hosts
-