public class OpenSearchPipesReporter extends PipesReporter implements Initializable
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_EXIT_VALUE_KEY |
static String |
DEFAULT_PARSE_STATUS_KEY |
static String |
DEFAULT_PARSE_TIME_KEY |
NO_OP_REPORTER
Constructor and Description |
---|
OpenSearchPipesReporter() |
Modifier and Type | Method and Description |
---|---|
void |
checkInitialization(InitializableProblemHandler problemHandler) |
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 |
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) |
close, report, supportsTotalCount
public static String DEFAULT_PARSE_TIME_KEY
public static String DEFAULT_PARSE_STATUS_KEY
public static String DEFAULT_EXIT_VALUE_KEY
public void report(FetchEmitTuple t, PipesResult result, long elapsed)
report
in class PipesReporter
public void error(Throwable t)
PipesReporter
error
in class PipesReporter
public void error(String msg)
PipesReporter
error
in class PipesReporter
@Field public void setConnectionTimeout(int connectionTimeout)
@Field public void setSocketTimeout(int socketTimeout)
@Field public void setProxyPort(int proxyPort)
@Field public void setIncludeRouting(boolean includeRouting)
@Field public void setKeyPrefix(String keyPrefix)
keyPrefix
- public void initialize(Map<String,Param> params) throws TikaConfigException
initialize
in interface Initializable
params
- params to use for initializationTikaConfigException
public void checkInitialization(InitializableProblemHandler problemHandler) throws TikaConfigException
checkInitialization
in interface Initializable
problemHandler
- if there is a problem and no
custom initializableProblemHandler has been configured
via Initializable parameters,
this is called to respond.TikaConfigException
Copyright © 2007–2023 The Apache Software Foundation. All rights reserved.