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

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

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

Working file.

Once the remote directory poller picks up on an input file, it immediately tries to rename 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
 
Method Summary
 java.util.List<KeyValuePair> getFtpProps()
           
 java.io.File getInputFile()
          Get the File instance representing the original input file.
 boolean isPostDelete()
          is this working file to be deleted after successful processing ?
 boolean localDelete()
           
 boolean localRenameToError()
           
 boolean localRenameToInput()
           
 boolean localRenameToOutput()
           
 void remoteDelete(FtpClientUtil util)
           
 void remoteRenameToError(FtpClientUtil util)
           
 void remoteRenameToInput(FtpClientUtil util)
           
 void remoteRenameToOutput(FtpClientUtil util)
           
 void setFtpProps(java.util.List<KeyValuePair> props)
           
 
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
 

Method Detail

setFtpProps

public void setFtpProps(java.util.List<KeyValuePair> props)

getFtpProps

public java.util.List<KeyValuePair> getFtpProps()

getInputFile

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

Returns:
Original input file.

isPostDelete

public boolean isPostDelete()
is this working file to be deleted after successful processing ?

Returns:
boolean - true if this file can be deleted

localRenameToInput

public boolean localRenameToInput()

remoteRenameToInput

public void remoteRenameToInput(FtpClientUtil util)
                         throws java.lang.Exception
Throws:
java.lang.Exception

localRenameToError

public boolean localRenameToError()

remoteRenameToError

public void remoteRenameToError(FtpClientUtil util)
                         throws java.lang.Exception
Throws:
java.lang.Exception

localRenameToOutput

public boolean localRenameToOutput()

remoteRenameToOutput

public void remoteRenameToOutput(FtpClientUtil util)
                          throws java.lang.Exception
Throws:
java.lang.Exception

localDelete

public boolean localDelete()

remoteDelete

public void remoteDelete(FtpClientUtil util)
                  throws java.lang.Exception
Throws:
java.lang.Exception