@Override public void setActionReport(ActionReport newReport) { wrapped.setActionReport(newReport); }
@Override public void setActionReport(ActionReport newReport) { wrapped.setActionReport(newReport); }
/** * The stock ActionReport we get is too inefficient. Replace it with * PlainText note that we might be called with HTML or XML or JSON or * others! */ private void prepareReporter() { reporter = (ActionReporter) context.getActionReport(); if (reporter instanceof PlainTextActionReporter) { // already setup correctly - don't change it!! plainReporter = (PlainTextActionReporter) reporter; } else if (reporter instanceof PropsFileActionReporter) { plainReporter = new PlainTextActionReporter(); reporter = plainReporter; context.setActionReport(plainReporter); } else { plainReporter = null; } }
private void runAggregate() { List<String> list = getOutputLines(); ActionReport aggregateReporter = null; if (aggregateDataOnly) { plainReporter = new PlainTextActionReporter(); aggregateReporter = plainReporter.addSubActionsReport(); } else aggregateReporter = reporter.addSubActionsReport(); setClusterInfo(aggregateReporter, list); if (aggregateDataOnly) { reporter = plainReporter; context.setActionReport(plainReporter); } }