|
||||||||||
| 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.CasObjectNetworkCasProcessorImpl
public class CasObjectNetworkCasProcessorImpl
Implementation of the 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 Summary | |
|---|---|
CasObjectNetworkCasProcessorImpl(CpeCasProcessor aCasProcessor)
Using information from the CPE descriptor creates an instance of Transport class. |
|
| Method Summary | |
|---|---|
void |
batchProcessComplete(ProcessTrace aTrace)
Completes the processing of a batch. |
void |
collectionProcessComplete(ProcessTrace aTrace)
Closes the connection to the remote service |
void |
connect(java.net.URL aURL)
Connects to a service endpoint defined in the given URL |
java.net.URL |
getEndpoint()
Creates URL object containing service endpoint info ( host and port) |
ProcessingResourceMetaData |
getProcessingResourceMetaData()
Returns ProcessingResourceMetaData object returned from the remote CasProcessor. |
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. |
void |
processCas(CAS aCAS)
Uses configured transport to delegate given CAS to the remote service |
void |
processCas(CAS[] aCASes)
Uses configured transport to delegate given CASes to the remote service |
void |
typeSystemInit(TypeSystem aTypeSystem)
Informs this CasConsumer that the CAS TypeSystem has changed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CasObjectNetworkCasProcessorImpl(CpeCasProcessor aCasProcessor)
throws ResourceConfigurationException
aCasProcessorType - -
Cas Process configuration from the CPE descriptor
ResourceConfigurationException| Method Detail |
|---|
public java.net.URL getEndpoint()
public void connect(java.net.URL aURL)
throws ResourceInitializationException
aURL - -
contains service endpoint info (hots and port)
ResourceInitializationException
public void processCas(CAS aCAS)
throws ResourceProcessException
processCas in interface CasObjectProcessoraCAS - -
CAS to be analyzed
ResourceInitializationException
ResourceProcessException - if processing fails
public void processCas(CAS[] aCASes)
throws ResourceProcessException
processCas in interface CasObjectProcessoraCASes[] - -
CASes to be analyzed
ResourceInitializationException
ResourceProcessException - if processing fails for any of the CASes
public void typeSystemInit(TypeSystem aTypeSystem)
throws ResourceInitializationException
CasObjectProcessor
In this method, the CasConsumer should use the TypeSystem to resolve the names of Type
and Features to the actual Type and
Feature objects, which can then be used during processing.
typeSystemInit in interface CasObjectProcessorResourceInitializationExceptionpublic boolean isStateless()
CasProcessor
isStateless in interface CasProcessorpublic boolean isReadOnly()
CasProcessor
isReadOnly in interface CasProcessorpublic ProcessingResourceMetaData getProcessingResourceMetaData()
ProcessingResourceMetaData object returned from the remote CasProcessor.
getProcessingResourceMetaData in interface CasProcessor
public void batchProcessComplete(ProcessTrace aTrace)
throws ResourceProcessException,
java.io.IOException
CasProcessor
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 occurs
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 occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||