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, getDataProvider, getDataReceiver, getDiscardedCounter, getFileBulkData, getFileData, getFileDataProvider, getFileDataReceiver, getOutputType, getPollForData, isEndOfFile, isFileDataAvailable, isStartOfFile, openInputFile, processEndOfFileData, processFileData, processFileData, processRejectFile, processStartOfFileData, rejectFile, setBulkProcessing, setDataProvider, setDataReceiver, setDiscardedCounter, setFileDataProvider, setFileDataReceiver, setMultiThreadConfig, setOutputType, setPollForData, setTransactionID
public 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
errorsNodeProcessingException
protected NPLProgramIfc getNPLProgram()
public java.lang.String getNPLFileName()
public void setNPLFileName(java.lang.String fileName) throws NodeProcessingException
NodeProcessingException
protected LoggerIfc getLogger()
public abstract void run()
run
in interface java.lang.Runnable
run
in class DCFieldProcessor
public abstract void shutdown()
shutdown
in class DCFieldProcessor
public boolean isDataAvailable()
DataProviderIfc
isDataAvailable
in interface DataProviderIfc
isDataAvailable
in class DCFieldProcessor
true
, if data is availablepublic DCFieldContainer getData()
DataProviderIfc
getData
in interface DataProviderIfc
getData
in class DCFieldProcessor
public DCFieldContainer[] getBulkData()
DataProviderIfc
public abstract void dataIsAvailable()
DataReceiverIfc
dataIsAvailable
in interface DataReceiverIfc
dataIsAvailable
in class DCFieldProcessor
public abstract void processData(DCFieldContainer inputData) throws NodeProcessingException
DataReceiverIfc
processData
in interface DataReceiverIfc
processData
in class DCFieldProcessor
NodeProcessingException
public abstract void processData(DCFieldContainer[] inputData) throws NodeProcessingException
DataReceiverIfc
NodeProcessingException
protected ConfigIfc getNPLConfig()
public void handleRejectOfFile()
FileDataProviderIfc
handleRejectOfFile
in interface FileDataProviderIfc
handleRejectOfFile
in class DCFieldProcessor