public class NAREIFileProcessor extends FileEITransport
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
FILENAME_NAR_ID |
DEFAULT_POLLING_INTERVAL, DELETE_LOCAL_FILES, deleteLocalFiles, fileLevelTransaction, fileSeqCheck, fsChecked, INPUT_BACKUP_DIR, ioLock, isOrdered, itsFileSuffix, localDir, logger, mtChecked, MULTI_THREADED, ORDER_REQUIRED, POLLING_INTERVAL, scratchDir, useSynchronizedDirectory
dataReceiver, fdChecked, filedataReceiver, fileduplicateCheck, fileToProcess, inputCount, lockFile, movedFile, node, pollingInterval, processing, processingData, running
Constructor and Description |
---|
NAREIFileProcessor(EINode node,
java.io.File localdir,
java.lang.String suffix,
SMGLock lock)
Constructor used when the files are pushed to
a local directory by an outside source.
|
NAREIFileProcessor(EINode node,
SynchronizedDirectory sd,
java.lang.String suffix,
SMGLock lock)
Constructor used when using FTP to retrieve the files
that need to be processed.
|
Modifier and Type | Method and Description |
---|---|
protected void |
processFiles(java.util.Vector filesToProcess)
Here's where we actually parse the files and extract the data of interest.
|
protected void |
processFilesOrdered(java.io.File currFile) |
deleteLocalFiles, getActFilter, getBulkData, getData, getInputBackupDir, getLength, isDataAvailable, isHealthy, isLessThan, moveCurrentFileToBackUp, readLength, run, setActFilter, setDubCheckObj, setDupCheckFlag, setSeqCheckFlag, setSeqCheckObj, shutdown, sortFiles, writeLength, writeLength
getCurrArchFile, getData, getDataReceiver, getDubCheckObj, getDupCheckFlag, getFileBulkData, getFileData, getFileDataReceiver, getFileList, getMovedFileStatus, getNode, getPollingInterval, getProcessedArchFile, handleRejectOfFile, incrementIn, incrementIn, isEndOfFile, isFileDataAvailable, isProcessing, isProcessingData, isStartOfFile, openInputFile, rejectFile, removeProcessedFile, setCountsSuspect, setDataReceiver, setFileDataReceiver, setFileToProcess, setMovedFileStatus, setNode, setPollingInterval, setProcessedArchFile, setProcessing, signalBatchCompletion, validOIMinorType
protected static final java.lang.String FILENAME_NAR_ID
public NAREIFileProcessor(EINode node, java.io.File localdir, java.lang.String suffix, SMGLock lock) throws NodeStartException
node
- The EI node which is using this object.localdir
- The local directory where the input files can be found.suffix
- The file suffix used to identify the files that need
to be processed (can be null if you want to process
all files in the directory).lock
- Used to properly shutdown the EI and all its threads.NodeStartException
- Used to signal the EI Node that there was
a problem getting things going.public NAREIFileProcessor(EINode node, SynchronizedDirectory sd, java.lang.String suffix, SMGLock lock) throws NodeStartException
node
- The EI node which is using this object.sd
- The representation of the local directory where
the target files can be found.suffix
- The file suffix used to identify the files that need
to be processed (can be null if you want to process
all files in the directory).lock
- Used to properly shutdown the EI and all its threads.NodeStartException
- Used to signal the EI Node that there was
a problem getting things going.protected void processFiles(java.util.Vector filesToProcess)
processFiles
in class FileEITransport
filesToProcess
- List of filenames that need to be processedprotected void processFilesOrdered(java.io.File currFile)