Package org.yamcs.tctm
Class AbstractCommandPostProcessor
java.lang.Object
org.yamcs.tctm.AbstractCommandPostProcessor
- All Implemented Interfaces:
CommandPostprocessor
-
Field Summary
Modifier and TypeFieldDescriptionprotected CommandHistoryPublisher
protected org.slf4j.Logger
protected TimeService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
failCommand
(Commanding.CommandId commandId, String reason) Send to command history the failed commandvoid
init
(String yamcsInstance, YConfiguration config) Called to initialise the postprocessor and set the cmd hist publisher (used to publish command acknowledgments), the timeService (required to timestamp acks) and the configurationvoid
setCommandHistoryPublisher
(CommandHistoryPublisher commandHistoryPublisher) sets the command history listener which can be used by the preprocessor to provide command history entries related to the command processedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.yamcs.tctm.CommandPostprocessor
getBinaryLength, process
-
Field Details
-
commandHistoryPublisher
-
timeService
-
log
protected org.slf4j.Logger log
-
-
Constructor Details
-
AbstractCommandPostProcessor
public AbstractCommandPostProcessor()
-
-
Method Details
-
init
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 interfaceCommandPostprocessor
-
setCommandHistoryPublisher
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 interfaceCommandPostprocessor
-
failCommand
Send to command history the failed command
-