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
|
ProcessingResourceMetaData |
getProcessingResourceMetaData(Socket aSocket)
Returns metadata associated with the fenced CasProcessor
|
CAS |
process(Socket aSocket,
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 response- - SocketException - Failed to connectSocketExceptionCAS process(Socket aSocket, CAS aCas) throws SocketTimeoutException, SocketException, AnalysisEngineProcessException
aSocket - - Socket bound to fenced CasProcessoraCas - - CAS to be sent to the CasProcessor for analysis- - SocketTimeoutException - Socket timesout before receiving response from the fenced
CasProcessor- - SocketException - connection brokenSocketTimeoutExceptionSocketExceptionAnalysisEngineProcessExceptionProcessingResourceMetaData getProcessingResourceMetaData(Socket aSocket) throws SocketException, AnalysisEngineProcessException
aSocket - -
socket to the fenced CasProcessorSocketException - passthruAnalysisEngineProcessException - passthruCopyright © 2006–2024 The Apache Software Foundation. All rights reserved.