org.jboss.soa.esb.listeners.old
Class DirectoryPoller.WorkingFile

java.lang.Object
  extended by java.io.File
      extended by org.jboss.soa.esb.listeners.old.DirectoryPoller.WorkingFile
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<java.io.File>
Enclosing class:
DirectoryPoller

public static class DirectoryPoller.WorkingFile
extends java.io.File

Working file.

Once the directory poller picks up on an input file, it immediately renames it to a working file in order to avoid a situation where the file gets processed again.

Since:
Version 4.0
Author:
tom.fennelly@jboss.com
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.io.File
pathSeparator, pathSeparatorChar, separator, separatorChar
 
Constructor Summary
DirectoryPoller.WorkingFile(java.io.File parentFile, java.lang.String filename)
           
DirectoryPoller.WorkingFile(java.lang.String filename)
           
 
Method Summary
 java.io.File getInputFile()
          Get the File instance representing the original input file.
 boolean isPostDelete()
           
 boolean renameToError()
           
 boolean renameToOutputFile()
           
 
Methods inherited from class java.io.File
canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getName, getParent, getParentFile, getPath, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setLastModified, setReadOnly, toString, toURI, toURL
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DirectoryPoller.WorkingFile

public DirectoryPoller.WorkingFile(java.lang.String filename)

DirectoryPoller.WorkingFile

public DirectoryPoller.WorkingFile(java.io.File parentFile,
                                   java.lang.String filename)
Method Detail

isPostDelete

public boolean isPostDelete()

renameToError

public boolean renameToError()

renameToOutputFile

public boolean renameToOutputFile()

getInputFile

public java.io.File getInputFile()
Get the File instance representing the original input file.

Returns:
Original input file.