Class AbstractCommandPostProcessor

java.lang.Object
org.yamcs.tctm.AbstractCommandPostProcessor
All Implemented Interfaces:
CommandPostprocessor
Direct Known Subclasses:
PusCommandPostprocessor

public abstract class AbstractCommandPostProcessor extends Object implements CommandPostprocessor
  • Field Details

    • commandHistoryPublisher

      protected CommandHistoryPublisher commandHistoryPublisher
    • timeService

      protected TimeService timeService
    • log

      protected org.slf4j.Logger log
  • Constructor Details

    • AbstractCommandPostProcessor

      public AbstractCommandPostProcessor()
  • Method Details

    • init

      public void init(String yamcsInstance, YConfiguration config)
      Description copied from interface: CommandPostprocessor
      Called to initialise the postprocessor and set the cmd hist publisher (used to publish command acknowledgments), the timeService (required to timestamp acks) and the configuration
      Specified by:
      init in interface CommandPostprocessor
    • setCommandHistoryPublisher

      public void setCommandHistoryPublisher(CommandHistoryPublisher commandHistoryPublisher)
      Description copied from interface: CommandPostprocessor
      sets the command history listener which can be used by the preprocessor to provide command history entries related to the command processed
      Specified by:
      setCommandHistoryPublisher in interface CommandPostprocessor
    • failCommand

      protected void failCommand(org.yamcs.protobuf.Commanding.CommandId commandId, String reason)
      Send to command history the failed command