Search in sources :

Example 1 with ResultFile

use of es.bsc.compss.types.data.ResultFile in project compss by bsc-wdc.

the class GetResultFilesRequest method process.

@Override
public void process(AccessProcessor ap, TaskAnalyser ta, DataInfoProvider dip, TaskDispatcher td) {
    ResultListener listener = new ResultListener(sem);
    TreeSet<Integer> writtenDataIds = ta.getAndRemoveWrittenFiles(this.appId);
    if (writtenDataIds != null) {
        for (int dataId : writtenDataIds) {
            ResultFile rf;
            rf = dip.blockDataAndGetResultFile(dataId, listener);
            if (rf == null) {
                continue;
            }
            blockedData.add(rf);
        }
        listener.enable();
    } else {
        sem.release();
    }
}
Also used : ResultListener(es.bsc.compss.types.data.operation.ResultListener) ResultFile(es.bsc.compss.types.data.ResultFile)

Aggregations

ResultFile (es.bsc.compss.types.data.ResultFile)1 ResultListener (es.bsc.compss.types.data.operation.ResultListener)1