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

java.lang.Object
  extended by org.apache.hadoop.hdfs.inotify.Event
      extended by org.apache.hadoop.hdfs.inotify.Event.CloseEvent
Enclosing class:
Event

public static class Event.CloseEvent
extends Event

Sent when a file is closed after append or create.


Nested Class Summary
 
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
 
Constructor Summary
Event.CloseEvent(String path, long fileSize, long timestamp)
           
 
Method Summary
 long getFileSize()
          The size of the closed file in bytes.
 String getPath()
           
 long getTimestamp()
          The time when this event occurred, in milliseconds since the epoch.
 
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
 

Constructor Detail

Event.CloseEvent

public Event.CloseEvent(String path,
                        long fileSize,
                        long timestamp)
Method Detail

getPath

public String getPath()

getFileSize

public long getFileSize()
The size of the closed file in bytes. May be -1 if the size is not available (e.g. in the case of a close generated by a concat operation).


getTimestamp

public long getTimestamp()
The time when this event occurred, in milliseconds since the epoch.



Copyright © 2014 Apache Software Foundation. All Rights Reserved.