public class StatusCallbackListener extends Object implements org.apache.uima.collection.StatusCallbackListener
| Constructor and Description |
|---|
StatusCallbackListener(org.apache.uima.collection.CollectionProcessingEngine cpe,
Integer batchSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
aborted()
Called when the CPM is stopped abruptly due to errors.
|
void |
batchProcessComplete()
Called when the batchProcessing is completed.
|
void |
collectionProcessComplete()
Called when the collection processing is completed.
|
String |
createLog(org.apache.uima.collection.EntityProcessStatus status)
Create log entry for an exception that occured during the processing of a
document
|
void |
entityProcessComplete(org.apache.uima.cas.CAS aCas,
org.apache.uima.collection.EntityProcessStatus aStatus)
Called when the processing of a document is completed.
|
org.apache.uima.collection.CollectionProcessingEngine |
getCpe() |
void |
initializationComplete()
Called when the initialization is completed.
|
void |
paused()
Called when the CPM is paused.
|
void |
resumed()
Called when the CPM is resumed after a pause.
|
public StatusCallbackListener(org.apache.uima.collection.CollectionProcessingEngine cpe,
Integer batchSize)
public void initializationComplete()
initializationComplete in interface org.apache.uima.collection.base_cpm.BaseStatusCallbackListenerorg.apache.uima.collection.processing.StatusCallbackListener#initializationComplete()public void batchProcessComplete()
batchProcessComplete in interface org.apache.uima.collection.base_cpm.BaseStatusCallbackListenerorg.apache.uima.collection.processing.StatusCallbackListener#batchProcessComplete()public void collectionProcessComplete()
collectionProcessComplete in interface org.apache.uima.collection.base_cpm.BaseStatusCallbackListenerorg.apache.uima.collection.processing.StatusCallbackListener#collectionProcessComplete()public void paused()
paused in interface org.apache.uima.collection.base_cpm.BaseStatusCallbackListenerorg.apache.uima.collection.processing.StatusCallbackListener#paused()public void resumed()
resumed in interface org.apache.uima.collection.base_cpm.BaseStatusCallbackListenerorg.apache.uima.collection.processing.StatusCallbackListener#resumed()public void aborted()
aborted in interface org.apache.uima.collection.base_cpm.BaseStatusCallbackListenerorg.apache.uima.collection.processing.StatusCallbackListener#aborted()public void entityProcessComplete(org.apache.uima.cas.CAS aCas,
org.apache.uima.collection.EntityProcessStatus aStatus)
entityProcessComplete in interface org.apache.uima.collection.StatusCallbackListeneraCas - CAS corresponding to the completed processingaStatus - EntityProcessStatus that holds the status of all the events
for an entitypublic String createLog(org.apache.uima.collection.EntityProcessStatus status)
status - the status that is an exceptionpublic org.apache.uima.collection.CollectionProcessingEngine getCpe()
Copyright © 2018 JULIE Lab, Germany. All rights reserved.