Package org.yamcs.http.api
Class InstancesApi
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createInstance
(Context ctx, CreateInstanceRequest request, Observer<YamcsInstance> observer) Create an instancevoid
getInstance
(Context 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
(Context ctx, GetInstanceTemplateRequest request, Observer<InstanceTemplate> observer) Get an instance templatevoid
listInstances
(Context ctx, ListInstancesRequest request, Observer<ListInstancesResponse> observer) List instancesvoid
listInstanceTemplates
(Context ctx, com.google.protobuf.Empty request, Observer<ListInstanceTemplatesResponse> observer) List instance templatesvoid
reconfigureInstance
(Context 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.void
restartInstance
(Context 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
(Context ctx, StartInstanceRequest request, Observer<YamcsInstance> observer) Start an instance If the instance is in the RUNNING state, this call will do nothing.void
stopInstance
(Context ctx, StopInstanceRequest request, Observer<YamcsInstance> observer) Stop an instance Stop all services of the instance.void
subscribeInstances
(Context ctx, com.google.protobuf.Empty request, Observer<YamcsInstance> observer) Receive instance updatesstatic String
verifyInstance
(String instance) static String
verifyInstance
(String instance, boolean allowGlobal) static YamcsServerInstance
verifyInstanceObj
(String instance) Methods inherited from class org.yamcs.protobuf.AbstractInstancesApi
callMethod, callMethod, getDescriptorForType, getRequestPrototype, getResponsePrototype
-
Field Details
-
ALLOWED_INSTANCE_NAMES
-
-
Constructor Details
-
InstancesApi
public InstancesApi()
-
-
Method Details
-
listInstanceTemplates
public void listInstanceTemplates(Context ctx, com.google.protobuf.Empty request, Observer<ListInstanceTemplatesResponse> observer) Description copied from class:AbstractInstancesApi
List instance templates
- Specified by:
listInstanceTemplates
in classAbstractInstancesApi<Context>
-
getInstanceTemplate
public void getInstanceTemplate(Context ctx, GetInstanceTemplateRequest request, Observer<InstanceTemplate> observer) Description copied from class:AbstractInstancesApi
Get an instance template
- Specified by:
getInstanceTemplate
in classAbstractInstancesApi<Context>
-
listInstances
public void listInstances(Context ctx, ListInstancesRequest request, Observer<ListInstancesResponse> observer) Description copied from class:AbstractInstancesApi
List instances
- Specified by:
listInstances
in classAbstractInstancesApi<Context>
-
subscribeInstances
public void subscribeInstances(Context ctx, com.google.protobuf.Empty request, Observer<YamcsInstance> observer) Description copied from class:AbstractInstancesApi
Receive instance updates
- Specified by:
subscribeInstances
in classAbstractInstancesApi<Context>
-
getInstance
Description copied from class:AbstractInstancesApi
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 classAbstractInstancesApi<Context>
-
reconfigureInstance
public void reconfigureInstance(Context ctx, ReconfigureInstanceRequest request, Observer<YamcsInstance> observer) Description copied from class:AbstractInstancesApi
Reconfigure a templated instance Regenerates the instance configuration based on the latest template source, and with optionally modified template variables.
- Specified by:
reconfigureInstance
in classAbstractInstancesApi<Context>
-
createInstance
public void createInstance(Context ctx, CreateInstanceRequest request, Observer<YamcsInstance> observer) Description copied from class:AbstractInstancesApi
Create an instance
- Specified by:
createInstance
in classAbstractInstancesApi<Context>
-
startInstance
public void startInstance(Context ctx, StartInstanceRequest request, Observer<YamcsInstance> observer) Description copied from class:AbstractInstancesApi
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 classAbstractInstancesApi<Context>
-
stopInstance
public void stopInstance(Context ctx, StopInstanceRequest request, Observer<YamcsInstance> observer) Description copied from class:AbstractInstancesApi
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 classAbstractInstancesApi<Context>
-
restartInstance
public void restartInstance(Context ctx, RestartInstanceRequest request, Observer<YamcsInstance> observer) Description copied from class:AbstractInstancesApi
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 classAbstractInstancesApi<Context>
-
verifyInstance
-
verifyInstance
-
verifyInstanceObj
-