public abstract class AbstractManagementApi<T> extends Object implements Api<T>
| Constructor and Description |
|---|
AbstractManagementApi() |
| Modifier and Type | Method and Description |
|---|---|
void |
callMethod(com.google.protobuf.Descriptors.MethodDescriptor method,
T ctx,
com.google.protobuf.Message request,
Observer<com.google.protobuf.Message> future) |
Observer<com.google.protobuf.Message> |
callMethod(com.google.protobuf.Descriptors.MethodDescriptor method,
T ctx,
Observer<com.google.protobuf.Message> future) |
abstract void |
createInstance(T ctx,
CreateInstanceRequest request,
Observer<YamcsInstance> observer)
Create an instance
|
com.google.protobuf.Descriptors.ServiceDescriptor |
getDescriptorForType() |
abstract void |
getInstance(T 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.
|
abstract void |
getInstanceTemplate(T ctx,
GetInstanceTemplateRequest request,
Observer<InstanceTemplate> observer)
Get an instance template
|
abstract void |
getLink(T ctx,
GetLinkRequest request,
Observer<LinkInfo> observer)
Get a link
|
com.google.protobuf.Message |
getRequestPrototype(com.google.protobuf.Descriptors.MethodDescriptor method) |
com.google.protobuf.Message |
getResponsePrototype(com.google.protobuf.Descriptors.MethodDescriptor method) |
abstract void |
getService(T ctx,
GetServiceRequest request,
Observer<ServiceInfo> observer)
Get a service
|
abstract void |
getSystemInfo(T ctx,
com.google.protobuf.Empty request,
Observer<SystemInfo> observer)
Get system info
|
abstract void |
listInstances(T ctx,
ListInstancesRequest request,
Observer<ListInstancesResponse> observer)
List instances
|
abstract void |
listInstanceTemplates(T ctx,
com.google.protobuf.Empty request,
Observer<ListInstanceTemplatesResponse> observer)
List instance templates
|
abstract void |
listLinks(T ctx,
ListLinksRequest request,
Observer<ListLinksResponse> observer)
List links
|
abstract void |
listServices(T ctx,
ListServicesRequest request,
Observer<ListServicesResponse> observer)
List services
|
abstract void |
restartInstance(T ctx,
RestartInstanceRequest request,
Observer<YamcsInstance> observer)
Restart an instance
If the instance state is RUNNING, the instance will be stopped and then
restarted.
|
abstract void |
startInstance(T ctx,
StartInstanceRequest request,
Observer<YamcsInstance> observer)
Start an instance
If the instance is in the RUNNING state, this call will do nothing.
|
abstract void |
startService(T ctx,
StartServiceRequest request,
Observer<com.google.protobuf.Empty> observer)
Start a service
|
abstract void |
stopInstance(T ctx,
StopInstanceRequest request,
Observer<YamcsInstance> observer)
Stop an instance
Stop all services of the instance.
|
abstract void |
stopService(T ctx,
StopServiceRequest request,
Observer<com.google.protobuf.Empty> observer)
Stop a service
Once stopped, a service cannot be resumed.
|
abstract void |
subscribeInstances(T ctx,
com.google.protobuf.Empty request,
Observer<YamcsInstance> observer)
Receive instance updates
|
abstract void |
subscribeLinks(T ctx,
SubscribeLinksRequest request,
Observer<LinkEvent> observer)
Receive link updates
|
abstract void |
updateLink(T ctx,
EditLinkRequest request,
Observer<LinkInfo> observer)
Update a link
|
public abstract void getSystemInfo(T ctx, com.google.protobuf.Empty request, Observer<SystemInfo> observer)
Get system info
public abstract void listInstanceTemplates(T ctx, com.google.protobuf.Empty request, Observer<ListInstanceTemplatesResponse> observer)
List instance templates
public abstract void getInstanceTemplate(T ctx, GetInstanceTemplateRequest request, Observer<InstanceTemplate> observer)
Get an instance template
public abstract void listInstances(T ctx, ListInstancesRequest request, Observer<ListInstancesResponse> observer)
List instances
public abstract void subscribeInstances(T ctx, com.google.protobuf.Empty request, Observer<YamcsInstance> observer)
Receive instance updates
public abstract void getInstance(T 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.
public abstract void createInstance(T ctx, CreateInstanceRequest request, Observer<YamcsInstance> observer)
Create an instance
public abstract void startInstance(T 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.
public abstract void stopInstance(T 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.
public abstract void restartInstance(T 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.
public abstract void listServices(T ctx, ListServicesRequest request, Observer<ListServicesResponse> observer)
List services
public abstract void getService(T ctx, GetServiceRequest request, Observer<ServiceInfo> observer)
Get a service
public abstract void startService(T ctx, StartServiceRequest request, Observer<com.google.protobuf.Empty> observer)
Start a service
public abstract void stopService(T 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.
public abstract void listLinks(T ctx, ListLinksRequest request, Observer<ListLinksResponse> observer)
List links
public abstract void getLink(T ctx, GetLinkRequest request, Observer<LinkInfo> observer)
Get a link
public abstract void updateLink(T ctx, EditLinkRequest request, Observer<LinkInfo> observer)
Update a link
public abstract void subscribeLinks(T ctx, SubscribeLinksRequest request, Observer<LinkEvent> observer)
Receive link updates
public final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptorForType()
getDescriptorForType in interface Api<T>public final com.google.protobuf.Message getRequestPrototype(com.google.protobuf.Descriptors.MethodDescriptor method)
getRequestPrototype in interface Api<T>public final com.google.protobuf.Message getResponsePrototype(com.google.protobuf.Descriptors.MethodDescriptor method)
getResponsePrototype in interface Api<T>public final void callMethod(com.google.protobuf.Descriptors.MethodDescriptor method,
T ctx,
com.google.protobuf.Message request,
Observer<com.google.protobuf.Message> future)
callMethod in interface Api<T>Copyright © 2022 Space Applications Services. All rights reserved.