Class LogForwarder

All Implemented Interfaces:
com.yahoo.cloud.config.LogforwarderConfig.Producer, com.yahoo.config.ConfigInstance.Producer, ConfigProducer, NetworkPortRequestor, Service, Serializable

public class LogForwarder extends AbstractService implements com.yahoo.cloud.config.LogforwarderConfig.Producer
See Also:
  • Constructor Details

  • Method Details

    • cfg

      public static LogForwarder.Config cfg()
    • 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()
      LogForwarder does not need any ports.
      Specified by:
      getPortCount in interface NetworkPortRequestor
      Returns:
      The number of ports reserved by the LogForwarder
    • getStartupCommand

      public Optional<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 empty by default.
      Specified by:
      getStartupCommand in interface Service
      Overrides:
      getStartupCommand in class AbstractService
      Returns:
      The command used to start LogForwarder
    • getConfig

      public void getConfig(com.yahoo.cloud.config.LogforwarderConfig.Builder builder)
      Specified by:
      getConfig in interface com.yahoo.cloud.config.LogforwarderConfig.Producer
    • getPreShutdownCommand

      public Optional<String> getPreShutdownCommand()
      Description copied from interface: Service
      Services that wish that a command should be run before shutdown should return the command here. The command will be executed by the config sentinel before sending SIGTERM to the service. The command is executed without a timeout.
      Specified by:
      getPreShutdownCommand in interface Service
      Overrides:
      getPreShutdownCommand in class AbstractService