Class HostsXmlProvisioner

  • All Implemented Interfaces:
    com.yahoo.config.model.api.HostProvisioner

    public class HostsXmlProvisioner
    extends java.lang.Object
    implements com.yahoo.config.model.api.HostProvisioner
    A host provisioner based on a hosts.xml file. No state in this provisioner, i.e it does not know anything about the active application if one exists. Pre-condition: A valid hosts file.
    Author:
    hmusum
    • Constructor Summary

      Constructors 
      Constructor Description
      HostsXmlProvisioner​(java.io.Reader hosts)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.yahoo.config.provision.HostSpec allocateHost​(java.lang.String alias)  
      java.util.List<com.yahoo.config.provision.HostSpec> prepare​(com.yahoo.config.provision.ClusterSpec cluster, com.yahoo.config.provision.Capacity quantity, com.yahoo.config.provision.ProvisionLogger logger)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • IMPLICIT_ADMIN_HOSTALIAS

        public static final java.lang.String IMPLICIT_ADMIN_HOSTALIAS
        See Also:
        Constant Field Values
    • Constructor Detail

      • HostsXmlProvisioner

        public HostsXmlProvisioner​(java.io.Reader hosts)
    • Method Detail

      • allocateHost

        public com.yahoo.config.provision.HostSpec allocateHost​(java.lang.String alias)
        Specified by:
        allocateHost in interface com.yahoo.config.model.api.HostProvisioner
      • prepare

        public java.util.List<com.yahoo.config.provision.HostSpec> prepare​(com.yahoo.config.provision.ClusterSpec cluster,
                                                                           com.yahoo.config.provision.Capacity quantity,
                                                                           com.yahoo.config.provision.ProvisionLogger logger)
        Specified by:
        prepare in interface com.yahoo.config.model.api.HostProvisioner