Search in sources :

Example 1 with RestClient

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);
    }
}
Also used : lombok.val(lombok.val) RestClient(org.icgc.dcc.song.client.register.RestClient) Registry(org.icgc.dcc.song.client.register.Registry)

Example 2 with RestClient

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);
    }
}
Also used : lombok.val(lombok.val) RestClient(org.icgc.dcc.song.client.register.RestClient) Registry(org.icgc.dcc.song.client.register.Registry)

Example 3 with RestClient

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);
    }
}
Also used : lombok.val(lombok.val) RestClient(org.icgc.dcc.song.client.register.RestClient) Registry(org.icgc.dcc.song.client.register.Registry)

Aggregations

lombok.val (lombok.val)3 Registry (org.icgc.dcc.song.client.register.Registry)3 RestClient (org.icgc.dcc.song.client.register.RestClient)3