|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.uima.collection.impl.CollectionProcessingEngine_impl
public class CollectionProcessingEngine_impl
| Constructor Summary | |
|---|---|
CollectionProcessingEngine_impl()
|
|
| Method Summary | |
|---|---|
void |
addStatusCallbackListener(StatusCallbackListener aListener)
Registers a listsner to receive status callbacks. |
void |
asynchStop()
|
CasProcessor[] |
getCasProcessors()
Gets the CasProcessorss in this CPE, in the order in which they will be
executed. |
BaseCollectionReader |
getCollectionReader()
Gets the Collection Reader for this CPE. |
protected BaseCPMImpl |
getCPM()
|
ProcessTrace |
getPerformanceReport()
Gets a performance report for the processing that is currently occurring or has just completed. |
Progress[] |
getProgress()
Gets a progress report for the processing that is currently occurring or has just completed. |
void |
initialize(CpeDescription aCpeDescription,
java.util.Map aAdditionalParams)
Initializes this CPE from a cpeDescription Applications do not need to call this
method. |
boolean |
isPaused()
Determines whether this CPE's processing is currently paused. |
boolean |
isProcessing()
Determines whether this CPE is currently processing. |
void |
kill()
Kill CPM hard. |
void |
pause()
Pauses processing. |
void |
process()
Initiates processing of a collection. |
void |
removeStatusCallbackListener(StatusCallbackListener aListener)
Unregisters a status callback listener. |
void |
resume()
Resumes processing that has been paused. |
void |
stop()
Stops processing. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CollectionProcessingEngine_impl()
| Method Detail |
|---|
public void initialize(CpeDescription aCpeDescription,
java.util.Map aAdditionalParams)
throws ResourceInitializationException
CollectionProcessingEnginecpeDescription Applications do not need to call this
method. It is called automatically by the framework and cannot be called a second time.
initialize in interface CollectionProcessingEngineaCpeDescription - CPE description, generally parsed from an XML fileaAdditionalParams - a Map containing additional parameters. May be null if there are no
parameters. Each class that implements this interface can decide what additional
parameters it supports.
ResourceInitializationException - if a failure occurs during initialization.public void addStatusCallbackListener(StatusCallbackListener aListener)
CollectionProcessingEngine
addStatusCallbackListener in interface CollectionProcessingEngineaListener - the listener to addpublic void removeStatusCallbackListener(StatusCallbackListener aListener)
CollectionProcessingEngine
removeStatusCallbackListener in interface CollectionProcessingEngineaListener - the listener to remove
public void process()
throws ResourceInitializationException
CollectionProcessingEngineCollectionProcessingEngine.addStatusCallbackListener(StatusCallbackListener) method.
A CPE can only process one collection at a time. If this method is called while a previous
processing request has not yet completed, a UIMA_IllegalStateException will
result. To find out whether a CPE is free to begin another processing request, call the
CollectionProcessingEngine.isProcessing() method.
process in interface CollectionProcessingEngineResourceInitializationException - if an error occurs during initializationpublic boolean isProcessing()
CollectionProcessingEngineCollectionProcessingEngine.stop()ped. If processing is paused,
this method will still return true.
- Specified by:
isProcessing in interface CollectionProcessingEngine
- Returns:
- true if and only if this CPE is currently processing.
public void pause()
CollectionProcessingEngineCollectionProcessingEngine.resume() method.
pause in interface CollectionProcessingEnginepublic boolean isPaused()
CollectionProcessingEngine
isPaused in interface CollectionProcessingEnginepublic void resume()
CollectionProcessingEngine
resume in interface CollectionProcessingEnginepublic void stop()
CollectionProcessingEngine
stop in interface CollectionProcessingEnginepublic void kill()
CollectionProcessingEngine
kill in interface CollectionProcessingEnginepublic void asynchStop()
public ProcessTrace getPerformanceReport()
CollectionProcessingEngine
getPerformanceReport in interface CollectionProcessingEnginepublic Progress[] getProgress()
CollectionProcessingEngine
getProgress in interface CollectionProcessingEngineProgress objects, each of which represents the progress in a
different set of units (for example number of entities or bytes)protected BaseCPMImpl getCPM()
public CasProcessor[] getCasProcessors()
CollectionProcessingEngineCasProcessorss in this CPE, in the order in which they will be
executed.
getCasProcessors in interface CollectionProcessingEngineCasProcessorspublic BaseCollectionReader getCollectionReader()
CollectionProcessingEngine
getCollectionReader in interface CollectionProcessingEngine
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||