Class AbstractPacketsApi<T>

  • All Implemented Interfaces:
    Api<T>
    Direct Known Subclasses:
    PacketsApiClient

    public abstract class AbstractPacketsApi<T>
    extends Object
    implements Api<T>
    • Constructor Detail

      • AbstractPacketsApi

        public AbstractPacketsApi()
    • Method Detail

      • subscribePackets

        public abstract void subscribePackets​(T ctx,
                                              SubscribePacketsRequest request,
                                              Observer<Yamcs.TmPacketData> observer)
          Subscribe to packets
         
          This subscription is performed at stream level. It is not currently possible
          to subscribe to the telemetry of a processor (but most of the time the
          telemetry in a processor is coming from a stream).
         
          Because messages are received from a stream, NamedObjectId (which is the
          identifier of the packet) is not filled in.
         
      • 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>