public class OFSocketTransportImpl extends Object implements SocketTransport
| Constructor and Description |
|---|
OFSocketTransportImpl()
Instantiates a new OF socket transport impl.
|
| 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.
|
public OFSocketTransportImpl()
public String getName()
SocketTransportgetName in interface SocketTransportpublic Socket connect(URL aURI, long aTimeout) throws SocketException
SocketTransportconnect in interface SocketTransportaURI - URI containing service endpoint info: host & portaTimeout - max time in millis to wait for responseSocketException - Failed to connectpublic org.apache.uima.cas.CAS process(Socket aSocket, org.apache.uima.cas.CAS aCas) throws SocketTimeoutException, SocketException
SocketTransportprocess in interface SocketTransportaSocket - - Socket bound to fenced CasProcessoraCas - - CAS to be sent to the CasProcessor for analysisSocketTimeoutException - the socket timeout exceptionSocketException - the socket exceptionpublic org.apache.uima.resource.metadata.ProcessingResourceMetaData getProcessingResourceMetaData(Socket aSocket) throws SocketException
SocketTransportgetProcessingResourceMetaData in interface SocketTransportaSocket - -
socket to the fenced CasProcessorSocketException - passthruCopyright © 2006–2017 The Apache Software Foundation. All rights reserved.