Class StatRequest
- java.lang.Object
-
- org.dcache.xrootd.protocol.messages.AbstractXrootdRequest
-
- org.dcache.xrootd.protocol.messages.PathRequest
-
- org.dcache.xrootd.protocol.messages.StatRequest
-
- All Implemented Interfaces:
XrootdRequest
public class StatRequest extends PathRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStatRequest.TargetHow the client is specifying about which file the server should provided metadata.
-
Field Summary
-
Fields inherited from class org.dcache.xrootd.protocol.messages.AbstractXrootdRequest
requestId, session, streamId
-
-
Constructor Summary
Constructors Constructor Description StatRequest(io.netty.buffer.ByteBuf buffer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetFhandle()StatRequest.TargetgetTarget()Provide the target type of the kXR_stat request.booleanisVfsSet()java.lang.StringtoString()-
Methods inherited from class org.dcache.xrootd.protocol.messages.PathRequest
getOpaque, getPath, setOpaque, setPath
-
Methods inherited from class org.dcache.xrootd.protocol.messages.AbstractXrootdRequest
getRequestId, getSession, getStreamId, getSubject, setSession
-
-
-
-
Method Detail
-
isVfsSet
public boolean isVfsSet()
-
getFhandle
public int getFhandle()
-
getTarget
public StatRequest.Target getTarget()
Provide the target type of the kXR_stat request. The protocol allows the client to request information about a file by specifying that file's path, or by specifying an opened file handle. If this method returns Target.FHANDLE thengetFhandle()describes the file handle the client is targeting. If the returned value is Target.PATH thenPathRequest.getPath()describes the file path the client is targeting.- Returns:
- the kind of object the client is requesting
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-