public abstract class DeclNPLFieldProcessor extends DCFieldProcessor
| Constructor and Description |
|---|
DeclNPLFieldProcessor(LoggerIfc inLogger,
java.lang.String fileName)
Calls parent's
constructor. |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
dataIsAvailable()
Allows a DataProvider to indicate that some data is
available for processing
|
DCFieldContainer[] |
getBulkData()
Allows a DataReceiver to obtain the available data in a
known format.
|
DCFieldContainer |
getData()
Allows a DataReceiver to obtain the available data in a
known format.
|
protected LoggerIfc |
getLogger()
Returns the LoggerIfc object used by this class to record log messages
|
protected ConfigIfc |
getNPLConfig()
Returns the a ConfigIfc that represents the NPL configuration.
|
java.lang.String |
getNPLFileName() |
protected NPLProgramIfc |
getNPLProgram()
Returns the NPLProgramIfc object used by this field processor
|
void |
handleRejectOfFile()
To handle the remaining input files when there is reject of a file
|
boolean |
isDataAvailable()
Allows a DataReceiver to determine whether some data is
available for processing
|
abstract void |
processData(DCFieldContainer inputData)
Manipulates the data provided by its DataProvider
|
abstract void |
processData(DCFieldContainer[] inputData)
Manipulates the set of data provided by its DataProvider
|
abstract void |
run() |
void |
setNPLFileName(java.lang.String fileName) |
abstract void |
shutdown()
Performs all steps necessary to gracefully stop this FieldProcessor.
|
fileDataIsAvailable, getCurrArchFile, getData, getDataProvider, getDataReceiver, getDiscardedCounter, getFileBulkData, getFileData, getFileDataProvider, getFileDataReceiver, getOutputType, getPollForData, getProcessedArchFile, isEndOfFile, isFileDataAvailable, isStartOfFile, openInputFile, processEndOfFileData, processFileData, processFileData, processRejectFile, processStartOfFileData, rejectFile, removeProcessedFile, setbulkIOConfig, setBulkProcessing, setDataProvider, setDataReceiver, setDiscardedCounter, setFileDataProvider, setFileDataReceiver, setMultiThreadConfig, setOutputType, setPollForData, setProcessedArchFile, setTransactionID, signalBatchCompletion, validOIMinorTypepublic DeclNPLFieldProcessor(LoggerIfc inLogger, java.lang.String fileName) throws NodeProcessingException
constructor.inLogger - Object that will be used for logging
messages from this DeclNPLFieldProcessor.fileName - Either the name of the NPL text file
or the precompiled NPLProgram class file to
us
errorsNodeProcessingExceptionprotected NPLProgramIfc getNPLProgram()
public java.lang.String getNPLFileName()
public void setNPLFileName(java.lang.String fileName)
throws NodeProcessingException
NodeProcessingExceptionprotected LoggerIfc getLogger()
public abstract void run()
run in interface java.lang.Runnablerun in class DCFieldProcessorpublic abstract void shutdown()
shutdown in class DCFieldProcessorpublic boolean isDataAvailable()
DataProviderIfcisDataAvailable in interface DataProviderIfcisDataAvailable in class DCFieldProcessortrue, if data is availablepublic DCFieldContainer getData()
DataProviderIfcgetData in interface DataProviderIfcgetData in class DCFieldProcessorpublic DCFieldContainer[] getBulkData()
DataProviderIfcpublic abstract void dataIsAvailable()
DataReceiverIfcdataIsAvailable in interface DataReceiverIfcdataIsAvailable in class DCFieldProcessorpublic abstract void processData(DCFieldContainer inputData) throws NodeProcessingException
DataReceiverIfcprocessData in interface DataReceiverIfcprocessData in class DCFieldProcessorNodeProcessingExceptionpublic abstract void processData(DCFieldContainer[] inputData) throws NodeProcessingException
DataReceiverIfcNodeProcessingExceptionprotected ConfigIfc getNPLConfig()
public void handleRejectOfFile()
FileDataProviderIfchandleRejectOfFile in interface FileDataProviderIfchandleRejectOfFile in class DCFieldProcessor