Class NfsCreateMode
java.lang.Object
com.emc.ecs.nfsclient.nfs.NfsCreateMode
Mode for creating new regular files, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NfsCreateModeThe server is to follow exclusive creation semantics, using the verifier to ensure exclusive creation of the target.static final NfsCreateModeThe server should check for the presence of a duplicate file before performing the create and should fail the request withNFS3ERR_EXISTif a duplicate file exists.static final NfsCreateModeThe file should be created without checking for the existence of a duplicate file in the same directory. -
Method Summary
Modifier and TypeMethodDescriptionstatic NfsCreateModefromValue(int value) Convenience function to get the instance from the int create mode value.toString()
-
Field Details
-
UNCHECKED
The file should be created without checking for the existence of a duplicate file in the same directory. -
GUARDED
The server should check for the presence of a duplicate file before performing the create and should fail the request withNFS3ERR_EXISTif a duplicate file exists. If the file does not exist, the request is performed as described forUNCHECKED. -
EXCLUSIVE
The server is to follow exclusive creation semantics, using the verifier to ensure exclusive creation of the target.
-
-
Method Details
-
fromValue
Convenience function to get the instance from the int create mode value.- Parameters:
value- The int create mode value.- Returns:
- The instance.
-
toString
-