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
public class TikaServerClientConfig extends ConfigBase implements Initializable
-
-
Constructor Summary
Constructors Constructor Description TikaServerClientConfig()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class org.apache.tika.config.ConfigBase
buildComposite, buildComposite, buildSingle, buildSingle, configure, handleSettings
-
-
-
-
Method Detail
-
build
public static TikaServerClientConfig build(Path configFile) throws IOException, TikaConfigException
- 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
-
-
getHttpClientFactory
public HttpClientFactory getHttpClientFactory()
-
setHttpClientFactory
public void setHttpClientFactory(HttpClientFactory httpClientFactory)
-
getNumThreads
public int getNumThreads()
-
setNumThreads
public void setNumThreads(int numThreads)
-
getMode
public org.apache.tika.server.client.TikaServerClientConfig.MODE getMode()
-
setMode
public void setMode(String mode)
-
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
-
-