Package org.yamcs.cmdhistory
Interface CommandHistoryPublisher
-
- All Known Implementing Classes:
StreamCommandHistoryPublisher
public interface CommandHistoryPublisherUsed by the commanding applications to save commands and commands acknowledgements into a history.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classCommandHistoryPublisher.AckStatusprovides acknowledgment status during execution of command
-
Field Summary
Fields Modifier and Type Field Description static StringAcknowledgeQueued_KEYstatic StringAcknowledgeReleased_KEYstatic StringAcknowledgeSentUsed by the links to add entries in the command history when the command has been sent via the link.static StringCcsdsSeq_KEYstatic StringCommandComplete_KEYstatic StringQueue_KEYstatic StringSUFFIX_MESSAGEstatic StringSUFFIX_STATUSstatic StringSUFFIX_TIMEstatic StringTransmissionContraints_KEYstatic StringVerifier_KEY_PREFIX
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidaddCommand(PreparedCommand pc)default voidcommandFailed(org.yamcs.protobuf.Commanding.CommandId cmdId, long time, String reason)voidpublish(org.yamcs.protobuf.Commanding.CommandId cmdId, String key, byte[] binary)voidpublish(org.yamcs.protobuf.Commanding.CommandId cmdId, String key, int value)voidpublish(org.yamcs.protobuf.Commanding.CommandId cmdId, String key, long value)voidpublish(org.yamcs.protobuf.Commanding.CommandId cmdId, String key, String value)default voidpublishAck(org.yamcs.protobuf.Commanding.CommandId cmdId, String key, long time, CommandHistoryPublisher.AckStatus state)default voidpublishAck(org.yamcs.protobuf.Commanding.CommandId cmdId, String key, long time, CommandHistoryPublisher.AckStatus state, String message)Publish an acknowledgement status to the command history.
-
-
-
Field Detail
-
CommandComplete_KEY
static final String CommandComplete_KEY
- See Also:
- Constant Field Values
-
TransmissionContraints_KEY
static final String TransmissionContraints_KEY
- See Also:
- Constant Field Values
-
AcknowledgeQueued_KEY
static final String AcknowledgeQueued_KEY
- See Also:
- Constant Field Values
-
AcknowledgeReleased_KEY
static final String AcknowledgeReleased_KEY
- See Also:
- Constant Field Values
-
AcknowledgeSent
static final String AcknowledgeSent
Used by the links to add entries in the command history when the command has been sent via the link.- See Also:
- Constant Field Values
-
Verifier_KEY_PREFIX
static final String Verifier_KEY_PREFIX
- See Also:
- Constant Field Values
-
CcsdsSeq_KEY
static final String CcsdsSeq_KEY
- See Also:
- Constant Field Values
-
Queue_KEY
static final String Queue_KEY
- See Also:
- Constant Field Values
-
SUFFIX_STATUS
static final String SUFFIX_STATUS
- See Also:
- Constant Field Values
-
SUFFIX_TIME
static final String SUFFIX_TIME
- See Also:
- Constant Field Values
-
SUFFIX_MESSAGE
static final String SUFFIX_MESSAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
publish
void publish(org.yamcs.protobuf.Commanding.CommandId cmdId, String key, int value)
-
publish
void publish(org.yamcs.protobuf.Commanding.CommandId cmdId, String key, long value)
-
publish
void publish(org.yamcs.protobuf.Commanding.CommandId cmdId, String key, byte[] binary)
-
addCommand
void addCommand(PreparedCommand pc)
-
publishAck
default void publishAck(org.yamcs.protobuf.Commanding.CommandId cmdId, String key, long time, CommandHistoryPublisher.AckStatus state, String message)Publish an acknowledgement status to the command history.Three entries (corresponding to command history columns) are created:
- key_Time
- key_Status
- key_Message
- Parameters:
cmdId-key-time-state-message-
-
publishAck
default void publishAck(org.yamcs.protobuf.Commanding.CommandId cmdId, String key, long time, CommandHistoryPublisher.AckStatus state)
-
commandFailed
default void commandFailed(org.yamcs.protobuf.Commanding.CommandId cmdId, long time, String reason)
-
-