Package org.yamcs

Class StreamTcCommandReleaser

java.lang.Object
com.google.common.util.concurrent.AbstractService
org.yamcs.AbstractProcessorService
org.yamcs.StreamTcCommandReleaser
All Implemented Interfaces:
com.google.common.util.concurrent.Service, CommandReleaser, ProcessorService

public class StreamTcCommandReleaser extends AbstractProcessorService implements CommandReleaser
Sends commands to yamcs streams
  • Constructor Details

    • StreamTcCommandReleaser

      public StreamTcCommandReleaser()
  • Method Details

    • init

      public void init(Processor proc, YConfiguration config, Object spec)
      Specified by:
      init in interface ProcessorService
      Overrides:
      init in class AbstractProcessorService
      config - service configuration as specified in processor.yaml
      spec - passed by the user when creating the processor (for instance via the REST API)
    • registerOutStream

      public void registerOutStream(int index, Stream stream, StreamTcCommandReleaser.CommandMatcher matcher)
      Add a new stream together with a matcher that will select the commands going to this stream
    • releaseCommand

      public void releaseCommand(PreparedCommand pc)
      Description copied from interface: CommandReleaser
      release a command.
      Specified by:
      releaseCommand in interface CommandReleaser
    • doStart

      protected void doStart()
      Specified by:
      doStart in class com.google.common.util.concurrent.AbstractService
    • setCommandHistory

      public void setCommandHistory(CommandHistoryPublisher commandHistoryPublisher)
      Description copied from interface: CommandReleaser
      the command releaser has to add the command to the history when it is released.
      Specified by:
      setCommandHistory in interface CommandReleaser
    • doStop

      protected void doStop()
      Specified by:
      doStop in class com.google.common.util.concurrent.AbstractService