org.apache.hadoop.hdfs.inotify
Class Event.MetadataUpdateEvent

java.lang.Object
  extended by org.apache.hadoop.hdfs.inotify.Event
      extended by 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.


Nested Class Summary
static class Event.MetadataUpdateEvent.Builder
           
static class Event.MetadataUpdateEvent.MetadataType
           
 
Nested classes/interfaces inherited from class org.apache.hadoop.hdfs.inotify.Event
Event.AppendEvent, Event.CloseEvent, Event.CreateEvent, Event.EventType, Event.MetadataUpdateEvent, Event.RenameEvent, Event.UnlinkEvent
 
Method Summary
 List<org.apache.hadoop.fs.permission.AclEntry> getAcls()
          The full set of ACLs currently associated with this file or directory.
 long getAtime()
           
 String getGroupName()
           
 Event.MetadataUpdateEvent.MetadataType getMetadataType()
           
 long getMtime()
           
 String getOwnerName()
           
 String getPath()
           
 org.apache.hadoop.fs.permission.FsPermission getPerms()
           
 int getReplication()
           
 List<org.apache.hadoop.fs.XAttr> getxAttrs()
           
 boolean isxAttrsRemoved()
          Whether the xAttrs returned by getxAttrs() were removed (as opposed to added).
 
Methods inherited from class org.apache.hadoop.hdfs.inotify.Event
getEventType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.