use of org.icgc.dcc.song.client.register.RestClient in project SONG by overture-stack.
the class Benchmark method waitForStatus.
public void waitForStatus(PayloadFileVisitor payloadFileVisitor) {
for (val studyId : payloadFileVisitor.getStudies()) {
val registry = new Registry(createConfig(studyId), new RestClient());
val uploadDatas = payloadFileVisitor.getDataForStudy(studyId);
waitForStatusForStudy(studyId, registry, uploadDatas);
}
}
use of org.icgc.dcc.song.client.register.RestClient in project SONG by overture-stack.
the class Benchmark method upload.
public void upload(PayloadFileVisitor payloadFileVisitor) {
for (val studyId : payloadFileVisitor.getStudies()) {
setupStudy(studyId);
val registry = new Registry(createConfig(studyId), new RestClient());
checkState(registry.isAlive(), "The song server '%s' is not running", benchmarkConfig.getAccessToken());
val uploadDatas = payloadFileVisitor.getDataForStudy(studyId);
uploadStudy(studyId, registry, uploadDatas);
}
}
use of org.icgc.dcc.song.client.register.RestClient in project SONG by overture-stack.
the class Benchmark method save.
public void save(PayloadFileVisitor payloadFileVisitor) {
for (val studyId : payloadFileVisitor.getStudies()) {
val registry = new Registry(createConfig(studyId), new RestClient());
val uploadDatas = payloadFileVisitor.getDataForStudy(studyId);
saveForStudy(studyId, registry, uploadDatas);
}
}
Aggregations