org.apache.uima.aae.jms_adapter
Class JmsAnalysisEngineServiceStub

java.lang.Object
  extended by org.apache.uima.aae.client.UimaAsBaseCallbackListener
      extended by org.apache.uima.aae.jms_adapter.JmsAnalysisEngineServiceStub
All Implemented Interfaces:
UimaASStatusCallbackListener, org.apache.uima.analysis_engine.AnalysisEngineServiceStub, org.apache.uima.resource.ResourceServiceStub

public class JmsAnalysisEngineServiceStub
extends UimaAsBaseCallbackListener
implements org.apache.uima.analysis_engine.AnalysisEngineServiceStub


Field Summary
static java.lang.String PARAM_BIN_SERIALIZTION
           
static java.lang.String PARAM_BROKER_URL
           
static java.lang.String PARAM_CPC_TIMEOUT
           
static java.lang.String PARAM_ENDPOINT
           
static java.lang.String PARAM_GETMETA_TIMEOUT
           
static java.lang.String PARAM_IGNORE_PROCESS_ERRORS
           
static java.lang.String PARAM_TIMEOUT
           
 
Constructor Summary
JmsAnalysisEngineServiceStub(org.apache.uima.resource.Resource owner, org.apache.uima.resource.Parameter[] parameters)
           
 
Method Summary
 void callBatchProcessComplete()
           
 void callCollectionProcessComplete()
           
 org.apache.uima.analysis_engine.metadata.AnalysisEngineMetaData callGetAnalysisEngineMetaData()
           
 org.apache.uima.resource.metadata.ResourceMetaData callGetMetaData()
           
 void callProcess(org.apache.uima.cas.CAS aCAS)
           
 void callProcessCas(org.apache.uima.cas.CAS aCAS)
           
 void collectionProcessComplete(org.apache.uima.collection.EntityProcessStatus aStatus)
          The callback used to inform the application that the CPC request has completed.
 void destroy()
           
 void entityProcessComplete(org.apache.uima.cas.CAS aCas, org.apache.uima.collection.EntityProcessStatus aStatus)
          Called when the processing of each entity has completed.
 void initializationComplete(org.apache.uima.collection.EntityProcessStatus aStatus)
          The callback used to inform the application that the initialization request has completed.
 
Methods inherited from class org.apache.uima.aae.client.UimaAsBaseCallbackListener
onBeforeMessageSend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAM_BROKER_URL

public static final java.lang.String PARAM_BROKER_URL
See Also:
Constant Field Values

PARAM_ENDPOINT

public static final java.lang.String PARAM_ENDPOINT
See Also:
Constant Field Values

PARAM_TIMEOUT

public static final java.lang.String PARAM_TIMEOUT
See Also:
Constant Field Values

PARAM_GETMETA_TIMEOUT

public static final java.lang.String PARAM_GETMETA_TIMEOUT
See Also:
Constant Field Values

PARAM_CPC_TIMEOUT

public static final java.lang.String PARAM_CPC_TIMEOUT
See Also:
Constant Field Values

PARAM_BIN_SERIALIZTION

public static final java.lang.String PARAM_BIN_SERIALIZTION
See Also:
Constant Field Values

PARAM_IGNORE_PROCESS_ERRORS

public static final java.lang.String PARAM_IGNORE_PROCESS_ERRORS
See Also:
Constant Field Values
Constructor Detail

JmsAnalysisEngineServiceStub

public JmsAnalysisEngineServiceStub(org.apache.uima.resource.Resource owner,
                                    org.apache.uima.resource.Parameter[] parameters)
                             throws org.apache.uima.resource.ResourceInitializationException
Throws:
org.apache.uima.resource.ResourceInitializationException
Method Detail

callGetMetaData

public org.apache.uima.resource.metadata.ResourceMetaData callGetMetaData()
                                                                   throws org.apache.uima.resource.ResourceServiceException
Specified by:
callGetMetaData in interface org.apache.uima.resource.ResourceServiceStub
Throws:
org.apache.uima.resource.ResourceServiceException
See Also:
org.apache.uima.resource.service.ResourceServiceStub#callGetMetaData()

