Class Nfs3WriteRequest

All Implemented Interfaces:
NfsRequest

public class Nfs3WriteRequest extends NfsWriteRequest
The request, as specified by RFC 1813 (https://tools.ietf.org/html/rfc1813).

Procedure WRITE writes data to a file.

  • 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