Package org.yamcs.tctm
Class AbstractCommandPostProcessor
java.lang.Object
org.yamcs.tctm.AbstractCommandPostProcessor
- All Implemented Interfaces:
CommandPostprocessor
- Direct Known Subclasses:
PusCommandPostprocessor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CommandHistoryPublisherprotected org.slf4j.Loggerprotected TimeService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfailCommand(Commanding.CommandId commandId, String reason) Send to command history the failed commandvoidinit(String yamcsInstance, YConfiguration config, Link link) Called to initialise the postprocessor.voidsetCommandHistoryPublisher(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, waitMethods inherited from interface org.yamcs.tctm.CommandPostprocessor
getBinaryLength, init, process
-
Field Details
-
commandHistoryPublisher
-
timeService
-
log
protected org.slf4j.Logger log
-
-
Constructor Details
-
AbstractCommandPostProcessor
public AbstractCommandPostProcessor()
-
-
Method Details
-
init
Description copied from interface:CommandPostprocessorCalled to initialise the postprocessor. The link parameter can be used to register link actions.- Specified by:
initin interfaceCommandPostprocessor
-
setCommandHistoryPublisher
Description copied from interface:CommandPostprocessorsets the command history listener which can be used by the preprocessor to provide command history entries related to the command processed- Specified by:
setCommandHistoryPublisherin interfaceCommandPostprocessor
-
failCommand
Send to command history the failed command
-