Package org.dcache.xrootd.stream
Class ChunkedFileChannelReadvResponse
- java.lang.Object
-
- org.dcache.xrootd.stream.AbstractChunkedReadvResponse
-
- org.dcache.xrootd.stream.ChunkedFileChannelReadvResponse
-
- All Implemented Interfaces:
ChunkedResponse
public class ChunkedFileChannelReadvResponse extends AbstractChunkedReadvResponse
-
-
Field Summary
-
Fields inherited from class org.dcache.xrootd.stream.AbstractChunkedReadvResponse
index, maxFrameSize, request, requests
-
-
Constructor Summary
Constructors Constructor Description ChunkedFileChannelReadvResponse(ReadVRequest request, int maxFrameSize, java.util.List<java.nio.channels.FileChannel> channels)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected longgetSize(int fd)protected io.netty.buffer.ByteBufread(io.netty.buffer.ByteBufAllocator alloc, int fd, long position, int length)-
Methods inherited from class org.dcache.xrootd.stream.AbstractChunkedReadvResponse
close, getRequest, isEndOfInput, nextChunk
-
-
-
-
Constructor Detail
-
ChunkedFileChannelReadvResponse
public ChunkedFileChannelReadvResponse(ReadVRequest request, int maxFrameSize, java.util.List<java.nio.channels.FileChannel> channels)
-
-
Method Detail
-
getSize
protected long getSize(int fd) throws java.io.IOException, XrootdException- Specified by:
getSizein classAbstractChunkedReadvResponse- Throws:
java.io.IOExceptionXrootdException
-
read
protected io.netty.buffer.ByteBuf read(io.netty.buffer.ByteBufAllocator alloc, int fd, long position, int length) throws java.io.IOException, XrootdException- Specified by:
readin classAbstractChunkedReadvResponse- Throws:
java.io.IOExceptionXrootdException
-
-