Class Logd

All Implemented Interfaces:
com.yahoo.cloud.config.log.LogdConfig.Producer, com.yahoo.config.ConfigInstance.Producer, ConfigProducer, NetworkPortRequestor, Service, 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:
  • Constructor Details

    • Logd

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

    • allocatePorts

      public void allocatePorts(int start, PortAllocBridge from)
      Description copied from interface: NetworkPortRequestor
      allocate the ports you need
      Specified by:
      allocatePorts in interface NetworkPortRequestor
    • getPortCount

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

      public int getWantedPort()
      Returns the desired base port for this service.
      Specified by:
      getWantedPort in interface NetworkPortRequestor
      Overrides:
      getWantedPort in class AbstractService
      Returns:
      The desired base port for the first instance of the service type.
    • getStartupCommand

      public 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
    • getHealthPort

      public int getHealthPort()
      Description copied from class: AbstractService
      The service HTTP port for health status
      Specified by:
      getHealthPort in interface Service
      Overrides:
      getHealthPort in class AbstractService
    • getConfig

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