@Override public Connection getConnection() { return _endp.getConnection(); }
@Override public Connection getConnection() { return _underlying.getConnection(); }
public Connection getConnection() { return _endp.getConnection(); }
protected HTTP2ServerConnection getConnection() { return (HTTP2ServerConnection)endPoint.getConnection(); }
@Override public void run() { try { closeNoExceptions(endPoint.getConnection()); } finally { latch.countDown(); } }
@Override public void run() { closeNoExceptions(_endPoint.getConnection()); _latch.countDown(); } }
@Override public void run() { try { endPoint.getConnection().close(); } finally { latch.countDown(); } }
@Override public void run() { try { endPoint.getConnection().close(); } finally { latch.countDown(); } }
public void destroyEndPoint(final EndPoint endPoint) { final Connection connection = endPoint.getConnection(); submit(new Product() { @Override public void run() { if (LOG.isDebugEnabled()) LOG.debug("Destroyed {}", endPoint); if (connection != null) _selectorManager.connectionClosed(connection); _selectorManager.endPointClosed(endPoint); } }); }
public void destroyEndPoint(EndPoint endPoint) { LOG.debug("Destroyed {}", endPoint); Connection connection = endPoint.getConnection(); if (connection != null) connectionClosed(connection); endPointClosed(endPoint); }
public void destroyEndPoint(EndPoint endPoint) { LOG.debug("Destroyed {}", endPoint); Connection connection = endPoint.getConnection(); if (connection != null) connectionClosed(connection); endPointClosed(endPoint); }
@Override public void run() { if (LOG.isDebugEnabled()) LOG.debug("Destroyed {}", endPoint); Connection connection = endPoint.getConnection(); if (connection != null) _selectorManager.connectionClosed(connection); _selectorManager.endPointClosed(endPoint); }
@Override protected void produceContent() throws IOException { ((HttpConnection)getHttpChannelState().getHttpChannel().getEndPoint().getConnection()).fillAndParseForContent(); }
@Override public void run() { if (LOG.isDebugEnabled()) LOG.debug("Destroyed {}", endPoint); Connection connection = endPoint.getConnection(); if (connection != null) _selectorManager.connectionClosed(connection); _selectorManager.endPointClosed(endPoint); }
@Override protected void produceContent() throws IOException { ((HttpConnection)getHttpChannelState().getHttpChannel().getEndPoint().getConnection()).fillAndParseForContent(); } }
public void destroyEndPoint(EndPoint endPoint) { if (LOG.isDebugEnabled()) LOG.debug("Destroyed {}", endPoint); Connection connection = endPoint.getConnection(); if (connection != null) connectionClosed(connection); endPointClosed(endPoint); }
@Override protected void blockForContent() throws IOException { ((HttpConnection)getHttpChannelState().getHttpChannel().getEndPoint().getConnection()).blockingReadFillInterested(); try { super.blockForContent(); } catch(Throwable e) { ((HttpConnection)getHttpChannelState().getHttpChannel().getEndPoint().getConnection()).blockingReadException(e); } } }
private void replaceConnection() { EndPoint endPoint = getEndPoint(); try { Connection oldConnection = endPoint.getConnection(); Connection newConnection = connectionFactory.newConnection(endPoint, context); ClientConnectionFactory.Helper.replaceConnection(oldConnection, newConnection); } catch (Throwable x) { LOG.debug(x); close(); } }
public HttpChannel(Connector connector, HttpConfiguration configuration, EndPoint endPoint, HttpTransport transport, HttpInput<T> input) { _connector = connector; _configuration = configuration; _endPoint = endPoint; _transport = transport; _uri = new HttpURI(URIUtil.__CHARSET); _state = new HttpChannelState(this); input.init(_state); _request = new Request(this, input); _response = new Response(this, new HttpOutput(this)); if (LOG.isDebugEnabled()) LOG.debug("new {} -> {},{},{}",this,_endPoint,_endPoint.getConnection(),_state); }
public HttpChannel(Connector connector, HttpConfiguration configuration, EndPoint endPoint, HttpTransport transport) { _connector = connector; _configuration = configuration; _endPoint = endPoint; _transport = transport; _state = new HttpChannelState(this); _request = new Request(this, newHttpInput(_state)); _response = new Response(this, newHttpOutput()); _executor = connector == null ? null : connector.getServer().getThreadPool(); _requestLog = connector == null ? null : connector.getServer().getRequestLog(); if (LOG.isDebugEnabled()) LOG.debug("new {} -> {},{},{}",this,_endPoint,_endPoint.getConnection(),_state); }