Class HostProvisionerProvider
java.lang.Object
com.yahoo.vespa.config.server.provision.HostProvisionerProvider
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 Summary
ConstructorsConstructorDescriptionHostProvisionerProvider
(com.yahoo.component.provider.ComponentRegistry<com.yahoo.config.provision.Provisioner> hostProvisionerRegistry, com.yahoo.cloud.config.ConfigserverConfig configserverConfig) -
Method Summary
Modifier and TypeMethodDescriptionstatic HostProvisionerProvider
empty()
Optional<com.yahoo.config.provision.Provisioner>
Returns the host provisioner, or empty if we are not in hosted modestatic HostProvisionerProvider
withProvisioner
(com.yahoo.config.provision.Provisioner provisioner, com.yahoo.cloud.config.ConfigserverConfig config)
-
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
Returns the host provisioner, or empty if we are not in hosted mode -
empty
-
withProvisioner
public static HostProvisionerProvider withProvisioner(com.yahoo.config.provision.Provisioner provisioner, com.yahoo.cloud.config.ConfigserverConfig config)
-