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

    Constructors
    Constructor
    Description
    ProvisionerAdapter(com.yahoo.config.provision.Provisioner provisioner, com.yahoo.config.provision.ApplicationId applicationId, com.yahoo.config.model.api.Provisioned provisioned)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.yahoo.config.provision.HostSpec
     
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public com.yahoo.config.provision.HostSpec allocateHost(String alias)
      Specified by:
      allocateHost in interface com.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 interface com.yahoo.config.model.api.HostProvisioner