Package org.apache.uima.adapter.vinci
Class VinciAnalysisEngineServiceStub
- java.lang.Object
-
- org.apache.uima.adapter.vinci.VinciAnalysisEngineServiceStub
-
- All Implemented Interfaces:
AnalysisEngineServiceStub,ResourceServiceStub
public class VinciAnalysisEngineServiceStub extends java.lang.Object implements AnalysisEngineServiceStub
-
-
Constructor Summary
Constructors Constructor Description VinciAnalysisEngineServiceStub(java.lang.String endpointURI, java.lang.Integer timeout, Resource owner, Parameter[] parameters)VinciAnalysisEngineServiceStub(java.lang.String endpointURI, Resource owner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcallBatchProcessComplete()Performs service call to inform the AnalysisEngine that the processing of a batch has been completed.voidcallCollectionProcessComplete()Performs service call to inform the AnalysisEngine that the processing of a collection has been completed.ResourceMetaDatacallGetMetaData()Performs service call to retrieve resource meta data.java.util.ListcallGetSupportedXCasVersions()booleancallIsReadOnly()booleancallIsStateless()voidcallProcess(CAS aCAS)Performs service call to process an entity.voidcallProcessCas(CAS aCAS)voiddestroy()Called when this stub is no longer needed, so any open connections can be closed.protected booleanisSocketKeepAliveEnabled()Gets whether socket keepAlive is enabled, by consulting the PerformanceTuningSettings.
-
-
-
Constructor Detail
-
VinciAnalysisEngineServiceStub
public VinciAnalysisEngineServiceStub(java.lang.String endpointURI, Resource owner) throws ResourceInitializationException- Throws:
ResourceInitializationException
-
VinciAnalysisEngineServiceStub
public VinciAnalysisEngineServiceStub(java.lang.String endpointURI, java.lang.Integer timeout, Resource owner, Parameter[] parameters) throws ResourceInitializationException- Throws:
ResourceInitializationException
-
-
Method Detail
-
callGetMetaData
public ResourceMetaData callGetMetaData() throws ResourceServiceException
Description copied from interface:ResourceServiceStubPerforms service call to retrieve resource meta data.- Specified by:
callGetMetaDatain interfaceResourceServiceStub- Returns:
- metadata for the Resource
- Throws:
ResourceServiceException- passthru- See Also:
ResourceServiceStub.callGetMetaData()
-
callProcess
public void callProcess(CAS aCAS) throws ResourceServiceException
Description copied from interface:AnalysisEngineServiceStubPerforms service call to process an entity.- Specified by:
callProcessin interfaceAnalysisEngineServiceStub- Parameters:
aCAS- the CAS to process- Throws:
ResourceServiceException- tbd- See Also:
AnalysisEngineServiceStub.callProcess(CAS)
-
callProcessCas
public void callProcessCas(CAS aCAS) throws ResourceServiceException
- Throws:
ResourceServiceException- See Also:
CasObjectProcessor.processCas(CAS)
-
destroy
public void destroy()
Description copied from interface:ResourceServiceStubCalled when this stub is no longer needed, so any open connections can be closed.- Specified by:
destroyin interfaceResourceServiceStub- See Also:
ResourceServiceStub.destroy()
-
callBatchProcessComplete
public void callBatchProcessComplete() throws ResourceServiceExceptionDescription copied from interface:AnalysisEngineServiceStubPerforms service call to inform the AnalysisEngine that the processing of a batch has been completed.- Specified by:
callBatchProcessCompletein interfaceAnalysisEngineServiceStub- Throws:
ResourceServiceException- tbd- See Also:
CasProcessor.batchProcessComplete(org.apache.uima.util.ProcessTrace)
-
callCollectionProcessComplete
public void callCollectionProcessComplete() throws ResourceServiceExceptionDescription copied from interface:AnalysisEngineServiceStubPerforms service call to inform the AnalysisEngine that the processing of a collection has been completed.- Specified by:
callCollectionProcessCompletein interfaceAnalysisEngineServiceStub- Throws:
ResourceServiceException- tbd- See Also:
CasProcessor.collectionProcessComplete(org.apache.uima.util.ProcessTrace)
-
callIsReadOnly
public boolean callIsReadOnly() throws ResourceServiceException- Throws:
ResourceServiceException- See Also:
CasProcessor.isReadOnly()
-
callIsStateless
public boolean callIsStateless() throws ResourceServiceException- Throws:
ResourceServiceException- See Also:
CasProcessor.isStateless()
-
callGetSupportedXCasVersions
public java.util.List callGetSupportedXCasVersions() throws ResourceServiceException- Throws:
ResourceServiceException
-
isSocketKeepAliveEnabled
protected boolean isSocketKeepAliveEnabled()
Gets whether socket keepAlive is enabled, by consulting the PerformanceTuningSettings. (If no setting specified, defaults to true.)- Returns:
- if socketKeepAlive is enabled
-
-