/** * The main processing done by this object is done using a thread * calling the <code>run</code> method. Here the TCP connections * are accepted from the <code>ServerSocketChannel</code> which * creates the socket objects. Each socket is then encapsulated in * to a pipeline and dispatched to the processor for processing. * * @throws IOException if there is a problem accepting the socket */ private void accept() throws IOException { SocketChannel channel = listener.accept(); while(channel != null) { Trace trace = analyzer.attach(channel); configure(channel); if(context == null) { process(channel, trace, null); } else { process(channel, trace); } channel = listener.accept(); } }
/** * The main processing done by this object is done using a thread * calling the <code>run</code> method. Here the TCP connections * are accepted from the <code>ServerSocketChannel</code> which * creates the socket objects. Each socket is then encapsulated in * to a pipeline and dispatched to the processor for processing. * * @throws IOException if there is a problem accepting the socket */ private void accept() throws IOException { SocketChannel channel = listener.accept(); while(channel != null) { Trace trace = agent.attach(channel); configure(channel); if(context == null) { process(channel, trace, null); } else { process(channel, trace); } channel = listener.accept(); } }
/** * The main processing done by this object is done using a thread * calling the <code>run</code> method. Here the TCP connections * are accepted from the <code>ServerSocketChannel</code> which * creates the socket objects. Each socket is then encapsulated in * to a pipeline and dispatched to the processor for processing. * * @throws IOException if there is a problem accepting the socket */ private void accept() throws IOException { SocketChannel channel = listener.accept(); while(channel != null) { Trace trace = analyzer.attach(channel); configure(channel); if(context == null) { process(channel, trace, null); } else { process(channel, trace); } channel = listener.accept(); } }