Class FileSystemStatusReporter
- java.lang.Object
-
- org.apache.tika.pipes.PipesReporter
-
- org.apache.tika.pipes.reporters.fs.FileSystemStatusReporter
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Initializable
public class FileSystemStatusReporter extends PipesReporter implements Initializable
This is intended to write summary statistics to disk periodically. As of the 2.5.0 release, this is ALPHA version. There may be breaking changes in the future.
-
-
Field Summary
-
Fields inherited from class org.apache.tika.pipes.PipesReporter
NO_OP_REPORTER
-
-
Constructor Summary
Constructors Constructor Description FileSystemStatusReporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckInitialization(InitializableProblemHandler problemHandler)voidclose()No-op implementation.voidinitialize(Map<String,Param> params)voidreport(FetchEmitTuple t, PipesResult result, long elapsed)voidsetReportUpdateMillis(long millis)voidsetStatusFile(String path)
-
-
-
Method Detail
-
setReportUpdateMillis
@Field public void setReportUpdateMillis(long millis)
-
initialize
public void initialize(Map<String,Param> params) throws TikaConfigException
- Specified by:
initializein interfaceInitializable- Parameters:
params- params to use for initialization- Throws:
TikaConfigException
-
checkInitialization
public void checkInitialization(InitializableProblemHandler problemHandler) throws TikaConfigException
- Specified by:
checkInitializationin interfaceInitializable- Parameters:
problemHandler- if there is a problem and no custom initializableProblemHandler has been configured via Initializable parameters, this is called to respond.- Throws:
TikaConfigException
-
close
public void close() throws IOExceptionDescription copied from class:PipesReporterNo-op implementation. Override for custom behavior- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classPipesReporter- Throws:
IOException
-
report
public void report(FetchEmitTuple t, PipesResult result, long elapsed)
- Specified by:
reportin classPipesReporter
-
-