public class ManagementApiClient extends AbstractManagementApi<Void>
| Constructor and Description |
|---|
ManagementApiClient(MethodHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
void |
createInstance(Void ctx,
CreateInstanceRequest request,
Observer<YamcsInstance> observer)
Create an instance
|
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.
|
void |
getInstanceTemplate(Void ctx,
GetInstanceTemplateRequest request,
Observer<InstanceTemplate> observer)
Get an instance template
|
void |
getLink(Void ctx,
GetLinkRequest request,
Observer<LinkInfo> observer)
Get a link
|
void |
getService(Void ctx,
GetServiceRequest request,
Observer<ServiceInfo> observer)
Get a service
|
void |
getSystemInfo(Void ctx,
com.google.protobuf.Empty request,
Observer<SystemInfo> observer)
Get system info
|
void |
listInstances(Void ctx,
ListInstancesRequest request,
Observer<ListInstancesResponse> observer)
List instances
|
void |
listInstanceTemplates(Void ctx,
com.google.protobuf.Empty request,
Observer<ListInstanceTemplatesResponse> observer)
List instance templates
|
void |
listLinks(Void ctx,
ListLinksRequest request,
Observer<ListLinksResponse> observer)
List links
|
void |
listServices(Void ctx,
ListServicesRequest request,
Observer<ListServicesResponse> observer)
List services
|
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.
|
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 service
|
void |
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 updates
|
void |
subscribeLinks(Void ctx,
SubscribeLinksRequest request,
Observer<LinkEvent> observer)
Receive link updates
|
void |
updateLink(Void ctx,
EditLinkRequest request,
Observer<LinkInfo> observer)
Update a link
|
callMethod, callMethod, getDescriptorForType, getRequestPrototype, getResponsePrototypepublic ManagementApiClient(MethodHandler handler)
public final void getSystemInfo(Void ctx, com.google.protobuf.Empty request, Observer<SystemInfo> observer)
Get system info
getSystemInfo in class AbstractManagementApi<Void>public final void listInstanceTemplates(Void ctx, com.google.protobuf.Empty request, Observer<ListInstanceTemplatesResponse> observer)
List instance templates
listInstanceTemplates in class AbstractManagementApi<Void>public final void getInstanceTemplate(Void ctx, GetInstanceTemplateRequest request, Observer<InstanceTemplate> observer)
Get an instance template
getInstanceTemplate in class AbstractManagementApi<Void>public final void listInstances(Void ctx, ListInstancesRequest request, Observer<ListInstancesResponse> observer)
List instances
listInstances in class AbstractManagementApi<Void>public final void subscribeInstances(Void ctx, com.google.protobuf.Empty request, Observer<YamcsInstance> observer)
Receive instance updates
subscribeInstances in class AbstractManagementApi<Void>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.
getInstance in class AbstractManagementApi<Void>public final void createInstance(Void ctx, CreateInstanceRequest request, Observer<YamcsInstance> observer)
Create an instance
createInstance in class AbstractManagementApi<Void>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.
startInstance in class AbstractManagementApi<Void>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.
stopInstance in class AbstractManagementApi<Void>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.
restartInstance in class AbstractManagementApi<Void>public final void listServices(Void ctx, ListServicesRequest request, Observer<ListServicesResponse> observer)
List services
listServices in class AbstractManagementApi<Void>public final void getService(Void ctx, GetServiceRequest request, Observer<ServiceInfo> observer)
Get a service
getService in class AbstractManagementApi<Void>public final void startService(Void ctx, StartServiceRequest request, Observer<com.google.protobuf.Empty> observer)
Start a service
startService in class AbstractManagementApi<Void>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.
stopService in class AbstractManagementApi<Void>public final void listLinks(Void ctx, ListLinksRequest request, Observer<ListLinksResponse> observer)
List links
listLinks in class AbstractManagementApi<Void>public final void getLink(Void ctx, GetLinkRequest request, Observer<LinkInfo> observer)
Get a link
getLink in class AbstractManagementApi<Void>public final void updateLink(Void ctx, EditLinkRequest request, Observer<LinkInfo> observer)
Update a link
updateLink in class AbstractManagementApi<Void>public final void subscribeLinks(Void ctx, SubscribeLinksRequest request, Observer<LinkEvent> observer)
Receive link updates
subscribeLinks in class AbstractManagementApi<Void>Copyright © 2020 Space Applications Services. All rights reserved.