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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TikaServerClientConfigvoidcheckInitialization(InitializableProblemHandler problemHandler) longorg.apache.tika.server.client.TikaServerClientConfig.MODEgetMode()intvoidinitialize(Map<String, Param> params) voidsetHttpClientFactory(HttpClientFactory httpClientFactory) voidsetMaxWaitMillis(long maxWaitMs) maximum time in milliseconds to wait for a new fetchemittuple to be available from the queue.voidvoidsetNumThreads(int numThreads) voidsetTikaEndpoints(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:
IOExceptionTikaConfigException
-
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-
-
getHttpClientFactory
-
setHttpClientFactory
-
getNumThreads
public int getNumThreads() -
setNumThreads
public void setNumThreads(int numThreads) -
getMode
public org.apache.tika.server.client.TikaServerClientConfig.MODE getMode() -
setMode
-
getTikaEndpoints
-
setTikaEndpoints
-
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
-