Package org.yamcs.protobuf
Class ManagementApiClient
- java.lang.Object
-
- org.yamcs.protobuf.AbstractManagementApi<Void>
-
- org.yamcs.protobuf.ManagementApiClient
-
public class ManagementApiClient extends AbstractManagementApi<Void>
-
-
Constructor Summary
Constructors Constructor Description ManagementApiClient(MethodHandler handler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateInstance(Void ctx, CreateInstanceRequest request, Observer<YamcsInstance> observer)Create an instancevoidgetInstance(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.voidgetInstanceTemplate(Void ctx, GetInstanceTemplateRequest request, Observer<InstanceTemplate> observer)Get an instance templatevoidgetLink(Void ctx, GetLinkRequest request, Observer<LinkInfo> observer)Get a linkvoidgetService(Void ctx, GetServiceRequest request, Observer<ServiceInfo> observer)Get a servicevoidgetSystemInfo(Void ctx, com.google.protobuf.Empty request, Observer<SystemInfo> observer)Get system infovoidlistInstances(Void ctx, ListInstancesRequest request, Observer<ListInstancesResponse> observer)List instancesvoidlistInstanceTemplates(Void ctx, com.google.protobuf.Empty request, Observer<ListInstanceTemplatesResponse> observer)List instance templatesvoidlistLinks(Void ctx, ListLinksRequest request, Observer<ListLinksResponse> observer)List linksvoidlistServices(Void ctx, ListServicesRequest request, Observer<ListServicesResponse> observer)List servicesvoidreconfigureInstance(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.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.voidstartInstance(Void ctx, StartInstanceRequest request, Observer<YamcsInstance> observer)Start an instance If the instance is in the RUNNING state, this call will do nothing.voidstartService(Void ctx, StartServiceRequest request, Observer<com.google.protobuf.Empty> observer)Start a servicevoidstopInstance(Void ctx, StopInstanceRequest request, Observer<YamcsInstance> observer)Stop an instance Stop all services of the instance.voidstopService(Void ctx, StopServiceRequest request, Observer<com.google.protobuf.Empty> observer)Stop a service Once stopped, a service cannot be resumed.voidsubscribeInstances(Void ctx, com.google.protobuf.Empty request, Observer<YamcsInstance> observer)Receive instance updatesvoidsubscribeLinks(Void ctx, SubscribeLinksRequest request, Observer<LinkEvent> observer)Receive link updatesvoidupdateLink(Void ctx, EditLinkRequest request, Observer<LinkInfo> observer)Update a link-
Methods inherited from class org.yamcs.protobuf.AbstractManagementApi
callMethod, callMethod, getDescriptorForType, getRequestPrototype, getResponsePrototype
-
-
-
-
Constructor Detail
-
ManagementApiClient
public ManagementApiClient(MethodHandler handler)
-
-
Method Detail
-
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
public final void getService(Void ctx, GetServiceRequest request, Observer<ServiceInfo> observer)
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>
-
listLinks
public final void listLinks(Void ctx, ListLinksRequest request, Observer<ListLinksResponse> observer)
List links
- Specified by:
listLinksin classAbstractManagementApi<Void>
-
getLink
public final void getLink(Void ctx, GetLinkRequest request, Observer<LinkInfo> observer)
Get a link
- Specified by:
getLinkin classAbstractManagementApi<Void>
-
updateLink
public final void updateLink(Void ctx, EditLinkRequest request, Observer<LinkInfo> observer)
Update a link
- Specified by:
updateLinkin classAbstractManagementApi<Void>
-
subscribeLinks
public final void subscribeLinks(Void ctx, SubscribeLinksRequest request, Observer<LinkEvent> observer)
Receive link updates
- Specified by:
subscribeLinksin classAbstractManagementApi<Void>
-
-