Package org.apache.tika.pipes
Class LoggingPipesReporter
- java.lang.Object
-
- org.apache.tika.pipes.PipesReporter
-
- org.apache.tika.pipes.LoggingPipesReporter
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class LoggingPipesReporter extends PipesReporter
Simple PipesReporter that logs everything at the debug level.
-
-
Field Summary
-
Fields inherited from class org.apache.tika.pipes.PipesReporter
NO_OP_REPORTER
-
-
Constructor Summary
Constructors Constructor Description LoggingPipesReporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
error(String msg)
This is called if the process has crashed.void
error(Throwable t)
This is called if the process has crashed.void
report(FetchEmitTuple t, PipesResult result, long elapsed)
-
Methods inherited from class org.apache.tika.pipes.PipesReporter
close, report, supportsTotalCount
-
-
-
-
Method Detail
-
report
public void report(FetchEmitTuple t, PipesResult result, long elapsed)
- Specified by:
report
in classPipesReporter
-
error
public void error(Throwable t)
Description copied from class:PipesReporter
This is called if the process has crashed. Implementers should not rely on close() to be called after this.- Specified by:
error
in classPipesReporter
-
error
public void error(String msg)
Description copied from class:PipesReporter
This is called if the process has crashed. Implementers should not rely on close() to be called after this.- Specified by:
error
in classPipesReporter
-
-