Class ConfigSentinel

  • All Implemented Interfaces:
    com.yahoo.cloud.config.SentinelConfig.Producer, com.yahoo.config.ConfigInstance.Producer, ConfigProducer, NetworkPortRequestor, Service, java.io.Serializable

    public class ConfigSentinel
    extends AbstractService
    implements com.yahoo.cloud.config.SentinelConfig.Producer
    There is one config-sentinel running on each Vespa host, and one instance of this class is therefore created by each instance of class Host.
    Author:
    gjoranv
    See Also:
    Serialized Form
    • Constructor Detail

      • ConfigSentinel

        public ConfigSentinel​(Host host,
                              com.yahoo.config.provision.ApplicationId applicationId,
                              com.yahoo.config.provision.Zone zone)
        Constructs a new ConfigSentinel for the given host.
        Parameters:
        host - Physical host on which to run.
    • Method Detail

      • getPortCount

        public int getPortCount()
        Description copied from interface: NetworkPortRequestor
        Returns the number of ports needed by this service. User-defined ports for container http servers should not be counted, as those ports are required to be outside Vespa's port range.
        Specified by:
        getPortCount in interface NetworkPortRequestor
        Returns:
        The number of ports reserved by the Sentinel.
      • getConfig

        public void getConfig​(com.yahoo.cloud.config.SentinelConfig.Builder builder)
        Specified by:
        getConfig in interface com.yahoo.cloud.config.SentinelConfig.Producer