Search in sources :

Example 1 with ImmediateCopy

use of es.bsc.compss.types.data.operation.copy.ImmediateCopy in project compss by bsc-wdc.

the class Dispatcher method processRequests.

public void processRequests() {
    DataOperation fOp;
    while (true) {
        fOp = queue.dequeue();
        if (fOp == null) {
            break;
        }
        // What kind of operation is requested?
        if (fOp instanceof ImmediateCopy) {
            // File transfer (copy)
            ImmediateCopy c = (ImmediateCopy) fOp;
            c.perform();
        } else if (fOp instanceof DeferredCopy) {
        // DO nothing
        } else {
            // fOp instanceof Delete
            Delete d = (Delete) fOp;
            performOperation(d);
        }
    }
}
Also used : DeferredCopy(es.bsc.compss.types.data.operation.copy.DeferredCopy) Delete(es.bsc.compss.types.data.operation.Delete) DataOperation(es.bsc.compss.types.data.operation.DataOperation) ImmediateCopy(es.bsc.compss.types.data.operation.copy.ImmediateCopy)

Aggregations

DataOperation (es.bsc.compss.types.data.operation.DataOperation)1 Delete (es.bsc.compss.types.data.operation.Delete)1 DeferredCopy (es.bsc.compss.types.data.operation.copy.DeferredCopy)1 ImmediateCopy (es.bsc.compss.types.data.operation.copy.ImmediateCopy)1