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.protoc.ServiceGenerator", date="2024-03-28T20:02:53.905590222Z") public abstract class AbstractLinksApi<T> extends Object implements Api<T>
  • Constructor Details

    • AbstractLinksApi

      public AbstractLinksApi()
  • Method Details

    • listLinks

      public abstract void listLinks(T ctx, ListLinksRequest request, Observer<ListLinksResponse> observer)
        List links
       
    • getLink

      public abstract void getLink(T ctx, GetLinkRequest request, Observer<LinkInfo> observer)
        Get a link
       
    • updateLink

      public abstract void updateLink(T ctx, EditLinkRequest request, Observer<LinkInfo> observer)
        Update a link
       
    • enableLink

      public abstract void enableLink(T ctx, EnableLinkRequest request, Observer<LinkInfo> observer)
        Enable a link
       
    • disableLink

      public abstract void disableLink(T ctx, DisableLinkRequest request, Observer<LinkInfo> observer)
        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 interface Api<T>
    • getRequestPrototype

      public final com.google.protobuf.Message getRequestPrototype(com.google.protobuf.Descriptors.MethodDescriptor method)
      Specified by:
      getRequestPrototype in interface Api<T>
    • getResponsePrototype

      public final com.google.protobuf.Message getResponsePrototype(com.google.protobuf.Descriptors.MethodDescriptor method)
      Specified by:
      getResponsePrototype in interface Api<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 interface Api<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 interface Api<T>