|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.uima.internal.util.AnalysisEnginePool
org.apache.uima.internal.util.TextAnalysisEnginePool
AnalysisEnginePool
instead.
@Deprecated public class TextAnalysisEnginePool
A pool of Text Analysis Engines, which supports reconfiguration. This is not part of the stable UIMA API and may change in future releases.
Constructor Summary | |
---|---|
TextAnalysisEnginePool(java.lang.String aName,
int aNumInstances,
ResourceSpecifier aResourceSpecifier)
Deprecated. Creates a new TextAnalysisEnginePool. |
|
TextAnalysisEnginePool(java.lang.String aName,
int aNumInstances,
ResourceSpecifier aResourceSpecifier,
java.util.Map<java.lang.String,java.lang.Object> aResourceInitParams)
Deprecated. Creates a new TextAnalysisEnginePool. |
Method Summary | |
---|---|
protected java.lang.Class |
getResourceClass()
Deprecated. Gets the class of Resource contained in this pool - by default this is AnalysisEngine , but subclasses may override. |
TextAnalysisEngine |
getTAE()
Deprecated. Checks out a TextAnalysisEngine from the pool. |
TextAnalysisEngine |
getTAE(long aTimeout)
Deprecated. Checks out a TextAnalysisEngine from the pool. |
void |
releaseTAE(TextAnalysisEngine aTAE)
Deprecated. Checks in a TAE to the pool. |
Methods inherited from class org.apache.uima.internal.util.AnalysisEnginePool |
---|
batchProcessComplete, collectionProcessComplete, destroy, getAnalysisEngine, getAnalysisEngine, getMetaData, getSize, reconfigure, releaseAnalysisEngine, setLogger, setResultSpecification |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextAnalysisEnginePool(java.lang.String aName, int aNumInstances, ResourceSpecifier aResourceSpecifier) throws ResourceInitializationException
aName
- the pool nameaNumInstances
- the number of Resource instances in the poolaResourceSpecifier
- specifier that describes how to create the Resource instances for the pool
ResourceInitializationException
- if the Resource instances could not be createdpublic TextAnalysisEnginePool(java.lang.String aName, int aNumInstances, ResourceSpecifier aResourceSpecifier, java.util.Map<java.lang.String,java.lang.Object> aResourceInitParams) throws ResourceInitializationException
aName
- the pool nameaNumInstances
- the number of Resource instances in the poolaResourceSpecifier
- specifier that describes how to create the Resource instances for the poolaResourceInitParams
- additional parameters to be passed to
Resource#initialize(ResourceSpecifier,Map)
methods. May be null if there are
no parameters.
ResourceInitializationException
- if the Resource instances could not be createdMethod Detail |
---|
public TextAnalysisEngine getTAE()
null
if none are available (in
which case the client may wait on this object in order to be notified when an instance
becomes available).public void releaseTAE(TextAnalysisEngine aTAE)
aResource
- the resource to releasepublic TextAnalysisEngine getTAE(long aTimeout)
aTimeout
- the time to wait in milliseconds. A value of <=0 will wait forever.
null
if none are available (in
which case the client may wait on this object in order to be notified when an instance
becomes available).protected java.lang.Class getResourceClass()
AnalysisEnginePool
AnalysisEngine
, but subclasses may override.
getResourceClass
in class AnalysisEnginePool
AnalysisEnginePool.getResourceClass()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |