Package com.yahoo.config.model.api
Interface HostProvisioner
-
public interface HostProvisioner
Interface towards the host provisioner used to build aModel
. The difference between this provisioner andProvisioner
, is that this interface only exposes methods needed to build the model.- Author:
- Ulf Lilleengen
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.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 Detail
-
allocateHost
com.yahoo.config.provision.HostSpec allocateHost(String alias)
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
-
-