Package org.apache.uima.adapter.vinci
Class VinciAnalysisEngineServiceStub
java.lang.Object
org.apache.uima.adapter.vinci.VinciAnalysisEngineServiceStub
- All Implemented Interfaces:
AnalysisEngineServiceStub,ResourceServiceStub
-
Constructor Summary
ConstructorsConstructorDescriptionVinciAnalysisEngineServiceStub(String endpointURI, Integer timeout, Resource owner, Parameter[] parameters) VinciAnalysisEngineServiceStub(String endpointURI, Resource owner) -
Method Summary
Modifier and TypeMethodDescriptionvoidPerforms service call to inform the AnalysisEngine that the processing of a batch has been completed.voidPerforms service call to inform the AnalysisEngine that the processing of a collection has been completed.Performs service call to retrieve resource meta data.booleanbooleanvoidcallProcess(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 booleanGets whether socket keepAlive is enabled, by consulting the PerformanceTuningSettings.
-
Constructor Details
-
VinciAnalysisEngineServiceStub
public VinciAnalysisEngineServiceStub(String endpointURI, Resource owner) throws ResourceInitializationException - Throws:
ResourceInitializationException
-
VinciAnalysisEngineServiceStub
public VinciAnalysisEngineServiceStub(String endpointURI, Integer timeout, Resource owner, Parameter[] parameters) throws ResourceInitializationException - Throws:
ResourceInitializationException
-
-
Method Details
-
callGetMetaData
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:
-
callProcess
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:
-
callProcessCas
- Throws:
ResourceServiceException- See Also:
-
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:
-
callBatchProcessComplete
Description 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:
-
callCollectionProcessComplete
Description 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:
-
callIsReadOnly
- Throws:
ResourceServiceException- See Also:
-
callIsStateless
- Throws:
ResourceServiceException- See Also:
-
callGetSupportedXCasVersions
- 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
-