Package org.yamcs.protobuf.links
Class AbstractLinksApi<T>
java.lang.Object
org.yamcs.protobuf.links.AbstractLinksApi<T>
- All Implemented Interfaces:
Api<T>
- Direct Known Subclasses:
LinksApi,LinksApiClient
@Generated(value="org.yamcs.maven.ServiceGenerator",
date="2025-12-09T11:46:26.544038976Z")
public abstract class AbstractLinksApi<T>
extends Object
implements Api<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidcallMethod(com.google.protobuf.Descriptors.MethodDescriptor method, T ctx, com.google.protobuf.Message request, Observer<com.google.protobuf.Message> future) final Observer<com.google.protobuf.Message>callMethod(com.google.protobuf.Descriptors.MethodDescriptor method, T ctx, Observer<com.google.protobuf.Message> future) abstract voiddisableLink(T ctx, DisableLinkRequest request, Observer<LinkInfo> observer) Disable a linkabstract voidenableLink(T ctx, EnableLinkRequest request, Observer<LinkInfo> observer) Enable a linkfinal com.google.protobuf.Descriptors.ServiceDescriptorabstract voidgetLink(T ctx, GetLinkRequest request, Observer<LinkInfo> observer) Get a linkfinal com.google.protobuf.MessagegetRequestPrototype(com.google.protobuf.Descriptors.MethodDescriptor method) final com.google.protobuf.MessagegetResponsePrototype(com.google.protobuf.Descriptors.MethodDescriptor method) abstract voidlistLinks(T ctx, ListLinksRequest request, Observer<ListLinksResponse> observer) List linksabstract voidresetLinkCounters(T ctx, ResetLinkCountersRequest request, Observer<LinkInfo> observer) Reset link countersabstract voidrunAction(T ctx, RunActionRequest request, Observer<com.google.protobuf.Struct> observer) Run a link-specific action.abstract voidsubscribeLinks(T ctx, SubscribeLinksRequest request, Observer<LinkEvent> observer) Receive link updates
-
Constructor Details
-
AbstractLinksApi
public AbstractLinksApi()
-
-
Method Details
-
listLinks
public abstract void listLinks(T ctx, ListLinksRequest request, Observer<ListLinksResponse> observer) List links
-
getLink
Get a link
-
enableLink
Enable a link
-
disableLink
Disable a link
-
resetLinkCounters
public abstract void resetLinkCounters(T ctx, ResetLinkCountersRequest request, Observer<LinkInfo> observer) Reset link counters
-
subscribeLinks
public abstract void subscribeLinks(T ctx, SubscribeLinksRequest request, Observer<LinkEvent> observer) Receive link updates
-
runAction
public abstract void runAction(T ctx, RunActionRequest request, Observer<com.google.protobuf.Struct> observer) Run a link-specific action. It is up to the link implementation to register and handle any link actions.
-
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>
-
callMethod
public final Observer<com.google.protobuf.Message> callMethod(com.google.protobuf.Descriptors.MethodDescriptor method, T ctx, Observer<com.google.protobuf.Message> future) - Specified by:
callMethodin interfaceApi<T>
-