Package org.dcache.xrootd.stream
Class ChunkedFileReadvResponse
- java.lang.Object
-
- org.dcache.xrootd.stream.AbstractChunkedReadvResponse
-
- org.dcache.xrootd.stream.ChunkedFileReadvResponse
-
- All Implemented Interfaces:
ChunkedResponse
public class ChunkedFileReadvResponse extends AbstractChunkedReadvResponse
-
-
Field Summary
-
Fields inherited from class org.dcache.xrootd.stream.AbstractChunkedReadvResponse
index, maxFrameSize, request, requests
-
-
Constructor Summary
Constructors Constructor Description ChunkedFileReadvResponse(ReadVRequest request, int maxFrameSize, java.util.List<java.io.RandomAccessFile> files)
-
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
-
ChunkedFileReadvResponse
public ChunkedFileReadvResponse(ReadVRequest request, int maxFrameSize, java.util.List<java.io.RandomAccessFile> files)
-
-
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
-
-