Class OpenSearchPipesReporter
java.lang.Object
org.apache.tika.pipes.PipesReporter
org.apache.tika.pipes.reporters.opensearch.OpenSearchPipesReporter
- All Implemented Interfaces:
Closeable,AutoCloseable,Initializable
As of the 2.5.0 release, this is ALPHA version. There may be breaking changes
in the future.
-
Field Summary
FieldsFields inherited from class org.apache.tika.pipes.PipesReporter
NO_OP_REPORTER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckInitialization(InitializableProblemHandler problemHandler) voidThis is called if the process has crashed.voidThis is called if the process has crashed.voidinitialize(Map<String, Param> params) voidreport(FetchEmitTuple t, PipesResult result, long elapsed) voidsetAuthScheme(String authScheme) voidsetConnectionTimeout(int connectionTimeout) voidsetExcludeStatuses(List<String> statusList) voidsetIncludeRouting(boolean includeRouting) voidsetIncludeStatuses(List<String> statusList) voidsetKeyPrefix(String keyPrefix) This prefixes the keys before sending them to OpenSearch.voidsetOpenSearchUrl(String openSearchUrl) voidsetPassword(String password) voidsetProxyHost(String proxyHost) voidsetProxyPort(int proxyPort) voidsetSocketTimeout(int socketTimeout) voidsetUserName(String userName) Methods inherited from class org.apache.tika.pipes.PipesReporter
close, report, supportsTotalCount
-
Field Details
-
DEFAULT_PARSE_TIME_KEY
-
DEFAULT_PARSE_STATUS_KEY
-
DEFAULT_EXIT_VALUE_KEY
-
-
Constructor Details
-
OpenSearchPipesReporter
public OpenSearchPipesReporter()
-
-
Method Details
-
report
- Specified by:
reportin classPipesReporter
-
error
Description copied from class:PipesReporterThis is called if the process has crashed. Implementers should not rely on close() to be called after this.- Specified by:
errorin classPipesReporter
-
error
Description copied from class:PipesReporterThis is called if the process has crashed. Implementers should not rely on close() to be called after this.- Specified by:
errorin classPipesReporter
-
setConnectionTimeout
-
setSocketTimeout
-
setOpenSearchUrl
-
setUserName
-
setPassword
-
setAuthScheme
-
setProxyHost
-
setProxyPort
-
setIncludeStatuses
-
setExcludeStatuses
-
setIncludeRouting
-
setKeyPrefix
This prefixes the keys before sending them to OpenSearch. For example, "pdfinfo_", would have this reporter sending "pdfinfo_status" and "pdfinfo_parse_time" to OpenSearch.- Parameters:
keyPrefix-
-
initialize
- 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
-