-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidcreateInstance(Void ctx, CreateInstanceRequest request, Observer<YamcsInstance> observer) Create an instancefinal voidgetInstance(Void ctx, GetInstanceRequest request, Observer<YamcsInstance> observer) Get an instance If an instance does not have web services enabled, it will be listed among the results, but none of its URLs will be filled in.final voidgetInstanceTemplate(Void ctx, GetInstanceTemplateRequest request, Observer<InstanceTemplate> observer) Get an instance templatefinal voidgetService(Void ctx, GetServiceRequest request, Observer<ServiceInfo> observer) Get a servicefinal voidgetSystemInfo(Void ctx, com.google.protobuf.Empty request, Observer<SystemInfo> observer) Get system infofinal voidlistInstances(Void ctx, ListInstancesRequest request, Observer<ListInstancesResponse> observer) List instancesfinal voidlistInstanceTemplates(Void ctx, com.google.protobuf.Empty request, Observer<ListInstanceTemplatesResponse> observer) List instance templatesfinal voidlistServices(Void ctx, ListServicesRequest request, Observer<ListServicesResponse> observer) List servicesfinal voidreconfigureInstance(Void ctx, ReconfigureInstanceRequest request, Observer<YamcsInstance> observer) Reconfigure a templated instance Regenerates the instance configuration based on the latest template source, and with optionally modified template variables.final voidrestartInstance(Void ctx, RestartInstanceRequest request, Observer<YamcsInstance> observer) Restart an instance If the instance state is RUNNING, the instance will be stopped and then restarted.final voidstartInstance(Void ctx, StartInstanceRequest request, Observer<YamcsInstance> observer) Start an instance If the instance is in the RUNNING state, this call will do nothing.final voidstartService(Void ctx, StartServiceRequest request, Observer<com.google.protobuf.Empty> observer) Start a servicefinal voidstopInstance(Void ctx, StopInstanceRequest request, Observer<YamcsInstance> observer) Stop an instance Stop all services of the instance.final voidstopService(Void ctx, StopServiceRequest request, Observer<com.google.protobuf.Empty> observer) Stop a service Once stopped, a service cannot be resumed.final voidsubscribeInstances(Void ctx, com.google.protobuf.Empty request, Observer<YamcsInstance> observer) Receive instance updatesMethods inherited from class org.yamcs.protobuf.AbstractManagementApi
callMethod, callMethod, getDescriptorForType, getRequestPrototype, getResponsePrototype
-
Constructor Details
-
ManagementApiClient
-
-
Method Details
-
getSystemInfo
public final void getSystemInfo(Void ctx, com.google.protobuf.Empty request, Observer<SystemInfo> observer) Get system info
- Specified by:
getSystemInfoin classAbstractManagementApi<Void>
-
listInstanceTemplates
public final void listInstanceTemplates(Void ctx, com.google.protobuf.Empty request, Observer<ListInstanceTemplatesResponse> observer) List instance templates
- Specified by:
listInstanceTemplatesin classAbstractManagementApi<Void>
-
getInstanceTemplate
public final void getInstanceTemplate(Void ctx, GetInstanceTemplateRequest request, Observer<InstanceTemplate> observer) Get an instance template
- Specified by:
getInstanceTemplatein classAbstractManagementApi<Void>
-
listInstances
public final void listInstances(Void ctx, ListInstancesRequest request, Observer<ListInstancesResponse> observer) List instances
- Specified by:
listInstancesin classAbstractManagementApi<Void>
-
subscribeInstances
public final void subscribeInstances(Void ctx, com.google.protobuf.Empty request, Observer<YamcsInstance> observer) Receive instance updates
- Specified by:
subscribeInstancesin classAbstractManagementApi<Void>
-
getInstance
public final void getInstance(Void ctx, GetInstanceRequest request, Observer<YamcsInstance> observer) Get an instance If an instance does not have web services enabled, it will be listed among the results, but none of its URLs will be filled in.
- Specified by:
getInstancein classAbstractManagementApi<Void>
-
createInstance
public final void createInstance(Void ctx, CreateInstanceRequest request, Observer<YamcsInstance> observer) Create an instance
- Specified by:
createInstancein classAbstractManagementApi<Void>
-
reconfigureInstance
public final void reconfigureInstance(Void ctx, ReconfigureInstanceRequest request, Observer<YamcsInstance> observer) Reconfigure a templated instance Regenerates the instance configuration based on the latest template source, and with optionally modified template variables.
- Specified by:
reconfigureInstancein classAbstractManagementApi<Void>
-
startInstance
public final void startInstance(Void ctx, StartInstanceRequest request, Observer<YamcsInstance> observer) Start an instance If the instance is in the RUNNING state, this call will do nothing. Otherwise the instance will be started.
- Specified by:
startInstancein classAbstractManagementApi<Void>
-
stopInstance
public final void stopInstance(Void ctx, StopInstanceRequest request, Observer<YamcsInstance> observer) Stop an instance Stop all services of the instance. The instance state will be OFFLINE. If the instance state is already OFFLINE, this call will do nothing.
- Specified by:
stopInstancein classAbstractManagementApi<Void>
-
restartInstance
public final void restartInstance(Void ctx, RestartInstanceRequest request, Observer<YamcsInstance> observer) Restart an instance If the instance state is RUNNING, the instance will be stopped and then restarted. Otherwise the instance will be started. Note that the Mission Database will also be reloaded before restart.
- Specified by:
restartInstancein classAbstractManagementApi<Void>
-
listServices
public final void listServices(Void ctx, ListServicesRequest request, Observer<ListServicesResponse> observer) List services
- Specified by:
listServicesin classAbstractManagementApi<Void>
-
getService
Get a service
- Specified by:
getServicein classAbstractManagementApi<Void>
-
startService
public final void startService(Void ctx, StartServiceRequest request, Observer<com.google.protobuf.Empty> observer) Start a service
- Specified by:
startServicein classAbstractManagementApi<Void>
-
stopService
public final void stopService(Void 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.
- Specified by:
stopServicein classAbstractManagementApi<Void>
-