Class HostProvisionerProvider

java.lang.Object
com.yahoo.vespa.config.server.provision.HostProvisionerProvider

public class HostProvisionerProvider extends Object
This class is necessary to support both having and not having a host provisioner. We inject a component registry here, which then enables us to check whether we have a provisioner available. We only have a provisioner if we are running in hosted mode.
Author:
Ulf Lilleengen
  • Constructor Details

    • HostProvisionerProvider

      public HostProvisionerProvider(com.yahoo.component.provider.ComponentRegistry<com.yahoo.config.provision.Provisioner> hostProvisionerRegistry, com.yahoo.cloud.config.ConfigserverConfig configserverConfig)
  • Method Details

    • getHostProvisioner

      public Optional<com.yahoo.config.provision.Provisioner> getHostProvisioner()
      Returns the host provisioner, or empty if we are not in hosted mode
    • empty

      public static HostProvisionerProvider empty()
    • withProvisioner

      public static HostProvisionerProvider withProvisioner(com.yahoo.config.provision.Provisioner provisioner, com.yahoo.cloud.config.ConfigserverConfig config)