org.apache.hadoop.hdfs.inotify
Class Event.CloseEvent
java.lang.Object
org.apache.hadoop.hdfs.inotify.Event
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Event.CloseEvent
public Event.CloseEvent(String path,
long fileSize,
long timestamp)
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.