Package org.apache.uima.adapter.vinci
Class VinciAnalysisEngineServiceStub
java.lang.Object
org.apache.uima.adapter.vinci.VinciAnalysisEngineServiceStub
- All Implemented Interfaces:
AnalysisEngineServiceStub
,ResourceServiceStub
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final boolean
private int
Timeout to use for getMetaData calls.private Resource
private int
Timeout to use for process and collectionProcessComplete calls.private VinciClient
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) VinciAnalysisEngineServiceStub
(String endpointURI, Resource owner) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Performs service call to inform the AnalysisEngine that the processing of a batch has been completed.void
Performs service call to inform the AnalysisEngine that the processing of a collection has been completed.Performs service call to retrieve resource meta data.boolean
boolean
void
callProcess
(CAS aCAS) Performs service call to process an entity.void
callProcessCas
(CAS aCAS) void
destroy()
Called when this stub is no longer needed, so any open connections can be closed.private void
The actual process call.protected boolean
Gets whether socket keepAlive is enabled, by consulting the PerformanceTuningSettings.
-
Field Details
-
mVinciClient
-
mOwner
-
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 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 - Throws:
ResourceInitializationException
-
VinciAnalysisEngineServiceStub
public VinciAnalysisEngineServiceStub(String endpointURI, Integer timeout, Resource owner, Parameter[] parameters) throws ResourceInitializationException - Throws:
ResourceInitializationException
-
-
Method Details
-
callGetMetaData
Description copied from interface:ResourceServiceStub
Performs service call to retrieve resource meta data.- Specified by:
callGetMetaData
in interfaceResourceServiceStub
- Returns:
- metadata for the Resource
- Throws:
ResourceServiceException
- passthru- See Also:
-
callProcess
Description copied from interface:AnalysisEngineServiceStub
Performs service call to process an entity.- Specified by:
callProcess
in interfaceAnalysisEngineServiceStub
- Parameters:
aCAS
- the CAS to process- Throws:
ResourceServiceException
- tbd- See Also:
-
callProcessCas
- Throws:
ResourceServiceException
- See Also:
-
doProcess
The actual process call.- Throws:
ResourceServiceException
-
destroy
public void destroy()Description copied from interface:ResourceServiceStub
Called when this stub is no longer needed, so any open connections can be closed.- Specified by:
destroy
in interfaceResourceServiceStub
- See Also:
-
callBatchProcessComplete
Description copied from interface:AnalysisEngineServiceStub
Performs service call to inform the AnalysisEngine that the processing of a batch has been completed.- Specified by:
callBatchProcessComplete
in interfaceAnalysisEngineServiceStub
- Throws:
ResourceServiceException
- tbd- See Also:
-
callCollectionProcessComplete
Description copied from interface:AnalysisEngineServiceStub
Performs service call to inform the AnalysisEngine that the processing of a collection has been completed.- Specified by:
callCollectionProcessComplete
in 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
-