Class NfsCreateMode

java.lang.Object
com.emc.ecs.nfsclient.nfs.NfsCreateMode

public class NfsCreateMode extends Object
Mode for creating new regular files, as specified by RFC 1813 (https://tools.ietf.org/html/rfc1813).
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final NfsCreateMode
    The server is to follow exclusive creation semantics, using the verifier to ensure exclusive creation of the target.
    static final NfsCreateMode
    The server should check for the presence of a duplicate file before performing the create and should fail the request with NFS3ERR_EXIST if a duplicate file exists.
    static final NfsCreateMode
    The file should be created without checking for the existence of a duplicate file in the same directory.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromValue(int value)
    Convenience function to get the instance from the int create mode value.
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • UNCHECKED

      public static final NfsCreateMode UNCHECKED
      The file should be created without checking for the existence of a duplicate file in the same directory.
    • GUARDED

      public static final NfsCreateMode GUARDED
      The server should check for the presence of a duplicate file before performing the create and should fail the request with NFS3ERR_EXIST if a duplicate file exists. If the file does not exist, the request is performed as described for UNCHECKED.
    • EXCLUSIVE

      public static final NfsCreateMode EXCLUSIVE
      The server is to follow exclusive creation semantics, using the verifier to ensure exclusive creation of the target.
  • Method Details

    • fromValue

      public static NfsCreateMode fromValue(int value)
      Convenience function to get the instance from the int create mode value.
      Parameters:
      value - The int create mode value.
      Returns:
      The instance.
    • toString

      public String toString()
      Overrides:
      toString in class Object