public class FileEITransport extends EITransport
| Modifier and Type | Field and Description |
|---|---|
protected java.io.FilenameFilter |
actFilter |
protected static java.lang.String |
BINARY_FTP_TRANSER |
protected static java.lang.String |
DEFAULT_DONE_PREFIX |
protected static java.lang.String |
DEFAULT_DONE_SUFFIX |
protected static int |
DEFAULT_POLLING_INTERVAL |
protected static java.lang.String |
DEFAULT_SUFFIX |
protected boolean |
deleteLocalFiles |
protected static java.lang.String |
DONE_MARKER_SUFFIX |
protected java.lang.String |
doneFilePrefix |
protected java.lang.String |
doneFileSuffix |
protected static java.lang.String |
ERROR_SUFFIX |
protected java.util.HashMap |
errorTracker |
protected FileHandlerIfc |
fileHandler |
protected boolean |
fileLevelTransaction |
protected java.lang.String |
filePatternMode |
protected FileEISequenceCheck |
fileSeqCheck |
protected boolean |
fsChecked |
protected FtpFileTracker |
ftpFileTracker |
protected FtpEIManager |
ftpManager |
protected SMGLock |
ioLock |
protected boolean |
isOrdered |
protected java.io.File |
localDir |
protected java.lang.String |
localFilePrefix |
protected java.lang.String |
localFileRegExp |
protected java.lang.String |
localFileSuffix |
protected LoggerIfc |
logger |
protected static int |
MAX_NUM_RETRIES |
protected static java.lang.String |
RECOVERY_FILE_SUFFIX |
java.io.File |
scratchDir |
protected SynchronizedDirectory |
sd_localDir |
protected boolean |
useFtp |
protected boolean |
useSynchronizedDirectory |
dataReceiver, fdChecked, filedataReceiver, fileduplicateCheck, fileToProcess, inputCount, lockFile, movedFile, node, pollingInterval, processing, processingData, running| Constructor and Description |
|---|
FileEITransport(DCNode node,
FileHandlerIfc handler,
SMGLock lock,
boolean ordered,
boolean fdChecked,
FileEIDuplicateCheck fileduplicateCheck,
boolean fsChecked,
FileEISequenceCheck fileSeqCheck) |
FileEITransport(DCNode node,
FileHandlerIfc handler,
SMGLock lock,
boolean fdChecked,
FileEIDuplicateCheck fileduplicateCheck,
boolean fsChecked,
FileEISequenceCheck fileSeqCheck) |
FileEITransport(DCNode node,
FileHandlerIfc handler,
SMGLock lock,
boolean ordered,
FtpFileTracker tracker,
boolean fdChecked,
FileEIDuplicateCheck fileduplicateCheck,
boolean fsChecked,
FileEISequenceCheck fileSeqCheck) |
| Modifier and Type | Method and Description |
|---|---|
DCFieldContainer[] |
getBulkData()
This method is used by the DataReceiver to fetch a set of
DCFieldContainer objects.
|
DCFieldContainer |
getData()
This method is used by the DataReceiver to fetch a single
|
protected java.util.Vector |
getFiles() |
java.io.File |
getLocalDir() |
protected void |
initConfig() |
boolean |
isDataAvailable()
This method is used by the DataReceiver to ask this provider if
data is available.
|
boolean |
isHealthy()
This method is used to check the transport's state of health.
|
boolean |
isLessThan(java.lang.String value1,
java.lang.String value2) |
protected void |
processError(java.io.File file) |
protected void |
processFiles(java.util.Vector filesToProcess) |
protected void |
processFilesOrdered(java.io.File currentFile) |
boolean |
recoveryFileExists(java.io.File file) |
void |
run()
This method is used to control processing for fetching data from
the EI's source.
|
void |
shutdown()
This method is used to provide a means of shutting down the transport
in an orderly fashion.
|
java.lang.String[] |
sortFiles(java.lang.String[] filesToProcess) |
getDataReceiver, getDubCheckObj, getDupCheckFlag, getFileBulkData, getFileData, getFileDataReceiver, getMovedFileStatus, getNode, getPollingInterval, handleRejectOfFile, incrementIn, incrementIn, isEndOfFile, isFileDataAvailable, isProcessing, isProcessingData, isStartOfFile, openInputFile, rejectFile, setCountsSuspect, setDataReceiver, setFileDataReceiver, setFileToProcess, setMovedFileStatus, setNode, setPollingInterval, setProcessingprotected LoggerIfc logger
protected FileHandlerIfc fileHandler
protected FileEISequenceCheck fileSeqCheck
protected static final java.lang.String BINARY_FTP_TRANSER
protected static final java.lang.String DONE_MARKER_SUFFIX
protected static final int DEFAULT_POLLING_INTERVAL
protected static final java.lang.String DEFAULT_SUFFIX
protected static final java.lang.String DEFAULT_DONE_PREFIX
protected static final java.lang.String DEFAULT_DONE_SUFFIX
protected static final int MAX_NUM_RETRIES
protected static final java.lang.String ERROR_SUFFIX
protected boolean deleteLocalFiles
protected java.lang.String localFilePrefix
protected java.lang.String localFileSuffix
protected java.lang.String localFileRegExp
protected java.lang.String filePatternMode
protected java.lang.String doneFilePrefix
protected java.lang.String doneFileSuffix
protected boolean useFtp
protected boolean useSynchronizedDirectory
protected static final java.lang.String RECOVERY_FILE_SUFFIX
protected boolean fileLevelTransaction
protected SynchronizedDirectory sd_localDir
protected java.io.File localDir
protected java.io.FilenameFilter actFilter
protected FtpEIManager ftpManager
protected java.util.HashMap errorTracker
protected FtpFileTracker ftpFileTracker
public java.io.File scratchDir
protected SMGLock ioLock
protected boolean isOrdered
protected boolean fsChecked
public FileEITransport(DCNode node, FileHandlerIfc handler, SMGLock lock, boolean fdChecked, FileEIDuplicateCheck fileduplicateCheck, boolean fsChecked, FileEISequenceCheck fileSeqCheck) throws NodeStartException
NodeStartExceptionpublic FileEITransport(DCNode node, FileHandlerIfc handler, SMGLock lock, boolean ordered, boolean fdChecked, FileEIDuplicateCheck fileduplicateCheck, boolean fsChecked, FileEISequenceCheck fileSeqCheck) throws NodeStartException
NodeStartExceptionpublic FileEITransport(DCNode node, FileHandlerIfc handler, SMGLock lock, boolean ordered, FtpFileTracker tracker, boolean fdChecked, FileEIDuplicateCheck fileduplicateCheck, boolean fsChecked, FileEISequenceCheck fileSeqCheck) throws NodeStartException
NodeStartExceptionprotected void initConfig()
throws NodeStartException
NodeStartExceptionpublic void shutdown()
EITransportshutdown in interface DCTransportshutdown in class EITransportpublic DCFieldContainer getData()
EITransportgetData in interface DataProviderIfcgetData in class EITransportpublic DCFieldContainer[] getBulkData()
EITransportgetBulkData in interface DataProviderIfcgetBulkData in class EITransportpublic boolean isDataAvailable()
EITransportisDataAvailable in interface DataProviderIfcisDataAvailable in class EITransporttrue, if data is availablepublic void run()
EITransportrun in interface java.lang.Runnablerun in class EITransportprotected java.util.Vector getFiles()
protected void processFiles(java.util.Vector filesToProcess)
protected void processFilesOrdered(java.io.File currentFile)
protected void processError(java.io.File file)
public boolean isHealthy()
EITransportisHealthy in interface DCTransportisHealthy in class EITransportpublic java.io.File getLocalDir()
public java.lang.String[] sortFiles(java.lang.String[] filesToProcess)
public boolean isLessThan(java.lang.String value1,
java.lang.String value2)
public boolean recoveryFileExists(java.io.File file)