Package org.apache.uima.adapter.vinci
Class VinciBinaryAnalysisEngineServiceStub
- java.lang.Object
-
- org.apache.uima.adapter.vinci.VinciBinaryAnalysisEngineServiceStub
-
- All Implemented Interfaces:
AnalysisEngineServiceStub,ResourceServiceStub
public class VinciBinaryAnalysisEngineServiceStub extends java.lang.Object implements AnalysisEngineServiceStub
The Class VinciBinaryAnalysisEngineServiceStub.
-
-
Field Summary
Fields Modifier and Type Field Description private static booleandebugThe Constant debug.private intmGetMetaDataTimeoutTimeout to use for getMetaData calls.private AnalysisEngineServiceAdaptermOwnerThe m owner.private intmTimeoutTimeout to use for process and collectionProcessComplete calls.private VinciClientmVinciClientThe m vinci client.
-
Constructor Summary
Constructors Constructor Description VinciBinaryAnalysisEngineServiceStub(java.lang.String endpointURI, java.lang.Integer timeout, AnalysisEngineServiceAdapter owner, Parameter[] parameters)Instantiates a new vinci binary analysis engine service stub.VinciBinaryAnalysisEngineServiceStub(java.lang.String endpointURI, AnalysisEngineServiceAdapter owner)Instantiates a new vinci binary analysis engine service stub.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcallBatchProcessComplete()Call batch process complete.voidcallCollectionProcessComplete()Call collection process complete.ResourceMetaDatacallGetMetaData()Call get meta data.voidcallProcess(CAS aCAS)Call process.voiddestroy()Destroy.static java.lang.StringgetParameterValueFor(java.lang.String aKey, Parameter[] parameters)Gets the parameter value for.private booleanisSocketKeepAliveEnabled()Gets whether socket keepAlive is enabled, by consulting the PerformanceTuningSettings.
-
-
-
Field Detail
-
debug
private static final boolean debug
The Constant debug.- See Also:
- Constant Field Values
-
mVinciClient
private VinciClient mVinciClient
The m vinci client.
-
mOwner
private AnalysisEngineServiceAdapter mOwner
The m owner.
-
mTimeout
private int mTimeout
Timeout to use for process and collectionProcessComplete calls.
-
mGetMetaDataTimeout
private int mGetMetaDataTimeout
Timeout to use for getMetaData calls.
-
-
Constructor Detail
-
VinciBinaryAnalysisEngineServiceStub
public VinciBinaryAnalysisEngineServiceStub(java.lang.String endpointURI, AnalysisEngineServiceAdapter owner) throws ResourceInitializationExceptionInstantiates a new vinci binary analysis engine service stub.- Parameters:
endpointURI- the endpoint URIowner- the owner- Throws:
ResourceInitializationException- the resource initialization exception
-
VinciBinaryAnalysisEngineServiceStub
public VinciBinaryAnalysisEngineServiceStub(java.lang.String endpointURI, java.lang.Integer timeout, AnalysisEngineServiceAdapter owner, Parameter[] parameters) throws ResourceInitializationExceptionInstantiates a new vinci binary analysis engine service stub.- Parameters:
endpointURI- the endpoint URItimeout- the timeoutowner- the ownerparameters- the parameters- Throws:
ResourceInitializationException- the resource initialization exception
-
-
Method Detail
-
getParameterValueFor
public static java.lang.String getParameterValueFor(java.lang.String aKey, Parameter[] parameters)Gets the parameter value for.- Parameters:
aKey- the a keyparameters- the parameters- Returns:
- the parameter value for
-
callGetMetaData
public ResourceMetaData callGetMetaData() throws ResourceServiceException
Call get meta data.- Specified by:
callGetMetaDatain interfaceResourceServiceStub- Returns:
- the resource meta data
- Throws:
ResourceServiceException- the resource service exception- See Also:
ResourceServiceStub.callGetMetaData()
-
callProcess
public void callProcess(CAS aCAS) throws ResourceServiceException
Call process.- Specified by:
callProcessin interfaceAnalysisEngineServiceStub- Parameters:
aCAS- the a CAS- Throws:
ResourceServiceException- the resource service exception- See Also:
AnalysisEngineServiceStub.callProcess(CAS)
-
callBatchProcessComplete
public void callBatchProcessComplete() throws ResourceServiceExceptionCall batch process complete.- Specified by:
callBatchProcessCompletein interfaceAnalysisEngineServiceStub- Throws:
ResourceServiceException- the resource service exception- See Also:
AnalysisEngineServiceStub.callBatchProcessComplete()
-
callCollectionProcessComplete
public void callCollectionProcessComplete() throws ResourceServiceExceptionCall collection process complete.- Specified by:
callCollectionProcessCompletein interfaceAnalysisEngineServiceStub- Throws:
ResourceServiceException- the resource service exception- See Also:
AnalysisEngineServiceStub.callCollectionProcessComplete()
-
destroy
public void destroy()
Destroy.- Specified by:
destroyin interfaceResourceServiceStub- See Also:
ResourceServiceStub.destroy()
-
isSocketKeepAliveEnabled
private boolean isSocketKeepAliveEnabled()
Gets whether socket keepAlive is enabled, by consulting the PerformanceTuningSettings. (If no setting specified, defaults to true.)- Returns:
- if socketKeepAlive is enabled
-
-