Class Logd

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

    public class Logd
    extends AbstractService
    implements com.yahoo.cloud.config.log.LogdConfig.Producer
    There is one logd 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

      • Logd

        public Logd​(Host host)
        Creates a new Logd instance.
    • Method Detail

      • getPortCount

        public int getPortCount()
        Logd needs a state port.
        Specified by:
        getPortCount in interface NetworkPortRequestor
        Returns:
        The number of ports reserved by the logd
      • getStartupCommand

        public java.lang.String getStartupCommand()
        Description copied from class: AbstractService
        Must be overridden by services that should be started by config-sentinel. The returned value will be used in config-sentinel configuration. Returns null by default.
        Specified by:
        getStartupCommand in interface Service
        Overrides:
        getStartupCommand in class AbstractService
        Returns:
        The command used to start logd
      • getConfig

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