Spring for Apache Hadoop

org.springframework.data.hadoop.store.event
Class FileWrittenEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.springframework.context.ApplicationEvent
          extended by org.springframework.data.hadoop.store.event.AbstractStoreEvent
              extended by 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

Field Summary
 
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
 

Constructor Detail

FileWrittenEvent

public FileWrittenEvent(java.lang.Object source,
                        org.apache.hadoop.fs.Path path)
Instantiates a new file written event.

Parameters:
source - the source
path - the path
Method Detail

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

Spring for Apache Hadoop