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
ConstructorDescriptionVinciAnalysisEngineServiceStub
(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 TypeMethodDescriptionvoid
Call batch process complete.void
Call collection process complete.Call get meta data.Call get supported X cas versions.boolean
Call is read only.boolean
Call is stateless.void
callProcess
(CAS aCAS) Call process.void
callProcessCas
(CAS aCAS) Call process cas.void
destroy()
Destroy.protected boolean
Gets 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:
callGetMetaData
in interfaceResourceServiceStub
- Returns:
- the resource meta data
- Throws:
ResourceServiceException
- the resource service exception- See Also:
-
callProcess
Call process.- Specified by:
callProcess
in 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:
destroy
in interfaceResourceServiceStub
- See Also:
-
callBatchProcessComplete
Call batch process complete.- Specified by:
callBatchProcessComplete
in interfaceAnalysisEngineServiceStub
- Throws:
ResourceServiceException
- the resource service exception- See Also:
-
callCollectionProcessComplete
Call collection process complete.- Specified by:
callCollectionProcessComplete
in 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
-