Interface PipesReporter
- All Superinterfaces:
AutoCloseable,Closeable,TikaExtension
- All Known Implementing Classes:
CompositePipesReporter,ESPipesReporter,FileSystemStatusReporter,JDBCPipesReporter,NoOpReporter,OpenSearchPipesReporter,PipesReporterBase
This is called asynchronously by the AsyncProcessor. This
is not thread safe, and implementers must be careful to implement
report(FetchEmitTuple, PipesResult, long) in a thread safe
way.
Note, however, that this is not called in the forked processes.
Implementers do not have to worry about synchronizing across processes;
for example, one could use an in-memory h2 database as a target.-
Method Summary
Modifier and TypeMethodDescriptionvoidThis 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 overridesupportsTotalCount()to returntruebooleanOverride this if your reporter supports total count.Methods inherited from interface org.apache.tika.plugins.TikaExtension
getExtensionConfig
-
Method Details
-
report
-
report
Make sure to overridesupportsTotalCount()to returntrue- Parameters:
totalCountResult-
-
supportsTotalCount
boolean supportsTotalCount()Override this if your reporter supports total count.- Returns:
falseas the baseline implementation
-
error
This is called if the process has crashed. Implementers should not rely on close() to be called after this.- Parameters:
t-
-
error
This is called if the process has crashed. Implementers should not rely on close() to be called after this.- Parameters:
msg-
-