public interface SocketTransport
| Modifier and Type | Method and Description |
|---|---|
Socket |
connect(URL aURI,
long aTimeout)
Creates a socket connection to a given endpoint.
|
String |
getName()
Returns transport identifier.
|
org.apache.uima.resource.metadata.ProcessingResourceMetaData |
getProcessingResourceMetaData(Socket aSocket)
Returns metadata associated with the fenced CasProcessor.
|
org.apache.uima.cas.CAS |
process(Socket aSocket,
org.apache.uima.cas.CAS aCas)
Invokes fenced CasProcessor.
|
String getName()
Socket connect(URL aURI, long aTimeout) throws SocketException
aURI - URI containing service endpoint info: host & portaTimeout - max time in millis to wait for responseSocketException - Failed to connectorg.apache.uima.cas.CAS process(Socket aSocket, org.apache.uima.cas.CAS aCas) throws SocketTimeoutException, SocketException, org.apache.uima.analysis_engine.AnalysisEngineProcessException
aSocket - - Socket bound to fenced CasProcessoraCas - - CAS to be sent to the CasProcessor for analysisSocketTimeoutException - the socket timeout exceptionSocketException - the socket exceptionorg.apache.uima.analysis_engine.AnalysisEngineProcessException - the analysis engine process exceptionorg.apache.uima.resource.metadata.ProcessingResourceMetaData getProcessingResourceMetaData(Socket aSocket) throws SocketException, org.apache.uima.analysis_engine.AnalysisEngineProcessException
aSocket - -
socket to the fenced CasProcessorSocketException - passthruorg.apache.uima.analysis_engine.AnalysisEngineProcessException - passthruCopyright © 2006–2017 The Apache Software Foundation. All rights reserved.