Class DirstreamClientHandler
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
org.apache.hadoop.ozone.container.stream.DirstreamClientHandler
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
public class DirstreamClientHandler
extends io.netty.channel.ChannelInboundHandlerAdapter
Protocol definition from streaming binary files.
Format of the protocol (TCP/IP):
LOGICAL_NAME SIZE
... (binary content)
LOGICAL_NAME SIZE
... (binary content)
END 0
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchannelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg) voidchannelUnregistered(io.netty.channel.ChannelHandlerContext ctx) voiddoRead(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf buffer) voidexceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) booleanMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelWritabilityChanged, userEventTriggeredMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
Constructor Details
-
DirstreamClientHandler
-
-
Method Details
-
channelRead
- Specified by:
channelReadin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelReadin classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
IOException
-
doRead
public void doRead(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf buffer) throws IOException - Throws:
IOException
-
isAtTheEnd
public boolean isAtTheEnd() -
channelUnregistered
public void channelUnregistered(io.netty.channel.ChannelHandlerContext ctx) - Specified by:
channelUnregisteredin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelUnregisteredin classio.netty.channel.ChannelInboundHandlerAdapter
-
exceptionCaught
- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelHandler- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
exceptionCaughtin classio.netty.channel.ChannelInboundHandlerAdapter
-
getCurrentFileName
-