Package org.yamcs

Interface ProcessorService

All Superinterfaces:
com.google.common.util.concurrent.Service
All Known Subinterfaces:
ArchiveTmPacketProvider, CommandReleaser, ParameterProvider, TmPacketProvider
All Known Implementing Classes:
AbstractProcessorService, AlarmReporter, AlgorithmManager, LocalParameterManager, RefMdbPacketGenerator, ReplayService, StreamParameterProvider, StreamTcCommandReleaser, StreamTmPacketProvider, XtceTmProcessor

public interface ProcessorService extends com.google.common.util.concurrent.Service
This interface has to be implemented by all services that run as part of a processor.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.google.common.util.concurrent.Service

    com.google.common.util.concurrent.Service.Listener, com.google.common.util.concurrent.Service.State
  • Method Summary

    Modifier and Type
    Method
    Description
    default Spec
    Returns the valid configuration of the input args of this service.
    void
    init(Processor proc, YConfiguration config, Object spec)
     

    Methods inherited from interface com.google.common.util.concurrent.Service

    addListener, awaitRunning, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, awaitTerminated, failureCause, isRunning, startAsync, state, stopAsync
  • Method Details

    • getSpec

      default Spec getSpec()
      Returns the valid configuration of the input args of this service.
      Returns:
      the argument specification, or null if the args should not be validated.
    • init

      void init(Processor proc, YConfiguration config, Object spec) throws InitException
      Parameters:
      proc -
      config - service configuration as specified in processor.yaml
      spec - passed by the user when creating the processor (for instance via the REST API)
      Throws:
      InitException