use of org.yamcs.studio.core.client.YamcsClient in project yamcs-studio by yamcs.
the class ArchiveCatalogue method createTag.
public CompletableFuture<byte[]> createTag(CreateTagRequest request) {
YamcsClient yamcsClient = YamcsPlugin.getYamcsClient();
String instance = ManagementCatalogue.getCurrentYamcsInstance();
return yamcsClient.post("/archive/" + instance + "/tags", request);
}
use of org.yamcs.studio.core.client.YamcsClient in project yamcs-studio by yamcs.
the class ArchiveCatalogue method downloadIndexes.
public CompletableFuture<Void> downloadIndexes(TimeInterval interval, BulkRestDataReceiver receiver) {
String instance = ManagementCatalogue.getCurrentYamcsInstance();
URLBuilder urlb = new URLBuilder("/archive/" + instance + "/indexes");
urlb.setParam("filter", Arrays.asList("tm", "pp", "commands", "completeness"));
if (interval.hasStart())
urlb.setParam("start", interval.getStartUTC());
if (interval.hasStop())
urlb.setParam("stop", interval.getStopUTC());
YamcsClient yamcsClient = YamcsPlugin.getYamcsClient();
return yamcsClient.streamGet(urlb.toString(), null, receiver);
}
use of org.yamcs.studio.core.client.YamcsClient in project yamcs-studio by yamcs.
the class ArchiveCatalogue method downloadCommands.
public CompletableFuture<Void> downloadCommands(TimeInterval interval, BulkRestDataReceiver receiver) {
String instance = ManagementCatalogue.getCurrentYamcsInstance();
URLBuilder urlb = new URLBuilder("/archive/" + instance + "/downloads/commands");
if (interval.hasStart())
urlb.setParam("start", interval.getStartUTC());
if (interval.hasStop())
urlb.setParam("stop", interval.getStopUTC());
YamcsClient yamcsClient = YamcsPlugin.getYamcsClient();
return yamcsClient.streamGet(urlb.toString(), null, receiver);
}
use of org.yamcs.studio.core.client.YamcsClient in project yamcs-studio by yamcs.
the class ArchiveCatalogue method editTag.
public CompletableFuture<byte[]> editTag(long tagTime, int tagId, EditTagRequest request) {
YamcsClient yamcsClient = YamcsPlugin.getYamcsClient();
String instance = ManagementCatalogue.getCurrentYamcsInstance();
return yamcsClient.put("/archive/" + instance + "/tags/" + tagTime + "/" + tagId, request);
}
use of org.yamcs.studio.core.client.YamcsClient in project yamcs-studio by yamcs.
the class CommandingCatalogue method sendCommand.
public CompletableFuture<byte[]> sendCommand(String processor, String commandName, IssueCommandRequest request) {
String instance = ManagementCatalogue.getCurrentYamcsInstance();
YamcsClient yamcsClient = YamcsPlugin.getYamcsClient();
return yamcsClient.post("/processors/" + instance + "/" + processor + "/commands" + commandName, request);
}
Aggregations