callGetAnalysisEngineMetaData

public org.apache.uima.analysis_engine.metadata.AnalysisEngineMetaData callGetAnalysisEngineMetaData()
                                                                                              throws org.apache.uima.resource.ResourceServiceException
Throws:
org.apache.uima.resource.ResourceServiceException
See Also:
org.apache.uima.analysis_engine.service.AnalysisEngineServiceStub#callGetAnalysisEngineMetaData()

callProcess

public void callProcess(org.apache.uima.cas.CAS aCAS)
                 throws org.apache.uima.resource.ResourceServiceException
Specified by:
callProcess in interface org.apache.uima.analysis_engine.AnalysisEngineServiceStub
Throws:
org.apache.uima.resource.ResourceServiceException
See Also:
org.apache.uima.analysis_engine.service.AnalysisEngineServiceStub#callProcess(CAS)

callProcessCas

public void callProcessCas(org.apache.uima.cas.CAS aCAS)
                    throws org.apache.uima.resource.ResourceServiceException
Throws:
org.apache.uima.resource.ResourceServiceException
See Also:
CasObjectProcessorServiceStub#callProcessCas(CAS)

destroy

public void destroy()
Specified by:
destroy in interface org.apache.uima.resource.ResourceServiceStub
See Also:
org.apache.uima.resource.service.impl.ResourceServiceStub#destroy()

callBatchProcessComplete

public void callBatchProcessComplete()
                              throws org.apache.uima.resource.ResourceServiceException
Specified by:
callBatchProcessComplete in interface org.apache.uima.analysis_engine.AnalysisEngineServiceStub
Throws:
org.apache.uima.resource.ResourceServiceException
See Also:
org.apache.uima.collection.impl.service.CasObjectProcessorServiceStub#callBatchProcessComplete()

callCollectionProcessComplete

public void callCollectionProcessComplete()
                                   throws org.apache.uima.resource.ResourceServiceException
Specified by:
callCollectionProcessComplete in interface org.apache.uima.analysis_engine.AnalysisEngineServiceStub
Throws:
org.apache.uima.resource.ResourceServiceException
See Also:
org.apache.uima.collection.impl.service.CasObjectProcessorServiceStub#callCollectionProcessComplete()

collectionProcessComplete

public void collectionProcessComplete(org.apache.uima.collection.EntityProcessStatus aStatus)
Description copied from class: UimaAsBaseCallbackListener
The callback used to inform the application that the CPC request has completed. On success aStatus will be null; on failure use the EntityProcessStatus class to get the details.

Specified by:
collectionProcessComplete in interface UimaASStatusCallbackListener
Overrides:
collectionProcessComplete in class UimaAsBaseCallbackListener
Parameters:
aStatus - the status of the processing. This object contains a record of any Exception that occurred, as well as timing information.

entityProcessComplete

public void entityProcessComplete(org.apache.uima.cas.CAS aCas,
                                  org.apache.uima.collection.EntityProcessStatus aStatus)
Description copied from class: UimaAsBaseCallbackListener
Called when the processing of each entity has completed.

Specified by:
entityProcessComplete in interface UimaASStatusCallbackListener
Overrides:
entityProcessComplete in class UimaAsBaseCallbackListener
Parameters:
aCas - the CAS containing the processed entity and the analysis results
aStatus - the status of the processing. This object contains a record of any Exception that occurred, as well as timing information.

initializationComplete

public void initializationComplete(org.apache.uima.collection.EntityProcessStatus aStatus)
Description copied from class: UimaAsBaseCallbackListener
The callback used to inform the application that the initialization request has completed. On success aStatus will be null; on failure use the EntityProcessStatus class to get the details.

Specified by:
initializationComplete in interface UimaASStatusCallbackListener
Overrides:
initializationComplete in class UimaAsBaseCallbackListener
Parameters:
aStatus - the status of the processing. This object contains a record of any Exception that occurred, as well as timing information.


Copyright © 2012. All Rights Reserved.