Class AbstractServicesApi<T>

java.lang.Object
org.yamcs.protobuf.AbstractServicesApi<T>
All Implemented Interfaces:
Api<T>
Direct Known Subclasses:
ServicesApi, ServicesApiClient

@Generated(value="org.yamcs.protoc.ServiceGenerator", date="2024-04-19T02:14:52.991018454Z") public abstract class AbstractServicesApi<T> extends Object implements Api<T>
  • Constructor Details

    • AbstractServicesApi

      public AbstractServicesApi()
  • Method Details

    • listServices

      public abstract void listServices(T ctx, ListServicesRequest request, Observer<ListServicesResponse> observer)
        List services
       
    • getService

      public abstract void getService(T ctx, GetServiceRequest request, Observer<ServiceInfo> observer)
        Get a service
       
    • startService

      public abstract void startService(T ctx, StartServiceRequest request, Observer<com.google.protobuf.Empty> observer)
        Start a service
       
    • stopService

      public abstract void stopService(T ctx, StopServiceRequest request, Observer<com.google.protobuf.Empty> observer)
        Stop a service
       
        Once stopped, a service cannot be resumed. Instead a new service
        instance will be created and started.
       
    • 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>