Search in sources :

Example 1 with EditCommandQueueRequest

use of org.yamcs.protobuf.Rest.EditCommandQueueRequest in project yamcs-studio by yamcs.

the class CommandQueuesTableViewer method updateQueueState.

// rebuild doesn't seem to do anything and therefore is not currently included in rest api
// keeping it around for future reference mostly
private void updateQueueState(CommandQueueInfo queue, QueueState queueState, boolean rebuild) {
    EditCommandQueueRequest req = EditCommandQueueRequest.newBuilder().setState(queueState.toString()).build();
    CommandingCatalogue catalogue = CommandingCatalogue.getInstance();
    catalogue.editQueue(queue, req);
}
Also used : EditCommandQueueRequest(org.yamcs.protobuf.Rest.EditCommandQueueRequest) CommandingCatalogue(org.yamcs.studio.core.model.CommandingCatalogue)

Aggregations

EditCommandQueueRequest (org.yamcs.protobuf.Rest.EditCommandQueueRequest)1 CommandingCatalogue (org.yamcs.studio.core.model.CommandingCatalogue)1