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="2024-12-10T15:41:02.519975750Z")
public abstract class AbstractLinksApi<T>
extends Object
implements Api<T>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
callMethod
(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 void
disableLink
(T ctx, DisableLinkRequest request, Observer<LinkInfo> observer) Disable a linkabstract void
enableLink
(T ctx, EnableLinkRequest request, Observer<LinkInfo> observer) Enable a linkfinal com.google.protobuf.Descriptors.ServiceDescriptor
abstract void
getLink
(T ctx, GetLinkRequest request, Observer<LinkInfo> observer) Get a linkfinal com.google.protobuf.Message
getRequestPrototype
(com.google.protobuf.Descriptors.MethodDescriptor method) final com.google.protobuf.Message
getResponsePrototype
(com.google.protobuf.Descriptors.MethodDescriptor method) abstract void
listLinks
(T ctx, ListLinksRequest request, Observer<ListLinksResponse> observer) List linksabstract void
resetLinkCounters
(T ctx, ResetLinkCountersRequest request, Observer<LinkInfo> observer) Reset link countersabstract void
runAction
(T ctx, RunActionRequest request, Observer<com.google.protobuf.Struct> observer) Run a link-specific action.abstract void
subscribeLinks
(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:
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>
-
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:
callMethod
in interfaceApi<T>
-