Package org.apache.uima.aae.controller
Interface AnalysisEngineInstancePool
-
- All Known Implementing Classes:
AnalysisEngineInstancePoolWithThreadAffinity
public interface AnalysisEngineInstancePool
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcheckin(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 instancevoidintialize(java.util.List anAnalysisEngineInstanceList)Creates and initializes the AE Pool with intances of AEs provided in the anAnalysisEngineInstanceListintsize()
-
-
-
Method Detail
-
intialize
void intialize(java.util.List anAnalysisEngineInstanceList) throws java.lang.ExceptionCreates and initializes the AE Pool with intances of AEs provided in the anAnalysisEngineInstanceList- Parameters:
anAnalysisEngineInstanceList- - list of AnalysisEngine instances- Throws:
java.lang.Exception
-
checkin
void checkin(org.apache.uima.analysis_engine.AnalysisEngine anAnalysisEngine) throws java.lang.ExceptionAdds an instance of AnalysisEngine to the pool- Parameters:
anAnalysisEngine- - AnalysisEngine instance to be added to the pool- Throws:
java.lang.Exception
-
checkout
org.apache.uima.analysis_engine.AnalysisEngine checkout() throws java.lang.ExceptionBorrows an instance of AnalysisEngine from the pool- Returns:
- AnalysisEngine instance
- Throws:
java.lang.Exception
-
destroy
void destroy() throws java.lang.ExceptionDestroys Analysis Engine instance pool.- Throws:
java.lang.Exception
-
exists
boolean exists()
Checks if the current Thread is assigned to an AE instance- Returns:
-
size
int size()
-
-