Interface PipesReporter

All Superinterfaces:
AutoCloseable, Closeable, TikaExtension
All Known Implementing Classes:
CompositePipesReporter, ESPipesReporter, FileSystemStatusReporter, JDBCPipesReporter, NoOpReporter, OpenSearchPipesReporter, PipesReporterBase

public interface PipesReporter extends Closeable, TikaExtension
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 Details

    • report

      void report(FetchEmitTuple t, PipesResult result, long elapsed)
    • report

      void report(TotalCountResult totalCountResult)
      Make sure to override supportsTotalCount() to return true
      Parameters:
      totalCountResult -
    • supportsTotalCount

      boolean supportsTotalCount()
      Override this if your reporter supports total count.
      Returns:
      false as the baseline implementation
    • error

      void error(Throwable t)
      This is called if the process has crashed. Implementers should not rely on close() to be called after this.
      Parameters:
      t -
    • error

      void error(String msg)
      This is called if the process has crashed. Implementers should not rely on close() to be called after this.
      Parameters:
      msg -