@Override public void progress() { context.progress(); }
@Override public void stop() { context.progress(); context.setStatus("STOPPED"); }
@Override public void start() { context.progress(); context.setStatus("STARTED"); }
@Override public void progress() { if (context != null) { context.progress(); } else { taskAttemptContext.progress(); } } }
@Override public void stopSection(String section) { context.progress(); context.setStatus(StringUtils.format("STOPPED [%s]", section)); } };
@Override public void startSection(String section) { context.progress(); context.setStatus(StringUtils.format("STARTED [%s]", section)); }
@Override public void progress() { if (rep != null) { rep.progress(); } }
@Override public void progress() { context.progress(); }
@Override public void progress() { context.progress(); }
this.numRecordsReadForCurrentPartition++; this.bytesReadForCurrentPartition += key.getMessageSize(); context.progress(); mapperContext.getCounter("total", "data-read").increment(message.getPayload().length); mapperContext.getCounter("total", "event-count").increment(1);
/** * Delete the work directory * @throws IOException */ @Override public void abortTask(TaskAttemptContext context) throws IOException { if (workPath != null) { context.progress(); outputFileSystem.delete(workPath, true); } }
@Override public void write(Object dummy, Canvas r) throws IOException { plotter.merge(mergedCanvas, r); task.progress(); }
@Override public void progress(String msg) { try { if (rep != null) { rep.setStatus(msg); } }catch (Exception e) { rep.progress(); } }
@Override public void progress() { if (context != null) { context.progress(); } else { taskAttemptContext.progress(); } } }
@Override public void progress() { if (context != null) { context.progress(); } else { taskAttemptContext.progress(); } } }
@Override public void write(Object dummy, Canvas r) throws IOException { String suffix = String.format("-%05d.png", canvasesWritten++); Path p = new Path(outPath.getParent(), outPath.getName()+suffix); FSDataOutputStream outFile = outFS.create(p); // Write the merged canvas plotter.writeImage(r, outFile, this.vflip); outFile.close(); task.progress(); java.awt.Point imageLocation = mergedCanvas.projectToImageSpace(r.inputMBR.x1, r.inputMBR.y2); masterFile.printf("%d,%d,%s\n", imageLocation.x, imageHeight - imageLocation.y, p.getName()); }
@Override public void stopSection(String section) { context.progress(); context.setStatus(StringUtils.format("STOPPED [%s]", section)); } };
@Override public void startSection(String section) { context.progress(); context.setStatus(StringUtils.format("STARTED [%s]", section)); }
@Override public boolean nextKeyValue() throws IOException { if (!pcapReaderIterator.hasNext()) return false; key.set(++packetCount); value.set(pcapReaderIterator.next()); context.setStatus("Read " + getPos() + " of " + end + " bytes"); context.progress(); return true; }