use of org.yamcs.protobuf.Rest.ListEventsResponse in project yamcs-studio by yamcs.
the class EventLog method fetchLatestEvents.
private void fetchLatestEvents() {
String instance = ManagementCatalogue.getCurrentYamcsInstance();
EventCatalogue.getInstance().fetchLatestEvents(instance).whenComplete((data, exc) -> {
try {
ListEventsResponse response = ListEventsResponse.parseFrom(data);
Display.getDefault().asyncExec(() -> {
addEvents(response.getEventList());
});
} catch (InvalidProtocolBufferException e) {
log.log(Level.SEVERE, "Failed to decode server message", e);
}
});
}
Aggregations