public class CompositePipesReporter extends PipesReporter implements Initializable
NO_OP_REPORTER| Constructor and Description |
|---|
CompositePipesReporter() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPipesReporter(PipesReporter pipesReporter) |
void |
checkInitialization(InitializableProblemHandler problemHandler) |
void |
close()
Tries to close all resources.
|
void |
error(String msg)
This is called if the process has crashed.
|
void |
error(Throwable t)
This is called if the process has crashed.
|
List<PipesReporter> |
getPipesReporters() |
void |
initialize(Map<String,Param> params) |
void |
report(FetchEmitTuple t,
PipesResult result,
long elapsed) |
void |
report(TotalCountResult totalCountResult)
No-op implementation.
|
void |
setPipesReporters(List<PipesReporter> pipesReporters)
Deprecated.
|
boolean |
supportsTotalCount()
Override this if your reporter supports total count.
|
public void report(FetchEmitTuple t, PipesResult result, long elapsed)
report in class PipesReporterpublic void report(TotalCountResult totalCountResult)
PipesReporterPipesReporter.supportsTotalCount()
to return truereport in class PipesReporterpublic boolean supportsTotalCount()
PipesReportersupportsTotalCount in class PipesReporterfalse as the baseline implementationpublic void error(Throwable t)
PipesReportererror in class PipesReporterpublic void error(String msg)
PipesReportererror in class PipesReporter@Field @Deprecated public void setPipesReporters(List<PipesReporter> pipesReporters)
addPipesReporter(PipesReporter)pipesReporters - @Field public void addPipesReporter(PipesReporter pipesReporter)
public List<PipesReporter> getPipesReporters()
public void initialize(Map<String,Param> params) throws TikaConfigException
initialize in interface Initializableparams - params to use for initializationTikaConfigExceptionpublic void checkInitialization(InitializableProblemHandler problemHandler) throws TikaConfigException
checkInitialization in interface InitializableproblemHandler - if there is a problem and no
custom initializableProblemHandler has been configured
via Initializable parameters,
this is called to respond.TikaConfigExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class PipesReporterIOExceptionCopyright © 2007–2023 The Apache Software Foundation. All rights reserved.