Class AnalysisEnginePool

  • Direct Known Subclasses:
    TextAnalysisEnginePool

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

      • AnalysisEnginePool

        public AnalysisEnginePool​(java.lang.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​(java.lang.String aName,
                                  int aNumInstances,
                                  ResourceSpecifier aResourceSpecifier,
                                  java.util.Map<java.lang.String,​java.lang.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