Package org.yamcs.http.api
Class ServicesApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetService(Context ctx, GetServiceRequest request, Observer<ServiceInfo> observer) Get a servicevoidlistServices(Context ctx, ListServicesRequest request, Observer<ListServicesResponse> observer) List servicesvoidstartService(Context ctx, StartServiceRequest request, Observer<com.google.protobuf.Empty> observer) Start a servicevoidstopService(Context ctx, StopServiceRequest request, Observer<com.google.protobuf.Empty> observer) Stop a service Once stopped, a service cannot be resumed.static ServiceInfotoServiceInfo(ProcessorServiceWithConfig serviceWithConfig, String instance, String processor) static ServiceInfotoServiceInfo(ServiceWithConfig serviceWithConfig, String instance, String processor) Methods inherited from class org.yamcs.protobuf.AbstractServicesApi
callMethod, callMethod, getDescriptorForType, getRequestPrototype, getResponsePrototype
-
Constructor Details
-
ServicesApi
public ServicesApi()
-
-
Method Details
-
listServices
public void listServices(Context ctx, ListServicesRequest request, Observer<ListServicesResponse> observer) Description copied from class:AbstractServicesApiList services
- Specified by:
listServicesin classAbstractServicesApi<Context>
-
getService
Description copied from class:AbstractServicesApiGet a service
- Specified by:
getServicein classAbstractServicesApi<Context>
-
startService
public void startService(Context ctx, StartServiceRequest request, Observer<com.google.protobuf.Empty> observer) Description copied from class:AbstractServicesApiStart a service
- Specified by:
startServicein classAbstractServicesApi<Context>
-
stopService
public void stopService(Context ctx, StopServiceRequest request, Observer<com.google.protobuf.Empty> observer) Description copied from class:AbstractServicesApiStop a service Once stopped, a service cannot be resumed. Instead a new service instance will be created and started.
- Specified by:
stopServicein classAbstractServicesApi<Context>
-
toServiceInfo
public static ServiceInfo toServiceInfo(ServiceWithConfig serviceWithConfig, String instance, String processor) -
toServiceInfo
public static ServiceInfo toServiceInfo(ProcessorServiceWithConfig serviceWithConfig, String instance, String processor)
-