Class LogForwarder

    • Method Detail

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