public FileFailureEventReporter(MetricContext context, FileSystem fs, Path failureLogFile) throws IOException { super(OutputStreamEventReporter.forContext(context)); this.fs = fs; this.failureLogFile = failureLogFile; hasSetupOutputStream = false; }
@Override public ScheduledReporter newScheduledReporter(MetricRegistry registry, Properties properties) throws IOException { try { return OutputStreamEventReporter.forContext(MetricContext.class.cast(registry)).build(); } catch (ClassCastException cce) { throw new IOException(cce); } } }
.register(OutputStreamEventReporter.forContext(RootMetricContext.get()).outputTo(output).build()));
public FileFailureEventReporter(MetricContext context, FileSystem fs, Path failureLogFile) throws IOException { super(OutputStreamEventReporter.forContext(context)); this.fs = fs; this.failureLogFile = failureLogFile; hasSetupOutputStream = false; }
@Override public ScheduledReporter newScheduledReporter(MetricRegistry registry, Properties properties) throws IOException { try { return OutputStreamEventReporter.forContext(MetricContext.class.cast(registry)).build(); } catch (ClassCastException cce) { throw new IOException(cce); } } }
.register(OutputStreamEventReporter.forContext(RootMetricContext.get()).outputTo(output).build()));