public class FlatFileEIProcessor extends GenericFlatFileProcessor
| Modifier and Type | Field and Description |
|---|---|
protected GenericFlatFileRecord |
record
Override the record as defined in the Generic class.
|
actfile, br, debug, fileName, FILENAME_NAR_ID, INPUT_BACKUP_DIR, inputStream, lineOfText, m_bCRLFTerminatorEnabled, m_bCRTerminatorEnabled, m_bLFTerminatorEnabled, numBytes, PROCESSED_FILE_PREFIX, PROCESSED_FILE_SUFFIX, rawHeader, recoveryFile, scratchFile, UNICODE_TRANSFORMATION_FORMATDEFAULT_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 |
|---|
FlatFileEIProcessor(EINode node,
java.io.File localdir,
java.lang.String suffix,
SMGLock lock)
Use this constructor when the accounting files
are pushed to a local directory by an outside source.
|
FlatFileEIProcessor(EINode node,
SynchronizedDirectory sd,
java.lang.String suffix,
SMGLock lock)
Use this constructor when using FTP to retrieve the accounting files
that need to be processed.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
getHeader(java.lang.String text)
Parses a line of text (the file header) for the field names.
|
protected void |
processTheRecord(java.lang.String rawRecord)
This call process the record.
|
protected void |
setRecordType(GenericFlatFileRecord ffRecord)
This sets up the record type which in turn controls how each of the flat file
records are processed.
|
initLineTerminators, processFiles, processFilesOrdered, processScratchFile, setRecordType, skipAhead, skipHeaderdeleteLocalFiles, getActFilter, getBulkData, getData, getInputBackupDir, getLength, isDataAvailable, isHealthy, isLessThan, moveCurrentFileToBackUp, readLength, run, setActFilter, setDubCheckObj, setDupCheckFlag, setSeqCheckFlag, setSeqCheckObj, shutdown, sortFiles, writeLength, writeLengthgetCurrArchFile, 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, validOIMinorTypeprotected GenericFlatFileRecord record
public FlatFileEIProcessor(EINode node, java.io.File localdir, java.lang.String suffix, SMGLock lock) throws NodeStartException
node - The EI node which is using this class.localdir - The local directory where the target files can be foundsuffix - 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)NodeStartException - Used to signal the EI Node that there was a problem getting things goingpublic FlatFileEIProcessor(EINode node, SynchronizedDirectory sd, java.lang.String suffix, SMGLock lock) throws NodeStartException
node - The EI node which is using this class.sd - The representation of the local directory where the target files can be foundsuffix - 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)NodeStartException - Used to signal the EI Node that there was a problem getting things goingprotected void processTheRecord(java.lang.String rawRecord)
GenericFlatFileProcessorprocessTheRecord in class GenericFlatFileProcessorprotected void setRecordType(GenericFlatFileRecord ffRecord)
protected void getHeader(java.lang.String text)
getHeader in class GenericFlatFileProcessor