MLLPTransport transport = new MLLPTransport( streamSource ); transport.connect();
@Override public void jobFinished( Job job ) throws KettleException { KettleException exception = null; try { entry.getTransport().disconnect(); } catch ( Exception e ) { exception = new KettleException( e ); } try { entry.getStreamSource().disconnect(); } catch ( Exception e ) { exception = new KettleException( e ); } try { entry.getServerSocket().close(); } catch ( Exception e ) { exception = new KettleException( e ); } map.remove( key ); if ( exception != null ) { throw exception; } } } );
private static TransportLayer getTransport(ServerSocket theServerSocket, String theAddress) throws TransportException { ServerSocketStreamSource ss = new ServerSocketStreamSource(theServerSocket, theAddress); return new MLLPTransport(ss); }
/** * @param theStreamSource the provider of input and output streams connected * to the remote server */ public MLLPTransport(StreamSource theStreamSource) throws TransportException { myStreamSource = theStreamSource; myCharsetMappings = loadCharsetMappings(); }
Transportable transportable = transport.doReceive(); String message = transportable.getMessage();
transport.doSend( transportable );
private static TransportLayer getTransport(ServerSocket theServerSocket, String theAddress) throws TransportException { ServerSocketStreamSource ss = new ServerSocketStreamSource(theServerSocket, theAddress); return new MLLPTransport(ss); }
/** * @param theStreamSource the provider of input and output streams connected * to the remote server */ public MLLPTransport(StreamSource theStreamSource) throws TransportException { myStreamSource = theStreamSource; myCharsetMappings = loadCharsetMappings(); }