Class NfsReaddirResponse
java.lang.Object
com.emc.ecs.nfsclient.rpc.RpcResponse
com.emc.ecs.nfsclient.nfs.NfsResponseBase
com.emc.ecs.nfsclient.nfs.NfsReaddirResponse
- Direct Known Subclasses:
Nfs3ReaddirResponse
The response, as specified by RFC 1813 (https://tools.ietf.org/html/rfc1813).
Procedure READDIR retrieves a variable number of entries, in sequence, from a directory and returns the name and file identifier for each, with information to allow the client to request additional directory entries in a subsequent READDIR request.
-
Field Summary
Fields inherited from class RpcResponse
_xid -
Constructor Summary
ConstructorsConstructorDescriptionNfsReaddirResponse(int nfsVersion) Creates the response, as specified by RFC 1813 (https://tools.ietf.org/html/rfc1813).NfsReaddirResponse(List<NfsDirectoryEntry> entries, int nfsVersion) Creates the response, as specified by RFC 1813 (https://tools.ietf.org/html/rfc1813). -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the lastcookiefrom the server, for use in the next request.longReturns thecookieverffrom the server, for use in the next request.Returns the list of entries.booleanisEof()Returnstrueif the end of file is reached.voidunmarshalling(Xdr xdr) Load this structure from the response data, as specified by RFC 1831 (https://tools.ietf.org/html/rfc1831).Methods inherited from class NfsResponseBase
getAttributes, getFileHandle, getState, makeNfsGetAttributes, makeNfsGetAttributes, stateIsOk, toString, unmarshallingAttributes, unmarshallingAttributes, unmarshallingFileHandle, unmarshallingFileHandleMethods inherited from class RpcResponse
getAcceptStatus, getDirection, getRejectStatus, getReplyStatus, getXid
-
Constructor Details
-
NfsReaddirResponse
public NfsReaddirResponse(int nfsVersion) Creates the response, as specified by RFC 1813 (https://tools.ietf.org/html/rfc1813).Procedure READDIR retrieves a variable number of entries, in sequence, from a directory and returns the name and file identifier for each, with information to allow the client to request additional directory entries in a subsequent READDIR request.
- Parameters:
nfsVersion- The NFS version number. This is ignored for now, as only NFSv3 is supported, but is included to allow future support for other versions.
-
NfsReaddirResponse
Creates the response, as specified by RFC 1813 (https://tools.ietf.org/html/rfc1813).Procedure READDIR retrieves a variable number of entries, in sequence, from a directory and returns the name and file identifier for each, with information to allow the client to request additional directory entries in a subsequent READDIR request.
- Parameters:
entries- A list in which to store the entries.nfsVersion- The NFS version number. This is ignored for now, as only NFSv3 is supported, but is included to allow future support for other versions.
-
-
Method Details
-
unmarshalling
Load this structure from the response data, as specified by RFC 1831 (https://tools.ietf.org/html/rfc1831).- Overrides:
unmarshallingin classNfsResponseBase- Parameters:
xdr- The xdr response data.- Throws:
RpcException
-
getCookie
public long getCookie()Returns the lastcookiefrom the server, for use in the next request. -
getCookieverf
public long getCookieverf()Returns thecookieverffrom the server, for use in the next request. -
getEntries
Returns the list of entries. -
isEof
public boolean isEof()Returnstrueif the end of file is reached.falseotherwise.
-