Class NfsCommitResponse

Direct Known Subclasses:
Nfs3CommitResponse

public class NfsCommitResponse extends NfsResponseBase
The response, 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.

  • Constructor Details

    • NfsCommitResponse

      public NfsCommitResponse(int nfsVersion)
      Creates the response, 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:
      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

      public void unmarshalling(Xdr xdr) throws RpcException
      Load this structure from the response data, as specified by RFC 1831 (https://tools.ietf.org/html/rfc1831).
      Overrides:
      unmarshalling in class NfsResponseBase
      Parameters:
      xdr - The xdr response data.
      Throws:
      RpcException
    • getVerf

      public long getVerf()
      Returns a cookie that the client can use to determine whether the server has rebooted between a call to WRITE and a subsequent call to COMMIT. This cookie must be consistent during a single boot session and must be unique between instances of the NFS version 3 protocol server where uncommitted data may be lost.
    • getFileWccData

      public NfsWccData getFileWccData()
      Returns weak cache consistency data for the file.