Package org.yamcs.http.api
Class ServicesApi
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
getService
(Context ctx, GetServiceRequest request, Observer<ServiceInfo> observer) Get a servicevoid
listServices
(Context ctx, ListServicesRequest request, Observer<ListServicesResponse> observer) List servicesvoid
startService
(Context ctx, StartServiceRequest request, Observer<com.google.protobuf.Empty> observer) Start a servicevoid
stopService
(Context ctx, StopServiceRequest request, Observer<com.google.protobuf.Empty> observer) Stop a service Once stopped, a service cannot be resumed.static ServiceInfo
toServiceInfo
(ProcessorServiceWithConfig serviceWithConfig, String instance, String processor) static ServiceInfo
toServiceInfo
(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:AbstractServicesApi
List services
- Specified by:
listServices
in classAbstractServicesApi<Context>
-
getService
Description copied from class:AbstractServicesApi
Get a service
- Specified by:
getService
in classAbstractServicesApi<Context>
-
startService
public void startService(Context ctx, StartServiceRequest request, Observer<com.google.protobuf.Empty> observer) Description copied from class:AbstractServicesApi
Start a service
- Specified by:
startService
in classAbstractServicesApi<Context>
-
stopService
public void stopService(Context ctx, StopServiceRequest request, Observer<com.google.protobuf.Empty> observer) Description copied from class:AbstractServicesApi
Stop a service Once stopped, a service cannot be resumed. Instead a new service instance will be created and started.
- Specified by:
stopService
in classAbstractServicesApi<Context>
-
toServiceInfo
public static ServiceInfo toServiceInfo(ServiceWithConfig serviceWithConfig, String instance, String processor) -
toServiceInfo
public static ServiceInfo toServiceInfo(ProcessorServiceWithConfig serviceWithConfig, String instance, String processor)
-