org.springframework.data.hadoop.store.event
Class FileWrittenEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.data.hadoop.store.event.AbstractStoreEvent
org.springframework.data.hadoop.store.event.FileWrittenEvent
- All Implemented Interfaces:
- java.io.Serializable
public class FileWrittenEvent
- extends AbstractStoreEvent
Generic event representing that Path
has been written.
- Author:
- Janne Valkealahti
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
FileWrittenEvent(java.lang.Object source,
org.apache.hadoop.fs.Path path)
Instantiates a new file written event. |
Method Summary |
org.apache.hadoop.fs.Path |
getPath()
Gets the path. |
java.lang.String |
toString()
|
Methods inherited from class org.springframework.context.ApplicationEvent |
getTimestamp |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FileWrittenEvent
public FileWrittenEvent(java.lang.Object source,
org.apache.hadoop.fs.Path path)
- Instantiates a new file written event.
- Parameters:
source
- the sourcepath
- the path
getPath
public org.apache.hadoop.fs.Path getPath()
- Gets the path.
- Returns:
- the path
toString
public java.lang.String toString()
- Overrides:
toString
in class java.util.EventObject