Class OpenSearchPipesReporter
- java.lang.Object
-
- org.apache.tika.pipes.PipesReporter
-
- org.apache.tika.pipes.reporters.opensearch.OpenSearchPipesReporter
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Initializable
public class OpenSearchPipesReporter extends PipesReporter implements Initializable
As of the 2.5.0 release, this is ALPHA version. There may be breaking changes in the future.
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_EXIT_VALUE_KEY
static String
DEFAULT_PARSE_STATUS_KEY
static String
DEFAULT_PARSE_TIME_KEY
-
Fields inherited from class org.apache.tika.pipes.PipesReporter
NO_OP_REPORTER
-
-
Constructor Summary
Constructors Constructor Description OpenSearchPipesReporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkInitialization(InitializableProblemHandler problemHandler)
void
initialize(Map<String,Param> params)
void
report(FetchEmitTuple t, PipesResult result, long elapsed)
void
setAuthScheme(String authScheme)
void
setConnectionTimeout(int connectionTimeout)
void
setExcludeStatuses(List<String> statusList)
void
setIncludeRouting(boolean includeRouting)
void
setIncludeStatuses(List<String> statusList)
void
setKeyPrefix(String keyPrefix)
This prefixes the keys before sending them to OpenSearch.void
setOpenSearchUrl(String openSearchUrl)
void
setPassword(String password)
void
setProxyHost(String proxyHost)
void
setProxyPort(int proxyPort)
void
setSocketTimeout(int socketTimeout)
void
setUserName(String userName)
-
Methods inherited from class org.apache.tika.pipes.PipesReporter
close
-
-
-
-
Method Detail
-
report
public void report(FetchEmitTuple t, PipesResult result, long elapsed)
- Specified by:
report
in classPipesReporter
-
setConnectionTimeout
@Field public void setConnectionTimeout(int connectionTimeout)
-
setSocketTimeout
@Field public void setSocketTimeout(int socketTimeout)
-
setProxyPort
@Field public void setProxyPort(int proxyPort)
-
setIncludeRouting
@Field public void setIncludeRouting(boolean includeRouting)
-
setKeyPrefix
@Field public void setKeyPrefix(String keyPrefix)
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
public void initialize(Map<String,Param> params) throws TikaConfigException
- Specified by:
initialize
in interfaceInitializable
- Parameters:
params
- params to use for initialization- Throws:
TikaConfigException
-
checkInitialization
public void checkInitialization(InitializableProblemHandler problemHandler) throws TikaConfigException
- Specified by:
checkInitialization
in 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
-
-