public class CasObjectNetworkCasProcessorImpl extends Object implements org.apache.uima.collection.base_cpm.CasObjectProcessor
CasObjectProcessor interface used for both Local and Remote
CasObjectProcessors. This objects plugs in a transport object defined in the CPE Descriptor and
uses it to delegate analysis of CAS to a remote AE.| Constructor and Description |
|---|
CasObjectNetworkCasProcessorImpl(org.apache.uima.collection.metadata.CpeCasProcessor aCasProcessor)
Using information from the CPE descriptor creates an instance of Transport class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
batchProcessComplete(org.apache.uima.util.ProcessTrace aTrace) |
void |
collectionProcessComplete(org.apache.uima.util.ProcessTrace aTrace)
Closes the connection to the remote service.
|
void |
connect(URL aURL)
Connects to a service endpoint defined in the given URL.
|
URL |
getEndpoint()
Creates URL object containing service endpoint info ( host and port).
|
org.apache.uima.resource.metadata.ProcessingResourceMetaData |
getProcessingResourceMetaData()
Returns
ProcessingResourceMetaData object returned from the remote CasProcessor. |
boolean |
isReadOnly() |
boolean |
isStateless() |
void |
processCas(org.apache.uima.cas.CAS aCAS)
Uses configured transport to delegate given CAS to the remote service.
|
void |
processCas(org.apache.uima.cas.CAS[] aCASes)
Uses configured transport to delegate given CASes to the remote service.
|
void |
typeSystemInit(org.apache.uima.cas.TypeSystem aTypeSystem) |
public CasObjectNetworkCasProcessorImpl(org.apache.uima.collection.metadata.CpeCasProcessor aCasProcessor)
throws org.apache.uima.resource.ResourceConfigurationException
aCasProcessor - -
Cas Process configuration from the CPE descriptororg.apache.uima.resource.ResourceConfigurationException - the resource configuration exceptionpublic URL getEndpoint()
public void connect(URL aURL) throws org.apache.uima.resource.ResourceInitializationException
aURL - -
contains service endpoint info (hots and port)org.apache.uima.resource.ResourceInitializationException - wraps SocketExceptionpublic void processCas(org.apache.uima.cas.CAS aCAS)
throws org.apache.uima.resource.ResourceProcessException
processCas in interface org.apache.uima.collection.base_cpm.CasObjectProcessoraCAS - CAS to be analyzedorg.apache.uima.resource.ResourceProcessException - wraps Exception, SocketExceptionpublic void processCas(org.apache.uima.cas.CAS[] aCASes)
throws org.apache.uima.resource.ResourceProcessException
processCas in interface org.apache.uima.collection.base_cpm.CasObjectProcessoraCASes - - an array of CASes to be analyzedorg.apache.uima.resource.ResourceProcessException - wraps SocketException, SocketTimeoutExceptionpublic void typeSystemInit(org.apache.uima.cas.TypeSystem aTypeSystem)
throws org.apache.uima.resource.ResourceInitializationException
typeSystemInit in interface org.apache.uima.collection.base_cpm.CasObjectProcessororg.apache.uima.resource.ResourceInitializationExceptionpublic boolean isStateless()
isStateless in interface org.apache.uima.collection.base_cpm.CasProcessorpublic boolean isReadOnly()
isReadOnly in interface org.apache.uima.collection.base_cpm.CasProcessorpublic org.apache.uima.resource.metadata.ProcessingResourceMetaData getProcessingResourceMetaData()
ProcessingResourceMetaData object returned from the remote CasProcessor.getProcessingResourceMetaData in interface org.apache.uima.collection.base_cpm.CasProcessorpublic void batchProcessComplete(org.apache.uima.util.ProcessTrace aTrace)
throws org.apache.uima.resource.ResourceProcessException,
IOException
batchProcessComplete in interface org.apache.uima.collection.base_cpm.CasProcessororg.apache.uima.resource.ResourceProcessExceptionIOExceptionpublic void collectionProcessComplete(org.apache.uima.util.ProcessTrace aTrace)
throws org.apache.uima.resource.ResourceProcessException,
IOException
collectionProcessComplete in interface org.apache.uima.collection.base_cpm.CasProcessoraTrace - the a traceorg.apache.uima.resource.ResourceProcessException - the resource process exceptionIOException - Signals that an I/O exception has occurred.Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.