protected void printStatus(Map<String, SparkStageProgress> progressMap, Map<String, SparkStageProgress> lastProgressMap) { // do not print duplicate status while still in middle of print interval. boolean isDuplicateState = isSameAsPreviousProgress(progressMap, lastProgressMap); boolean withinInterval = System.currentTimeMillis() <= lastPrintTime + printInterval; if (isDuplicateState && withinInterval) { return; } String report = getReport(progressMap); if (inPlaceUpdate) { printStatusInPlace(progressMap); console.logInfo(report); } else { console.printInfo(report); } lastPrintTime = System.currentTimeMillis(); }
console.printInfo(format); } else { console.logInfo(format);
console.printInfo(format); } else { console.logInfo(format);
public void logInfo(String info) { logInfo(info, null); }
private String logStatus(Map<String, Progress> progressMap, String lastReport, LogHelper console) { String report = getReport(progressMap); if (!report.equals(lastReport) || System.currentTimeMillis() >= lastPrintTime + printInterval) { console.logInfo(report); lastPrintTime = System.currentTimeMillis(); } return report; }
public void logInfo(String info) { logInfo(info, null); }
@Override public void renderReport(String report) { monitor.console.logInfo(report); } }
@Override void renderReport(String report) { monitor.console.logInfo(report); } }
@Override public void renderReport(String report) { monitor.console.logInfo(report); } }
/** * Logs into the log file. * BeeLine uses the operation log file to show the logs to the user, so depending on the * BeeLine settings it could be shown to the user. * @param info The log message */ public void logInfo(String info) { logInfo(info, null); }