Class AnalysisEnginePool

java.lang.Object
org.apache.uima.internal.util.AnalysisEnginePool
Direct Known Subclasses:
TextAnalysisEnginePool

public class AnalysisEnginePool extends Object
A pool of Analysis Engines, which supports reconfiguration. This is not part of the stable UIMA API and may change in future releases.
  • Field Details

    • mPool

      private ResourcePool mPool
      Pool of AnalysisEngine instances.
  • Constructor Details

    • AnalysisEnginePool

      public AnalysisEnginePool(String aName, int aNumInstances, ResourceSpecifier aResourceSpecifier) throws ResourceInitializationException
      Creates a new AnalysisEnginePool.
      Parameters:
      aName - the pool name
      aNumInstances - the number of Resource instances in the pool
      aResourceSpecifier - specifier that describes how to create the Resource instances for the pool
      Throws:
      ResourceInitializationException - if the Resource instances could not be created
    • AnalysisEnginePool

      public AnalysisEnginePool(String aName, int aNumInstances, ResourceSpecifier aResourceSpecifier, Map<String,Object> aResourceInitParams) throws ResourceInitializationException
      Creates a new AnalysisEnginePool.
      Parameters:
      aName - the pool name
      aNumInstances - the number of Resource instances in the pool
      aResourceSpecifier - specifier that describes how to create the Resource instances for the pool
      aResourceInitParams - additional parameters to be passed to Resource.initialize(ResourceSpecifier,Map) methods. May be null if there are no parameters.
      Throws:
      ResourceInitializationException - if the Resource instances could not be created
  • Method Details