Class NfsCommitRequest
java.lang.Object
com.emc.ecs.nfsclient.rpc.RpcRequest
com.emc.ecs.nfsclient.nfs.NfsRequestBase
com.emc.ecs.nfsclient.nfs.NfsCommitRequest
- All Implemented Interfaces:
NfsRequest
- Direct Known Subclasses:
Nfs3CommitRequest
The request, as specified by RFC 1813 (https://tools.ietf.org/html/rfc1813).
Procedure COMMIT forces or flushes data to stable storage that was previously written with a WRITE procedure call with the stable field set to UNSTABLE.
-
Field Summary
Fields inherited from class RpcRequest
CHARSET -
Constructor Summary
ConstructorsConstructorDescriptionNfsCommitRequest(byte[] fileHandle, long offsetToCommit, int dataSizeToCommit, Credential credential, int nfsVersion) Creates the request, as specified by RFC 1813 (https://tools.ietf.org/html/rfc1813). -
Method Summary
Modifier and TypeMethodDescriptionvoidmarshalling(Xdr xdr) Writes the RPC call header and authentication credentials to the XDR buffer.toString()Methods inherited from class NfsRequestBase
getErrorMessage, getFileHandle, getIpKey, startToStringMethods inherited from class RpcRequest
cloneFileHandle, isUsePrivilegedPort, setUsePrivilegedPort, trimFileName
-
Constructor Details
-
NfsCommitRequest
public NfsCommitRequest(byte[] fileHandle, long offsetToCommit, int dataSizeToCommit, Credential credential, int nfsVersion) throws FileNotFoundException Creates the request, as specified by RFC 1813 (https://tools.ietf.org/html/rfc1813).Procedure COMMIT forces or flushes data to stable storage that was previously written with a WRITE procedure call with the stable field set to UNSTABLE.
- Parameters:
fileHandle- The file handle for the file to which data is to be flushed (committed). This must identify a file system object of type, NF3REG.offsetToCommit- The position within the file at which the flush is to begin. An offset of 0 means to flush data starting at the beginning of the file.dataSizeToCommit- The number of bytes of data to flush. If count is 0, a flush from offset to the end of file is done.credential- The credential used for RPC authentication.nfsVersion- The NFS version number- Throws:
FileNotFoundException
-
-
Method Details
-
marshalling
Writes the RPC call header and authentication credentials to the XDR buffer.- Specified by:
marshallingin interfaceNfsRequest- Overrides:
marshallingin classNfsRequestBase- Parameters:
xdr- the Xdr to be sent.
-
toString
-