|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.uima.collection.impl.cpm.container.NetworkCasProcessorImpl
public class NetworkCasProcessorImpl
Implementation of the CasDataProcessor interface used for both Local and Remote
CasDataProcessors. The CPE delegates analysis of entities to this instance. Each instance of this
class has a proxy to extenal service.
| Constructor Summary | |
|---|---|
NetworkCasProcessorImpl(CpeCasProcessor aCasProcessorType)
Initializes this instance with configuration defined in the CPE descriptor. |
|
| Method Summary | |
|---|---|
void |
batchProcessComplete(ProcessTrace aTrace)
Notifies Network AE that end-of-batch marker has been reached. |
void |
collectionProcessComplete(ProcessTrace aTrace)
This method gets called when the CPM completes processing the collection. |
ProcessingResourceMetaData |
getProcessingResourceMetaData()
Returns Remote AE metadata. |
VinciTAP |
getProxy()
Returns proxy to the remote AE service |
boolean |
isReadOnly()
Gets whether this is a read-only CAS Processor, which does not modify the CAS. |
boolean |
isStateless()
Gets whether this is a stateless CAS Processor. |
CasData |
process(CasData aCas)
Main method used during analysis. |
CasData[] |
process(CasData[] aCasList)
Main method used during analysis. |
void |
setProxy(VinciTAP aTap)
Associates a proxy to remote annotator service. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NetworkCasProcessorImpl(CpeCasProcessor aCasProcessorType)
aCasProcessorType - | Method Detail |
|---|
public void setProxy(VinciTAP aTap)
aTap - -
proxy to remote servicepublic VinciTAP getProxy()
public CasData process(CasData aCas)
throws ResourceProcessException
process in interface CasDataProcessorCasData - aCas - instance of CasData to analyze
ResourceProcessException - if processing fails
public CasData[] process(CasData[] aCasList)
throws ResourceProcessException
process in interface CasDataProcessorCasData[] - aCas - array of CasData instances to analyze
ResourceProcessException - if processing failspublic boolean isStateless()
CasProcessor
isStateless in interface CasProcessorpublic boolean isReadOnly()
CasProcessor
isReadOnly in interface CasProcessorpublic ProcessingResourceMetaData getProcessingResourceMetaData()
getProcessingResourceMetaData in interface CasProcessor
public void batchProcessComplete(ProcessTrace aTrace)
throws ResourceProcessException,
java.io.IOException
batchProcessComplete in interface CasProcessoraTrace - an object that records information, such as timing, about this method's execution.
ResourceProcessException - if an exception occurs during processing
java.io.IOException - if an I/O failure occursCasProcessor.batchProcessComplete(org.apache.uima.util.ProcessTrace)
public void collectionProcessComplete(ProcessTrace aTrace)
throws ResourceProcessException,
java.io.IOException
collectionProcessComplete in interface CasProcessoraTrace - an object that records information, such as timing, about this method's execution.
ResourceProcessException - if an exception occurs during processing
java.io.IOException - if an I/O failure occursCasProcessor.collectionProcessComplete(org.apache.uima.util.ProcessTrace)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||