Class NfsSetAttributes

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

public class NfsSetAttributes extends Object
Used to set file or directory attributes, as specified by RFC 1813 (https://tools.ietf.org/html/rfc1813).
  • Constructor Details

    • NfsSetAttributes

      public NfsSetAttributes()
      Default constructor
    • NfsSetAttributes

      public NfsSetAttributes(Long mode, Long uid, Long gid, NfsTime atime, NfsTime mtime)
      Convenient constructor for multiple changes.
    • NfsSetAttributes

      public NfsSetAttributes(Long mode, Long uid, Long gid, Long size, NfsTime atime, NfsTime mtime)
      Convenient constructor for multiple changes.
  • Method Details

    • setMode

      public void setMode(Long mode)
      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

      public void setUid(Long uid)
      Sets the requested owner user ID.
      Parameters:
      uid - the user ID of the owner of the file.
    • setGid

      public void setGid(Long gid)
      Sets the requested owner group ID.
      Parameters:
      gid - the group ID of the group of the file.
    • setSize

      public void setSize(Long size)
      Sets the requested file size in bytes.
      Parameters:
      size - the size of the file in bytes.
    • setAtime

      public void setAtime(NfsTime atime)
      Sets the requested last-access time.
      Parameters:
      atime - the time when the file data was last accessed.
    • setMtime

      public void setMtime(NfsTime mtime)
      Sets the requested last-modification time.
      Parameters:
      mtime - the time when the file data was last modified.
    • marshalling

      public void marshalling(Xdr xdr)
      Set Xdr fields for the rpc call.
    • toString

      public String toString()
      Overrides:
      toString in class Object