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, ioLock, isOrdered, itsFileSuffix, localDir, logger, mtChecked, MULTI_THREADED, ORDER_REQUIRED, POLLING_INTERVAL, scratchDir, useSynchronizedDirectorydataReceiver, 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, getLength, isDataAvailable, isHealthy, isLessThan, readLength, run, setActFilter, setDubCheckObj, setDupCheckFlag, setSeqCheckFlag, setSeqCheckObj, shutdown, sortFiles, writeLength, writeLengthgetDataReceiver, 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 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 FileEITransportfilesToProcess - List of filenames that need to be processedprotected void processFilesOrdered(java.io.File currFile)