Package org.yamcs.protobuf
Class AbstractCommandsApi<T>
- java.lang.Object
-
- org.yamcs.protobuf.AbstractCommandsApi<T>
-
- All Implemented Interfaces:
Api<T>
- Direct Known Subclasses:
CommandsApiClient
public abstract class AbstractCommandsApi<T> extends Object implements Api<T>
-
-
Constructor Summary
Constructors Constructor Description AbstractCommandsApi()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method 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
exportCommand(T ctx, ExportCommandRequest request, Observer<HttpBody> observer)
Export a raw commandabstract void
getCommand(T ctx, GetCommandRequest request, Observer<Commanding.CommandHistoryEntry> observer)
Get a commandcom.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 commandsabstract void
streamCommands(T ctx, StreamCommandsRequest request, Observer<Commanding.CommandHistoryEntry> observer)
Streams back commandsabstract void
subscribeCommands(T ctx, SubscribeCommandsRequest request, Observer<Commanding.CommandHistoryEntry> observer)
Receive updates on issued commandsabstract void
updateCommandHistory(T ctx, UpdateCommandHistoryRequest request, Observer<com.google.protobuf.Empty> observer)
Update command history
-
-
-
Method Detail
-
issueCommand
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.
-
updateCommandHistory
public abstract void updateCommandHistory(T ctx, UpdateCommandHistoryRequest request, Observer<com.google.protobuf.Empty> observer)
Update command history
-
listCommands
public abstract void listCommands(T ctx, ListCommandsRequest request, Observer<ListCommandsResponse> observer)
List commands
-
getCommand
public abstract void getCommand(T ctx, GetCommandRequest request, Observer<Commanding.CommandHistoryEntry> observer)
Get a command
-
streamCommands
public abstract void streamCommands(T ctx, StreamCommandsRequest request, Observer<Commanding.CommandHistoryEntry> observer)
Streams back commands
-
subscribeCommands
public abstract void subscribeCommands(T ctx, SubscribeCommandsRequest request, Observer<Commanding.CommandHistoryEntry> observer)
Receive updates on issued commands
-
exportCommand
public abstract void exportCommand(T ctx, ExportCommandRequest request, Observer<HttpBody> observer)
Export a raw command
-
getDescriptorForType
public final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfaceApi<T>
-
getRequestPrototype
public final com.google.protobuf.Message getRequestPrototype(com.google.protobuf.Descriptors.MethodDescriptor method)
- Specified by:
getRequestPrototype
in interfaceApi<T>
-
getResponsePrototype
public final com.google.protobuf.Message getResponsePrototype(com.google.protobuf.Descriptors.MethodDescriptor method)
- Specified by:
getResponsePrototype
in interfaceApi<T>
-
callMethod
public final void callMethod(com.google.protobuf.Descriptors.MethodDescriptor method, T ctx, com.google.protobuf.Message request, Observer<com.google.protobuf.Message> future)
- Specified by:
callMethod
in interfaceApi<T>
-
-