Package org.apache.tika.server.client
Class TikaServerClientConfig
java.lang.Object
org.apache.tika.config.ConfigBase
org.apache.tika.server.client.TikaServerClientConfig
- All Implemented Interfaces:
Initializable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic TikaServerClientConfig
void
checkInitialization
(InitializableProblemHandler problemHandler) long
org.apache.tika.server.client.TikaServerClientConfig.MODE
getMode()
int
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
void
setNumThreads
(int numThreads) void
setTikaEndpoints
(List<String> tikaEndpoints) Methods inherited from class org.apache.tika.config.ConfigBase
buildComposite, buildComposite, buildSingle, buildSingle, configure, handleSettings
-
Constructor Details
-
TikaServerClientConfig
public TikaServerClientConfig()
-
-
Method Details
-
build
- Throws:
IOException
TikaConfigException
-
getMaxWaitMillis
public long getMaxWaitMillis() -
setMaxWaitMillis
public void setMaxWaitMillis(long maxWaitMs) maximum time in milliseconds to wait for a new fetchemittuple to be available from the queue. The client will end if no tuple is available within this amount of time.- Parameters:
maxWaitMs
-
-
setMode
-
getHttpClientFactory
-
setHttpClientFactory
-
getNumThreads
public int getNumThreads() -
setNumThreads
public void setNumThreads(int numThreads) -
getMode
public org.apache.tika.server.client.TikaServerClientConfig.MODE getMode() -
getTikaEndpoints
-
setTikaEndpoints
-
initialize
- 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
-