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 Details

    • TikaServerClientConfig

      public TikaServerClientConfig()
  • Method Details

    • 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)
    • getTikaEndpoints

      public List<String> getTikaEndpoints()
    • setTikaEndpoints

      public void setTikaEndpoints(List<String> tikaEndpoints)
    • initialize

      public void initialize(Map<String,Param> params) throws TikaConfigException
      Specified by:
      initialize in interface Initializable
      Parameters:
      params - params to use for initialization
      Throws:
      TikaConfigException
    • checkInitialization

      public void checkInitialization(InitializableProblemHandler problemHandler) throws TikaConfigException
      Specified by:
      checkInitialization in interface Initializable
      Parameters:
      problemHandler - if there is a problem and no custom initializableProblemHandler has been configured via Initializable parameters, this is called to respond.
      Throws:
      TikaConfigException