use of org.yamcs.protobuf.Rest.ListCommandInfoResponse in project yamcs-studio by yamcs.
the class CommandingCatalogue method initialiseState.
private void initialiseState() {
log.fine("Fetching available commands");
YamcsClient restClient = YamcsPlugin.getYamcsClient();
String instance = ManagementCatalogue.getCurrentYamcsInstance();
restClient.get("/mdb/" + instance + "/commands", null).whenComplete((data, exc) -> {
try {
ListCommandInfoResponse response = ListCommandInfoResponse.parseFrom(data);
processMetaCommands(response.getCommandList());
} catch (InvalidProtocolBufferException e) {
log.log(Level.SEVERE, "Failed to decode server response", e);
}
});
}
Aggregations