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 void
createInstance(Void ctx, CreateInstanceRequest request, Observer<YamcsInstance> observer)
Create an instancevoid
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.void
getInstanceTemplate(Void ctx, GetInstanceTemplateRequest request, Observer<InstanceTemplate> observer)
Get an instance templatevoid
getLink(Void ctx, GetLinkRequest request, Observer<LinkInfo> observer)
Get a linkvoid
getService(Void ctx, GetServiceRequest request, Observer<ServiceInfo> observer)
Get a servicevoid
getSystemInfo(Void ctx, com.google.protobuf.Empty request, Observer<SystemInfo> observer)
Get system infovoid
listInstances(Void ctx, ListInstancesRequest request, Observer<ListInstancesResponse> observer)
List instancesvoid
listInstanceTemplates(Void ctx, com.google.protobuf.Empty request, Observer<ListInstanceTemplatesResponse> observer)
List instance templatesvoid
listLinks(Void ctx, ListLinksRequest request, Observer<ListLinksResponse> observer)
List linksvoid
listServices(Void ctx, ListServicesRequest request, Observer<ListServicesResponse> observer)
List servicesvoid
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.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.void
startService(Void ctx, StartServiceRequest request, Observer<com.google.protobuf.Empty> observer)
Start a servicevoid
stopInstance(Void ctx, StopInstanceRequest request, Observer<YamcsInstance> observer)
Stop an instance Stop all services of the instance.void
stopService(Void ctx, StopServiceRequest request, Observer<com.google.protobuf.Empty> observer)
Stop a service Once stopped, a service cannot be resumed.void
subscribeInstances(Void ctx, com.google.protobuf.Empty request, Observer<YamcsInstance> observer)
Receive instance updatesvoid
subscribeLinks(Void ctx, SubscribeLinksRequest request, Observer<LinkEvent> observer)
Receive link updatesvoid
updateLink(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:
getSystemInfo
in classAbstractManagementApi<Void>
-
listInstanceTemplates
public final void listInstanceTemplates(Void ctx, com.google.protobuf.Empty request, Observer<ListInstanceTemplatesResponse> observer)
List instance templates
- Specified by:
listInstanceTemplates
in classAbstractManagementApi<Void>
-
getInstanceTemplate
public final void getInstanceTemplate(Void ctx, GetInstanceTemplateRequest request, Observer<InstanceTemplate> observer)
Get an instance template
- Specified by:
getInstanceTemplate
in classAbstractManagementApi<Void>
-
listInstances
public final void listInstances(Void ctx, ListInstancesRequest request, Observer<ListInstancesResponse> observer)
List instances
- Specified by:
listInstances
in classAbstractManagementApi<Void>
-
subscribeInstances
public final void subscribeInstances(Void ctx, com.google.protobuf.Empty request, Observer<YamcsInstance> observer)
Receive instance updates
- Specified by:
subscribeInstances
in 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:
getInstance
in classAbstractManagementApi<Void>
-
createInstance
public final void createInstance(Void ctx, CreateInstanceRequest request, Observer<YamcsInstance> observer)
Create an instance
- Specified by:
createInstance
in 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:
startInstance
in 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:
stopInstance
in 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:
restartInstance
in classAbstractManagementApi<Void>
-
listServices
public final void listServices(Void ctx, ListServicesRequest request, Observer<ListServicesResponse> observer)
List services
- Specified by:
listServices
in classAbstractManagementApi<Void>
-
getService
public final void getService(Void ctx, GetServiceRequest request, Observer<ServiceInfo> observer)
Get a service
- Specified by:
getService
in classAbstractManagementApi<Void>
-
startService
public final void startService(Void ctx, StartServiceRequest request, Observer<com.google.protobuf.Empty> observer)
Start a service
- Specified by:
startService
in 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:
stopService
in classAbstractManagementApi<Void>
-
listLinks
public final void listLinks(Void ctx, ListLinksRequest request, Observer<ListLinksResponse> observer)
List links
- Specified by:
listLinks
in classAbstractManagementApi<Void>
-
getLink
public final void getLink(Void ctx, GetLinkRequest request, Observer<LinkInfo> observer)
Get a link
- Specified by:
getLink
in classAbstractManagementApi<Void>
-
updateLink
public final void updateLink(Void ctx, EditLinkRequest request, Observer<LinkInfo> observer)
Update a link
- Specified by:
updateLink
in classAbstractManagementApi<Void>
-
subscribeLinks
public final void subscribeLinks(Void ctx, SubscribeLinksRequest request, Observer<LinkEvent> observer)
Receive link updates
- Specified by:
subscribeLinks
in classAbstractManagementApi<Void>
-
-