Class NfsSetAttributes
java.lang.Object
com.emc.ecs.nfsclient.nfs.NfsSetAttributes
Used to set file or directory attributes, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorConvenient constructor for multiple changes.Convenient constructor for multiple changes. -
Method Summary
Modifier and TypeMethodDescriptionvoidmarshalling(Xdr xdr) Set Xdr fields for the rpc call.voidSets the requested last-access time.voidSets the requested owner group ID.voidSets the protection mode bits to include in the request.voidSets the requested last-modification time.voidSets the requested file size in bytes.voidSets the requested owner user ID.toString()
-
Constructor Details
-
NfsSetAttributes
public NfsSetAttributes()Default constructor -
NfsSetAttributes
-
NfsSetAttributes
-
-
Method Details
-
setMode
Sets the protection mode bits to include in the request.- Parameters:
mode- The protection mode bits, defined as follows:- 0x00800 - Set user ID on execution.
- 0x00400 - Set group ID on execution.
- 0x00200 - Save swapped text (not defined in POSIX).
- 0x00100 - Read permission for owner.
- 0x00080 - Write permission for owner.
- 0x00040 - Execute permission for owner on a file. Or lookup (search) permission for owner in directory.
- 0x00020 - Read permission for group.
- 0x00010 - Write permission for group.
- 0x00008 - Execute permission for group on a file. Or lookup (search) permission for group in directory.
- 0x00004 - Read permission for others.
- 0x00002 - Write permission for others.
- 0x00001 - Execute permission for others on a file. Or lookup (search) permission for others in directory.
-
setUid
Sets the requested owner user ID.- Parameters:
uid- the user ID of the owner of the file.
-
setGid
Sets the requested owner group ID.- Parameters:
gid- the group ID of the group of the file.
-
setSize
Sets the requested file size in bytes.- Parameters:
size- the size of the file in bytes.
-
setAtime
Sets the requested last-access time.- Parameters:
atime- the time when the file data was last accessed.
-
setMtime
Sets the requested last-modification time.- Parameters:
mtime- the time when the file data was last modified.
-
marshalling
Set Xdr fields for the rpc call. -
toString
-