org.apache.hadoop.hdfs.inotify
Class Event

java.lang.Object
  extended by org.apache.hadoop.hdfs.inotify.Event
Direct Known Subclasses:
Event.AppendEvent, Event.CloseEvent, Event.CreateEvent, Event.MetadataUpdateEvent, Event.RenameEvent, Event.UnlinkEvent

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract class Event
extends Object

Events sent by the inotify system. Note that no events are necessarily sent when a file is opened for read (although a MetadataUpdateEvent will be sent if the atime is updated).


Nested Class Summary
static class Event.AppendEvent
          Sent when an existing file is opened for append.
static class Event.CloseEvent
          Sent when a file is closed after append or create.
static class Event.CreateEvent
          Sent when a new file is created (including overwrite).
static class Event.EventType
           
static class Event.MetadataUpdateEvent
          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.
static class Event.RenameEvent
          Sent when a file, directory, or symlink is renamed.
static class Event.UnlinkEvent
          Sent when a file, directory, or symlink is deleted.
 
Constructor Summary
Event(Event.EventType eventType)
           
 
Method Summary
 Event.EventType getEventType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Event

public Event(Event.EventType eventType)
Method Detail

getEventType

public Event.EventType getEventType()


Copyright © 2014 Apache Software Foundation. All Rights Reserved.