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 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.protected boolean
Gets 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: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:
-
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
-