Class Nfs3WriteRequest
java.lang.Object
com.emc.ecs.nfsclient.rpc.RpcRequest
com.emc.ecs.nfsclient.nfs.NfsRequestBase
com.emc.ecs.nfsclient.nfs.NfsWriteRequest
com.emc.ecs.nfsclient.nfs.nfs3.Nfs3WriteRequest
- All Implemented Interfaces:
NfsRequest
The request, as specified by RFC 1813 (https://tools.ietf.org/html/rfc1813).
Procedure WRITE writes data to a file.
-
Field Summary
Fields inherited from class NfsWriteRequest
DATA_SYNC, FILE_SYNC, UNSTABLEFields inherited from class RpcRequest
CHARSET -
Constructor Summary
ConstructorsConstructorDescriptionNfs3WriteRequest(byte[] fileHandle, long offset, List<ByteBuffer> payload, int syncType, Credential credential) Creates the request, as specified by RFC 1813 (https://tools.ietf.org/html/rfc1813). -
Method Summary
Methods inherited from class NfsWriteRequest
getSize, isSync, marshalling, toStringMethods inherited from class NfsRequestBase
getErrorMessage, getFileHandle, getIpKey, startToStringMethods inherited from class RpcRequest
cloneFileHandle, isUsePrivilegedPort, setUsePrivilegedPort, trimFileName
-
Constructor Details
-
Nfs3WriteRequest
public Nfs3WriteRequest(byte[] fileHandle, long offset, List<ByteBuffer> payload, int syncType, Credential credential) throws FileNotFoundException Creates the request, as specified by RFC 1813 (https://tools.ietf.org/html/rfc1813).Procedure WRITE writes data to a file.
- Parameters:
fileHandle- The file handle for the file to which data is to be written. This must identify a file system object of type, NF3REG.offset- The position within the file at which the write is to begin. An offset of 0 means to write data starting at the beginning of the file.payload- The data to be written to the file.syncType- One of the values below.- UNSTABLE = 0 - Best effort, no promises.
- DATA_SYNC = 1 - Commit all data to stable storage, plus enough metadata for retrieval, before returning.
- FILE_SYNC = 2 - Commit all data and metadata to stable storage before returning.
credential- The credential used for RPC authentication.- Throws:
FileNotFoundException
-