Class CompositePipesReporter
java.lang.Object
org.apache.tika.pipes.core.reporter.CompositePipesReporter
- All Implemented Interfaces:
Closeable,AutoCloseable,PipesReporter,TikaExtension
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPipesReporter(PipesReporter pipesReporter) voidclose()Tries to close all resources.voidThis is called if the process has crashed.voidThis is called if the process has crashed.voidreport(FetchEmitTuple t, PipesResult result, long elapsed) voidreport(TotalCountResult totalCountResult) Make sure to overridePipesReporter.supportsTotalCount()to returntruebooleanOverride this if your reporter supports total count.
-
Constructor Details
-
CompositePipesReporter
-
-
Method Details
-
report
- Specified by:
reportin interfacePipesReporter
-
report
Description copied from interface:PipesReporterMake sure to overridePipesReporter.supportsTotalCount()to returntrue- Specified by:
reportin interfacePipesReporter- Parameters:
totalCountResult-
-
supportsTotalCount
public boolean supportsTotalCount()Description copied from interface:PipesReporterOverride this if your reporter supports total count.- Specified by:
supportsTotalCountin interfacePipesReporter- Returns:
falseas the baseline implementation
-
error
Description copied from interface:PipesReporterThis is called if the process has crashed. Implementers should not rely on close() to be called after this.- Specified by:
errorin interfacePipesReporter- Parameters:
t-
-
error
Description copied from interface:PipesReporterThis is called if the process has crashed. Implementers should not rely on close() to be called after this.- Specified by:
errorin interfacePipesReporter- Parameters:
msg-
-
addPipesReporter
-
getPipesReporters
-
close
Tries to close all resources. Throws the last encountered IOException if any are thrown by the component reporters.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getExtensionConfig
- Specified by:
getExtensionConfigin interfaceTikaExtension
-