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

      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 service
      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.
    • 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 to
        capacity - the capacity describing the capacity requested
        logger - a logger to which messages to the deployer may be written
        Returns:
        the specification of the allocated hosts