Search in sources :

Example 1 with CommandNewTask

use of es.bsc.compss.nio.commands.CommandNewTask in project compss by bsc-wdc.

the class NIOWorkerNode method submitTask.

public void submitTask(NIOJob job, List<String> obsolete) throws UnstartedNodeException {
    if (node == null) {
        throw new UnstartedNodeException();
    }
    NIOTask t = job.prepareJob();
    CommandNewTask cmd = new CommandNewTask(t, obsolete);
    Connection c = NIOAgent.getTransferManager().startConnection(node);
    c.sendCommand(cmd);
    c.finishConnection();
}
Also used : NIOTask(es.bsc.compss.nio.NIOTask) UnstartedNodeException(es.bsc.compss.exceptions.UnstartedNodeException) Connection(es.bsc.comm.Connection) CommandNewTask(es.bsc.compss.nio.commands.CommandNewTask)

Aggregations

Connection (es.bsc.comm.Connection)1 UnstartedNodeException (es.bsc.compss.exceptions.UnstartedNodeException)1 NIOTask (es.bsc.compss.nio.NIOTask)1 CommandNewTask (es.bsc.compss.nio.commands.CommandNewTask)1