List of usage examples for io.netty.channel ChannelHandlerContext fireChannelRead
@Override ChannelHandlerContext fireChannelRead(Object msg);
From source file:org.dcache.xrootd.tpc.AbstractClientRequestHandler.java
License:Open Source License
protected void doOnAsynResponse(ChannelHandlerContext ctx, InboundAttnResponse response) throws XrootdException { switch (response.getRequestId()) { case kXR_endsess: client.doEndsession(ctx);//from w ww. j a v a 2 s . c o m break; default: ctx.fireChannelRead(response); } }
From source file:org.dcache.xrootd.tpc.AbstractClientRequestHandler.java
License:Open Source License
protected void doOnAuthenticationResponse(ChannelHandlerContext ctx, InboundAuthenticationResponse response) throws XrootdException { LOGGER.trace("doOnAuthenticationResponse, channel {}, stream {}" + " passing to next in chain.", ctx.channel().id(), response.getStreamId()); ctx.fireChannelRead(response); }
From source file:org.dcache.xrootd.tpc.AbstractClientRequestHandler.java
License:Open Source License
protected void doOnChecksumResponse(ChannelHandlerContext ctx, InboundChecksumResponse response) throws XrootdException { LOGGER.trace("doOnChecksumResponse, channel {}, stream {}" + " passing to next in chain.", ctx.channel().id(), response.getStreamId()); ctx.fireChannelRead(response); }
From source file:org.dcache.xrootd.tpc.AbstractClientRequestHandler.java
License:Open Source License
protected void doOnCloseResponse(ChannelHandlerContext ctx, InboundCloseResponse response) throws XrootdException { LOGGER.trace("doOnCloseResponse, channel {}, stream {}" + " passing to next in chain.", ctx.channel().id(), response.getStreamId()); ctx.fireChannelRead(response); }
From source file:org.dcache.xrootd.tpc.AbstractClientRequestHandler.java
License:Open Source License
protected void doOnHandshakeResponse(ChannelHandlerContext ctx, InboundHandshakeResponse response) throws XrootdException { LOGGER.trace("doOnHandshakeResponse, channel {}" + " passing to next in chain.", ctx.channel().id()); ctx.fireChannelRead(response); }
From source file:org.dcache.xrootd.tpc.AbstractClientRequestHandler.java
License:Open Source License
protected void doOnLoginResponse(ChannelHandlerContext ctx, InboundLoginResponse response) throws XrootdException { LOGGER.trace("doOnLoginResponse, channel {}, stream {}" + " passing to next in chain.", ctx.channel().id(), response.getStreamId()); ctx.fireChannelRead(response); }
From source file:org.dcache.xrootd.tpc.AbstractClientRequestHandler.java
License:Open Source License
protected void doOnOpenResponse(ChannelHandlerContext ctx, InboundOpenReadOnlyResponse response) throws XrootdException { LOGGER.trace("doOnOpenResponse, channel {}, stream {}" + " passing to next in chain.", ctx.channel().id(), response.getStreamId()); ctx.fireChannelRead(response); }
From source file:org.dcache.xrootd.tpc.AbstractClientRequestHandler.java
License:Open Source License
protected void doOnProtocolResponse(ChannelHandlerContext ctx, InboundProtocolResponse response) throws XrootdException { LOGGER.trace("doOnProtocolResponse, channel {}, stream {}" + " passing to next in chain.", ctx.channel().id(), response.getStreamId()); ctx.fireChannelRead(response); }
From source file:org.dcache.xrootd.tpc.AbstractClientRequestHandler.java
License:Open Source License
protected void doOnReadResponse(ChannelHandlerContext ctx, InboundReadResponse response) throws XrootdException { LOGGER.trace("doOnReadResponse, channel {}, stream {}" + " passing to next in chain.", ctx.channel().id(), response.getStreamId()); ctx.fireChannelRead(response); }
From source file:org.dcache.xrootd.tpc.AbstractClientRequestHandler.java
License:Open Source License
protected synchronized void doOnWaitResponse(final ChannelHandlerContext ctx, AbstractXrootdInboundResponse response) throws XrootdException { switch (response.getRequestId()) { case kXR_endsess: future = client.getExecutor().schedule(() -> { client.doEndsession(ctx);//from www . j av a 2s. co m }, getWaitInSeconds(response), TimeUnit.SECONDS); break; default: ctx.fireChannelRead(response); } }