/** * Flushes all the outputs for the given job to remote nodes. * * @param jobId Job ID. * @return Future. */ public GridFuture<?> flush(GridHadoopJobId jobId) { GridHadoopShuffleJob job = jobs.get(jobId); if (job == null) return new GridFinishedFutureEx<>(); try { return job.flush(); } catch (GridException e) { return new GridFinishedFutureEx<>(e); } }