Package org.yamcs.protobuf
Class AbstractCop1Api<T>
- java.lang.Object
-
- org.yamcs.protobuf.AbstractCop1Api<T>
-
- All Implemented Interfaces:
Api<T>
- Direct Known Subclasses:
Cop1ApiClient
public abstract class AbstractCop1Api<T> extends Object implements Api<T>
Methods for virtual channel TC links that have ``useCop1: true``. This service contains methods for setting/getting the configuration and performing various operations. In addition, a websocket subscription is available that will allow receiving periodically the status.
-
-
Constructor Summary
Constructors Constructor Description AbstractCop1Api()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidcallMethod(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 voiddisable(T ctx, DisableRequest request, Observer<com.google.protobuf.Empty> observer)Disable COP-1 operation This causes the sent queue to be purged.abstract voidgetConfig(T ctx, GetConfigRequest request, Observer<Cop1Config> observer)Get COP-1 configurationcom.google.protobuf.Descriptors.ServiceDescriptorgetDescriptorForType()com.google.protobuf.MessagegetRequestPrototype(com.google.protobuf.Descriptors.MethodDescriptor method)com.google.protobuf.MessagegetResponsePrototype(com.google.protobuf.Descriptors.MethodDescriptor method)abstract voidgetStatus(T ctx, GetStatusRequest request, Observer<Cop1Status> observer)Get COP-1 statusabstract voidinitialize(T ctx, InitializeRequest request, Observer<com.google.protobuf.Empty> observer)Initialize COP-1 in case state is UNITIALIZEDabstract voidresume(T ctx, ResumeRequest request, Observer<com.google.protobuf.Empty> observer)Resume COP-1 operation in case state is SUSPENDEDabstract voidsubscribeStatus(T ctx, SubscribeStatusRequest request, Observer<Cop1Status> observer)Receive COP-1 status updatesabstract voidupdateConfig(T ctx, UpdateConfigRequest request, Observer<Cop1Config> observer)Update configuration settings
-
-
-
Method Detail
-
initialize
public abstract void initialize(T ctx, InitializeRequest request, Observer<com.google.protobuf.Empty> observer)
Initialize COP-1 in case state is UNITIALIZED
-
resume
public abstract void resume(T ctx, ResumeRequest request, Observer<com.google.protobuf.Empty> observer)
Resume COP-1 operation in case state is SUSPENDED
-
disable
public abstract void disable(T ctx, DisableRequest request, Observer<com.google.protobuf.Empty> observer)
Disable COP-1 operation This causes the sent queue to be purged. All TCs from the wait queue, as well as newly received TCs are sent immediately
-
updateConfig
public abstract void updateConfig(T ctx, UpdateConfigRequest request, Observer<Cop1Config> observer)
Update configuration settings
-
getConfig
public abstract void getConfig(T ctx, GetConfigRequest request, Observer<Cop1Config> observer)
Get COP-1 configuration
-
getStatus
public abstract void getStatus(T ctx, GetStatusRequest request, Observer<Cop1Status> observer)
Get COP-1 status
-
subscribeStatus
public abstract void subscribeStatus(T ctx, SubscribeStatusRequest request, Observer<Cop1Status> observer)
Receive COP-1 status updates
-
getDescriptorForType
public final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfaceApi<T>
-
getRequestPrototype
public final com.google.protobuf.Message getRequestPrototype(com.google.protobuf.Descriptors.MethodDescriptor method)
- Specified by:
getRequestPrototypein interfaceApi<T>
-
getResponsePrototype
public final com.google.protobuf.Message getResponsePrototype(com.google.protobuf.Descriptors.MethodDescriptor method)
- Specified by:
getResponsePrototypein 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:
callMethodin interfaceApi<T>
-
-