Package org.apache.hadoop.hdfs.inotify
Class Event.MetadataUpdateEvent
java.lang.Object
org.apache.hadoop.hdfs.inotify.Event
org.apache.hadoop.hdfs.inotify.Event.MetadataUpdateEvent
- Enclosing class:
- 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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classorg.apache.hadoop.hdfs.inotify.Event.MetadataUpdateEvent.Builderstatic enumNested classes/interfaces inherited from class org.apache.hadoop.hdfs.inotify.Event
Event.AppendEvent, Event.CloseEvent, Event.CreateEvent, Event.EventType, Event.MetadataUpdateEvent, Event.RenameEvent, Event.TruncateEvent, Event.UnlinkEvent -
Method Summary
Modifier and TypeMethodDescriptiongetAcls()The full set of ACLs currently associated with this file or directory.longgetAtime()longgetMtime()getPath()getPerms()intList<org.apache.hadoop.fs.XAttr>booleanWhether the xAttrs returned by getxAttrs() were removed (as opposed to added).toString()Methods inherited from class org.apache.hadoop.hdfs.inotify.Event
getEventType
-
Method Details
-
getPath
-
getMetadataType
-
getMtime
public long getMtime() -
getAtime
public long getAtime() -
getReplication
public int getReplication() -
getOwnerName
-
getGroupName
-
getPerms
-
getAcls
The full set of ACLs currently associated with this file or directory. May be null if all ACLs were removed. -
getxAttrs
-
isxAttrsRemoved
public boolean isxAttrsRemoved()Whether the xAttrs returned by getxAttrs() were removed (as opposed to added). -
toString
-