Package org.apache.uima.adapter.vinci
Class VinciAnalysisEngineServiceStub
java.lang.Object
org.apache.uima.adapter.vinci.VinciAnalysisEngineServiceStub
- All Implemented Interfaces:
AnalysisEngineServiceStub,ResourceServiceStub
The Class VinciAnalysisEngineServiceStub.
-
Constructor Summary
ConstructorsConstructorDescriptionVinciAnalysisEngineServiceStub(String endpointURI, Integer timeout, Resource owner, Parameter[] parameters) Instantiates a new vinci analysis engine service stub.VinciAnalysisEngineServiceStub(String endpointURI, Resource owner) Instantiates a new vinci analysis engine service stub. -
Method Summary
Modifier and TypeMethodDescriptionvoidCall batch process complete.voidCall collection process complete.Call get meta data.Call get supported X cas versions.booleanCall is read only.booleanCall is stateless.voidcallProcess(CAS aCAS) Call process.voidcallProcessCas(CAS aCAS) Call process cas.voiddestroy()Destroy.protected booleanGets whether socket keepAlive is enabled, by consulting the PerformanceTuningSettings.
-
Constructor Details
-
VinciAnalysisEngineServiceStub
public VinciAnalysisEngineServiceStub(String endpointURI, Resource owner) throws ResourceInitializationException Instantiates a new vinci analysis engine service stub.- Parameters:
endpointURI- the endpoint URIowner- the owner- Throws:
ResourceInitializationException- the resource initialization exception
-
VinciAnalysisEngineServiceStub
public VinciAnalysisEngineServiceStub(String endpointURI, Integer timeout, Resource owner, Parameter[] parameters) throws ResourceInitializationException Instantiates a new vinci analysis engine service stub.- Parameters:
endpointURI- the endpoint URItimeout- the timeoutowner- the ownerparameters- the parameters- Throws:
ResourceInitializationException- the resource initialization exception
-
-
Method Details
-
callGetMetaData
Call get meta data.- Specified by:
callGetMetaDatain interfaceResourceServiceStub- Returns:
- the resource meta data
- Throws:
ResourceServiceException- the resource service exception- See Also:
-
callProcess
Call process.- Specified by:
callProcessin interfaceAnalysisEngineServiceStub- Parameters:
aCAS- the a CAS- Throws:
ResourceServiceException- the resource service exception- See Also:
-
callProcessCas
Call process cas.- Parameters:
aCAS- the a CAS- Throws:
ResourceServiceException- the resource service exception- See Also:
-
destroy
public void destroy()Destroy.- Specified by:
destroyin interfaceResourceServiceStub- See Also:
-
callBatchProcessComplete
Call batch process complete.- Specified by:
callBatchProcessCompletein interfaceAnalysisEngineServiceStub- Throws:
ResourceServiceException- the resource service exception- See Also:
-
callCollectionProcessComplete
Call collection process complete.- Specified by:
callCollectionProcessCompletein interfaceAnalysisEngineServiceStub- Throws:
ResourceServiceException- the resource service exception- See Also:
-
callIsReadOnly
Call is read only.- Returns:
- true, if successful
- Throws:
ResourceServiceException- the resource service exception- See Also:
-
callIsStateless
Call is stateless.- Returns:
- true, if successful
- Throws:
ResourceServiceException- the resource service exception- See Also:
-
callGetSupportedXCasVersions
Call get supported X cas versions.- Returns:
- the list
- Throws:
ResourceServiceException- the resource service exception
-
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
-