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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final boolean
The Constant debug.private int
Timeout to use for getMetaData calls.private Resource
The m owner.private int
Timeout to use for process and collectionProcessComplete calls.private VinciClient
The m vinci client.private static final List
Value to return from callGetSupportedXCasVersions method for older services that don't actually implement this method. -
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 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.private void
The actual process call.protected boolean
Gets whether socket keepAlive is enabled, by consulting the PerformanceTuningSettings.
-
Field Details
-
mVinciClient
The m vinci client. -
mOwner
The m owner. -
mTimeout
private int mTimeoutTimeout to use for process and collectionProcessComplete calls. -
mGetMetaDataTimeout
private int mGetMetaDataTimeoutTimeout to use for getMetaData calls. -
debug
private static final boolean debugThe Constant debug. -
SUPPORT_XCAS_V1
Value to return from callGetSupportedXCasVersions method for older services that don't actually implement this method.
-
-
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:
-
doProcess
The actual process call.- Parameters:
aCAS
- the a CAS- Throws:
ResourceServiceException
- the resource service exception
-
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
-