Package org.yamcs.protobuf
Class Cop1ApiClient
- java.lang.Object
-
- org.yamcs.protobuf.AbstractCop1Api<Void>
-
- org.yamcs.protobuf.Cop1ApiClient
-
public class Cop1ApiClient extends AbstractCop1Api<Void>
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 Cop1ApiClient(MethodHandler handler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisable(Void ctx, DisableRequest request, Observer<com.google.protobuf.Empty> observer)Disable COP-1 operation This causes the sent queue to be purged.voidgetConfig(Void ctx, GetConfigRequest request, Observer<Cop1Config> observer)Get COP-1 configurationvoidgetStatus(Void ctx, GetStatusRequest request, Observer<Cop1Status> observer)Get COP-1 statusvoidinitialize(Void ctx, InitializeRequest request, Observer<com.google.protobuf.Empty> observer)Initialize COP-1 in case state is UNITIALIZEDvoidresume(Void ctx, ResumeRequest request, Observer<com.google.protobuf.Empty> observer)Resume COP-1 operation in case state is SUSPENDEDvoidsubscribeStatus(Void ctx, SubscribeStatusRequest request, Observer<Cop1Status> observer)Receive COP-1 status updatesvoidupdateConfig(Void ctx, UpdateConfigRequest request, Observer<Cop1Config> observer)Update configuration settings-
Methods inherited from class org.yamcs.protobuf.AbstractCop1Api
callMethod, callMethod, getDescriptorForType, getRequestPrototype, getResponsePrototype
-
-
-
-
Constructor Detail
-
Cop1ApiClient
public Cop1ApiClient(MethodHandler handler)
-
-
Method Detail
-
initialize
public final void initialize(Void ctx, InitializeRequest request, Observer<com.google.protobuf.Empty> observer)
Initialize COP-1 in case state is UNITIALIZED
- Specified by:
initializein classAbstractCop1Api<Void>
-
resume
public final void resume(Void ctx, ResumeRequest request, Observer<com.google.protobuf.Empty> observer)
Resume COP-1 operation in case state is SUSPENDED
- Specified by:
resumein classAbstractCop1Api<Void>
-
disable
public final void disable(Void 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
- Specified by:
disablein classAbstractCop1Api<Void>
-
updateConfig
public final void updateConfig(Void ctx, UpdateConfigRequest request, Observer<Cop1Config> observer)
Update configuration settings
- Specified by:
updateConfigin classAbstractCop1Api<Void>
-
getConfig
public final void getConfig(Void ctx, GetConfigRequest request, Observer<Cop1Config> observer)
Get COP-1 configuration
- Specified by:
getConfigin classAbstractCop1Api<Void>
-
getStatus
public final void getStatus(Void ctx, GetStatusRequest request, Observer<Cop1Status> observer)
Get COP-1 status
- Specified by:
getStatusin classAbstractCop1Api<Void>
-
subscribeStatus
public final void subscribeStatus(Void ctx, SubscribeStatusRequest request, Observer<Cop1Status> observer)
Receive COP-1 status updates
- Specified by:
subscribeStatusin classAbstractCop1Api<Void>
-
-