Class 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 Detail

      • SingleNodeProvisioner

        public SingleNodeProvisioner()
      • SingleNodeProvisioner

        public SingleNodeProvisioner​(com.yahoo.config.provision.Flavor flavor)
    • Method Detail

      • 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