public class NetworkCasProcessorImpl extends Object implements CasDataProcessor
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 and Description |
---|
NetworkCasProcessorImpl(CpeCasProcessor aCasProcessorType)
Initializes this instance with configuration defined in the CPE descriptor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public NetworkCasProcessorImpl(CpeCasProcessor aCasProcessorType)
aCasProcessorType
- public void setProxy(VinciTAP aTap)
aTap
- -
proxy to remote servicepublic VinciTAP getProxy()
public CasData process(CasData aCas) throws ResourceProcessException
process
in interface CasDataProcessor
aCas
- - instance of CasData to analyzeResourceProcessException
- if processing failspublic CasData[] process(CasData[] aCasList) throws ResourceProcessException
process
in interface CasDataProcessor
aCasList
- - array of CasData instances to analyzeResourceProcessException
- if processing failspublic boolean isStateless()
CasProcessor
isStateless
in interface CasProcessor
public boolean isReadOnly()
CasProcessor
isReadOnly
in interface CasProcessor
public ProcessingResourceMetaData getProcessingResourceMetaData()
getProcessingResourceMetaData
in interface CasProcessor
public void batchProcessComplete(ProcessTrace aTrace) throws ResourceProcessException, IOException
batchProcessComplete
in interface CasProcessor
aTrace
- an object that records information, such as timing, about this method's execution.ResourceProcessException
- if an exception occurs during processingIOException
- if an I/O failure occursCasProcessor.batchProcessComplete(org.apache.uima.util.ProcessTrace)
public void collectionProcessComplete(ProcessTrace aTrace) throws ResourceProcessException, IOException
collectionProcessComplete
in interface CasProcessor
aTrace
- an object that records information, such as timing, about this method's execution.ResourceProcessException
- if an exception occurs during processingIOException
- if an I/O failure occursCasProcessor.collectionProcessComplete(org.apache.uima.util.ProcessTrace)
Copyright © 2019. All rights reserved.