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
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 org.apache.hadoop.fs.permission.FsPermission getPerms()
getAcls
public List<org.apache.hadoop.fs.permission.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).
Copyright © 2014 Apache Software Foundation. All Rights Reserved.