public class TikaServerClientConfig extends ConfigBase implements Initializable
Constructor and Description |
---|
TikaServerClientConfig() |
Modifier and Type | Method and Description |
---|---|
static TikaServerClientConfig |
build(Path configFile) |
void |
checkInitialization(InitializableProblemHandler problemHandler) |
HttpClientFactory |
getHttpClientFactory() |
long |
getMaxWaitMillis() |
org.apache.tika.server.client.TikaServerClientConfig.MODE |
getMode() |
int |
getNumThreads() |
List<String> |
getTikaEndpoints() |
void |
initialize(Map<String,Param> params) |
void |
setHttpClientFactory(HttpClientFactory httpClientFactory) |
void |
setMaxWaitMillis(long maxWaitMs)
maximum time in milliseconds to wait for a new fetchemittuple to be
available from the queue.
|
void |
setMode(String mode) |
void |
setNumThreads(int numThreads) |
void |
setTikaEndpoints(List<String> tikaEndpoints) |
buildComposite, buildComposite, buildSingle, buildSingle, configure, handleSettings
public static TikaServerClientConfig build(Path configFile) throws IOException, TikaConfigException
IOException
TikaConfigException
public long getMaxWaitMillis()
public void setMaxWaitMillis(long maxWaitMs)
maxWaitMs
- public void setMode(String mode)
public HttpClientFactory getHttpClientFactory()
public void setHttpClientFactory(HttpClientFactory httpClientFactory)
public int getNumThreads()
public void setNumThreads(int numThreads)
public org.apache.tika.server.client.TikaServerClientConfig.MODE getMode()
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–2022 The Apache Software Foundation. All rights reserved.