public class Command extends Object implements Comparable<Command>
| Constructor and Description |
|---|
Command(IssueCommandResponse response) |
Command(String id,
String name,
String origin,
int sequenceNumber,
Instant generationTime) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Command other) |
boolean |
equals(Object obj) |
Acknowledgment |
getAcknowledgment(String name) |
LinkedHashMap<String,Acknowledgment> |
getAcknowledgments()
All acknowledgments by name
|
<T> T |
getAttribute(String key) |
Map<String,Object> |
getAttributes()
Returns all attributes of this commands.
|
byte[] |
getBinary()
Binary representation of the command
|
String |
getComment() |
String |
getError()
Error message in case this command failed
|
LinkedHashMap<String,Object> |
getExtraAttributes()
Returns non-standard attributes
|
Instant |
getGenerationTime() |
String |
getId() |
String |
getName() |
String |
getOrigin() |
String |
getQueue()
The assigned command queue
|
Acknowledgment |
getQueuedAcknowledgment() |
Acknowledgment |
getReleasedAcknowledgment() |
Acknowledgment |
getSentAcknowledgment() |
int |
getSequenceNumber() |
String |
getSource()
String representation of the command
|
String |
getUsername()
Username of the issuer
|
int |
hashCode() |
boolean |
isComplete()
Returns whether this command is complete.
|
boolean |
isFailure()
Returns true if this command failed
|
boolean |
isSuccess()
Returns true if this command has completed successfully
|
void |
merge(Command other) |
void |
merge(Commanding.CommandHistoryEntry entry) |
String |
toString() |
public Command(String id, String name, String origin, int sequenceNumber, Instant generationTime)
public Command(IssueCommandResponse response)
public String getId()
public Instant getGenerationTime()
public String getName()
public String getOrigin()
public int getSequenceNumber()
public String getUsername()
public String getQueue()
public String getSource()
public byte[] getBinary()
public <T> T getAttribute(String key)
public boolean isComplete()
public boolean isSuccess()
public boolean isFailure()
public String getError()
public String getComment()
public void merge(Commanding.CommandHistoryEntry entry)
public void merge(Command other)
public LinkedHashMap<String,Object> getExtraAttributes()
public LinkedHashMap<String,Acknowledgment> getAcknowledgments()
public Acknowledgment getQueuedAcknowledgment()
public Acknowledgment getReleasedAcknowledgment()
public Acknowledgment getSentAcknowledgment()
public Acknowledgment getAcknowledgment(String name)
public int compareTo(Command other)
compareTo in interface Comparable<Command>Copyright © 2022 Space Applications Services. All rights reserved.