Package org.apache.uima.aae.controller
Interface AnalysisEngineInstancePool
- All Known Implementing Classes:
AnalysisEngineInstancePoolWithThreadAffinity
public interface AnalysisEngineInstancePool
-
Method Summary
Modifier and TypeMethodDescriptionvoidcheckin(org.apache.uima.analysis_engine.AnalysisEngine anAnalysisEngine) Adds an instance of AnalysisEngine to the poolorg.apache.uima.analysis_engine.AnalysisEnginecheckout()Borrows an instance of AnalysisEngine from the poolvoiddestroy()Destroys Analysis Engine instance pool.booleanexists()Checks if the current Thread is assigned to an AE instancevoidCreates and initializes the AE Pool with intances of AEs provided in the anAnalysisEngineInstanceListintsize()
-
Method Details
-
intialize
Creates and initializes the AE Pool with intances of AEs provided in the anAnalysisEngineInstanceList- Parameters:
anAnalysisEngineInstanceList- - list of AnalysisEngine instances- Throws:
Exception
-
checkin
Adds an instance of AnalysisEngine to the pool- Parameters:
anAnalysisEngine- - AnalysisEngine instance to be added to the pool- Throws:
Exception
-
checkout
Borrows an instance of AnalysisEngine from the pool- Returns:
- AnalysisEngine instance
- Throws:
Exception
-
destroy
Destroys Analysis Engine instance pool.- Throws:
Exception
-
exists
boolean exists()Checks if the current Thread is assigned to an AE instance- Returns:
-
size
int size()
-