public abstract class AbstractCommandsApi<T> extends Object implements Api<T>
| Constructor and Description |
|---|
AbstractCommandsApi() |
| Modifier and Type | Method and Description |
|---|---|
void |
callMethod(com.google.protobuf.Descriptors.MethodDescriptor method,
T ctx,
com.google.protobuf.Message request,
Observer<com.google.protobuf.Message> future) |
Observer<com.google.protobuf.Message> |
callMethod(com.google.protobuf.Descriptors.MethodDescriptor method,
T ctx,
Observer<com.google.protobuf.Message> future) |
abstract void |
getCommand(T ctx,
GetCommandRequest request,
Observer<Commanding.CommandHistoryEntry> observer)
Get a command
|
com.google.protobuf.Descriptors.ServiceDescriptor |
getDescriptorForType() |
com.google.protobuf.Message |
getRequestPrototype(com.google.protobuf.Descriptors.MethodDescriptor method) |
com.google.protobuf.Message |
getResponsePrototype(com.google.protobuf.Descriptors.MethodDescriptor method) |
abstract void |
issueCommand(T ctx,
IssueCommandRequest request,
Observer<IssueCommandResponse> observer)
Issue a command
After validating the input parameters, the command will be added to the appropriate
command queue for further dispatch.
|
abstract void |
listCommands(T ctx,
ListCommandsRequest request,
Observer<ListCommandsResponse> observer)
List commands
|
abstract void |
streamCommands(T ctx,
StreamCommandsRequest request,
Observer<Commanding.CommandHistoryEntry> observer)
Streams back commands
|
abstract void |
subscribeCommands(T ctx,
SubscribeCommandsRequest request,
Observer<Commanding.CommandHistoryEntry> observer)
Receive updates on issued commands
|
abstract void |
updateCommandHistory(T ctx,
UpdateCommandHistoryRequest request,
Observer<com.google.protobuf.Empty> observer)
Update command history
|
public abstract void issueCommand(T ctx, IssueCommandRequest request, Observer<IssueCommandResponse> observer)
Issue a command After validating the input parameters, the command will be added to the appropriate command queue for further dispatch.
public abstract void updateCommandHistory(T ctx, UpdateCommandHistoryRequest request, Observer<com.google.protobuf.Empty> observer)
Update command history
public abstract void listCommands(T ctx, ListCommandsRequest request, Observer<ListCommandsResponse> observer)
List commands
public abstract void getCommand(T ctx, GetCommandRequest request, Observer<Commanding.CommandHistoryEntry> observer)
Get a command
public abstract void streamCommands(T ctx, StreamCommandsRequest request, Observer<Commanding.CommandHistoryEntry> observer)
Streams back commands
public abstract void subscribeCommands(T ctx, SubscribeCommandsRequest request, Observer<Commanding.CommandHistoryEntry> observer)
Receive updates on issued commands
public final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptorForType()
getDescriptorForType in interface Api<T>public final com.google.protobuf.Message getRequestPrototype(com.google.protobuf.Descriptors.MethodDescriptor method)
getRequestPrototype in interface Api<T>public final com.google.protobuf.Message getResponsePrototype(com.google.protobuf.Descriptors.MethodDescriptor method)
getResponsePrototype in interface Api<T>public final void callMethod(com.google.protobuf.Descriptors.MethodDescriptor method,
T ctx,
com.google.protobuf.Message request,
Observer<com.google.protobuf.Message> future)
callMethod in interface Api<T>Copyright © 2022 Space Applications Services. All rights reserved.