Class Event.MetadataUpdateEvent

java.lang.Object
org.apache.hadoop.hdfs.inotify.Event
org.apache.hadoop.hdfs.inotify.Event.MetadataUpdateEvent
Enclosing class:
Event

@Public public static class Event.MetadataUpdateEvent extends Event
Sent when there is an update to directory or file (none of the metadata tracked here applies to symlinks) that is not associated with another inotify event. The tracked metadata includes atime/mtime, replication, owner/group, permissions, ACLs, and XAttributes. Fields not relevant to the metadataType of the MetadataUpdateEvent will be null or will have their default values.
  • Method Details

    • getPath

      public String getPath()
    • getMetadataType

      public Event.MetadataUpdateEvent.MetadataType getMetadataType()
    • getMtime

      public long getMtime()
    • getAtime

      public long getAtime()
    • getReplication

      public int getReplication()
    • getOwnerName

      public String getOwnerName()
    • getGroupName

      public String getGroupName()
    • getPerms

      public FsPermission getPerms()
    • getAcls

      public List<AclEntry> getAcls()
      The full set of ACLs currently associated with this file or directory. May be null if all ACLs were removed.
    • getxAttrs

      public List<org.apache.hadoop.fs.XAttr> getxAttrs()
    • isxAttrsRemoved

      public boolean isxAttrsRemoved()
      Whether the xAttrs returned by getxAttrs() were removed (as opposed to added).
    • toString

      @Unstable public String toString()
      Overrides:
      toString in class Object