Class FattrResponse
- java.lang.Object
-
- org.dcache.xrootd.protocol.messages.AbstractXrootdResponse<FattrRequest>
-
- org.dcache.xrootd.protocol.messages.FattrResponse
-
- All Implemented Interfaces:
io.netty.util.ReferenceCounted,XrootdResponse<FattrRequest>
public class FattrResponse extends AbstractXrootdResponse<FattrRequest> implements io.netty.util.ReferenceCounted
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFattrResponse.Builderstatic classFattrResponse.NamedValue
-
Field Summary
-
Fields inherited from class org.dcache.xrootd.protocol.messages.AbstractXrootdResponse
request, stat
-
-
Constructor Summary
Constructors Constructor Description FattrResponse(FattrRequest request, java.util.List<FattrResponse.NamedValue> attr)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FattrResponse.Builderbuilder(FattrRequest request)protected voidgetBytes(io.netty.buffer.ByteBuf buffer)intgetDataLength()Returns the length of the response body.intrefCnt()booleanrelease()booleanrelease(int decrement)FattrResponseretain()FattrResponseretain(int increment)FattrResponsetouch()FattrResponsetouch(java.lang.Object hint)-
Methods inherited from class org.dcache.xrootd.protocol.messages.AbstractXrootdResponse
getRequest, getStatus, writeTo
-
-
-
-
Constructor Detail
-
FattrResponse
public FattrResponse(FattrRequest request, java.util.List<FattrResponse.NamedValue> attr)
-
-
Method Detail
-
builder
public static FattrResponse.Builder builder(FattrRequest request)
-
getDataLength
public int getDataLength()
Description copied from interface:XrootdResponseReturns the length of the response body. This is the value of the dlen field in the Xrootd Server Response Format. This does not include the length of the 8 byte header.- Specified by:
getDataLengthin interfaceXrootdResponse<FattrRequest>- Specified by:
getDataLengthin classAbstractXrootdResponse<FattrRequest>
-
getBytes
protected void getBytes(io.netty.buffer.ByteBuf buffer)
- Specified by:
getBytesin classAbstractXrootdResponse<FattrRequest>
-
refCnt
public int refCnt()
- Specified by:
refCntin interfaceio.netty.util.ReferenceCounted
-
retain
public FattrResponse retain()
- Specified by:
retainin interfaceio.netty.util.ReferenceCounted
-
retain
public FattrResponse retain(int increment)
- Specified by:
retainin interfaceio.netty.util.ReferenceCounted
-
touch
public FattrResponse touch()
- Specified by:
touchin interfaceio.netty.util.ReferenceCounted
-
touch
public FattrResponse touch(java.lang.Object hint)
- Specified by:
touchin interfaceio.netty.util.ReferenceCounted
-
release
public boolean release()
- Specified by:
releasein interfaceio.netty.util.ReferenceCounted
-
release
public boolean release(int decrement)
- Specified by:
releasein interfaceio.netty.util.ReferenceCounted
-
-