Package com.yahoo.config.model.provision
Class SingleNodeProvisioner
java.lang.Object
com.yahoo.config.model.provision.SingleNodeProvisioner
- All Implemented Interfaces:
com.yahoo.config.model.api.HostProvisioner
public class SingleNodeProvisioner
extends Object
implements com.yahoo.config.model.api.HostProvisioner
A host provisioner used when there is no hosts.xml file (using localhost as the only host)
No state in this provisioner, i.e it does not know anything about the active
application if one exists.
- Author:
- hmusum
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.yahoo.config.provision.HostSpec
allocateHost
(String alias) 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)
-
Constructor Details
-
SingleNodeProvisioner
public SingleNodeProvisioner() -
SingleNodeProvisioner
public SingleNodeProvisioner(com.yahoo.config.provision.Flavor flavor)
-
-
Method Details
-
allocateHost
- Specified by:
allocateHost
in interfacecom.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 interfacecom.yahoo.config.model.api.HostProvisioner
-