Package org.apache.tika.pipes
Class CompositePipesReporter
- java.lang.Object
- 
- org.apache.tika.pipes.PipesReporter
- 
- org.apache.tika.pipes.CompositePipesReporter
 
 
- 
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- Initializable
 
 public class CompositePipesReporter extends PipesReporter implements Initializable 
- 
- 
Field Summary- 
Fields inherited from class org.apache.tika.pipes.PipesReporterNO_OP_REPORTER
 
- 
 - 
Constructor SummaryConstructors Constructor Description CompositePipesReporter()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddPipesReporter(PipesReporter pipesReporter)voidcheckInitialization(InitializableProblemHandler problemHandler)voidclose()Tries to close all resources.voiderror(String msg)This is called if the process has crashed.voiderror(Throwable t)This is called if the process has crashed.List<PipesReporter>getPipesReporters()voidinitialize(Map<String,Param> params)voidreport(FetchEmitTuple t, PipesResult result, long elapsed)voidreport(TotalCountResult totalCountResult)No-op implementation.voidsetPipesReporters(List<PipesReporter> pipesReporters)Deprecated.booleansupportsTotalCount()Override this if your reporter supports total count.
 
- 
- 
- 
Method Detail- 
reportpublic void report(FetchEmitTuple t, PipesResult result, long elapsed) - Specified by:
- reportin class- PipesReporter
 
 - 
reportpublic void report(TotalCountResult totalCountResult) Description copied from class:PipesReporterNo-op implementation. Override for custom behavior and make sure to overridePipesReporter.supportsTotalCount()to returntrue- Overrides:
- reportin class- PipesReporter
 
 - 
supportsTotalCountpublic boolean supportsTotalCount() Description copied from class:PipesReporterOverride this if your reporter supports total count.- Overrides:
- supportsTotalCountin class- PipesReporter
- Returns:
- falseas the baseline implementation
 
 - 
errorpublic void error(Throwable t) Description copied from class:PipesReporterThis is called if the process has crashed. Implementers should not rely on close() to be called after this.- Specified by:
- errorin class- PipesReporter
 
 - 
errorpublic void error(String msg) Description copied from class:PipesReporterThis is called if the process has crashed. Implementers should not rely on close() to be called after this.- Specified by:
- errorin class- PipesReporter
 
 - 
setPipesReporters@Field @Deprecated public void setPipesReporters(List<PipesReporter> pipesReporters) Deprecated.- Parameters:
- pipesReporters-
 
 - 
addPipesReporter@Field public void addPipesReporter(PipesReporter pipesReporter) 
 - 
getPipesReporterspublic List<PipesReporter> getPipesReporters() 
 - 
initializepublic void initialize(Map<String,Param> params) throws TikaConfigException - Specified by:
- initializein interface- Initializable
- Parameters:
- params- params to use for initialization
- Throws:
- TikaConfigException
 
 - 
checkInitializationpublic void checkInitialization(InitializableProblemHandler problemHandler) throws TikaConfigException - Specified by:
- checkInitializationin interface- Initializable
- Parameters:
- problemHandler- if there is a problem and no custom initializableProblemHandler has been configured via Initializable parameters, this is called to respond.
- Throws:
- TikaConfigException
 
 - 
closepublic void close() throws IOExceptionTries to close all resources. Throws the last encountered IOException if any are thrown by the component reporters.- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Overrides:
- closein class- PipesReporter
- Throws:
- IOException
 
 
- 
 
-