Package com.nt.udc.ndk.node
Class DeclNPLFieldProcessor
java.lang.Object
com.nt.udc.ndk.node.DCFieldProcessor
com.nt.udc.ndk.node.DeclNPLFieldProcessor
- All Implemented Interfaces:
DataProviderIfc,DataReceiverIfc,FileDataProviderIfc,FileDataReceiverIfc,Runnable
- Direct Known Subclasses:
AggregatorFieldProcessor,DiscProcFieldProcessor,DupRemoverFieldProcessor,SeqProcFieldProcessor
This field processor is intended for those nodes that can not
use procedural NPL, but still required the declarative
configuration elements of NPL. A derived field processor will
have access to those configuration elements through the
"getNPLConfig()" method. Please refer to the Java documentation for
the class "NPLDeclarations" for more information on how to obtain
the desired configuration element from the NPL file.
-
Constructor Summary
ConstructorsConstructorDescriptionDeclNPLFieldProcessor(LoggerIfc inLogger, String fileName) Calls parent'sconstructor. -
Method Summary
Modifier and TypeMethodDescriptionabstract voidAllows a DataProvider to indicate that some data is available for processingAllows a DataReceiver to obtain the available data in a known format.getData()Allows a DataReceiver to obtain the available data in a known format.protected LoggerIfcReturns the LoggerIfc object used by this class to record log messagesprotected ConfigIfcReturns the a ConfigIfc that represents the NPL configuration.protected NPLProgramIfcReturns the NPLProgramIfc object used by this field processorvoidTo handle the remaining input files when there is reject of a filebooleanAllows a DataReceiver to determine whether some data is available for processingabstract voidprocessData(DCFieldContainer inputData) Manipulates the data provided by its DataProviderabstract voidprocessData(DCFieldContainer[] inputData) Manipulates the set of data provided by its DataProviderabstract voidrun()voidsetNPLFileName(String fileName) abstract voidshutdown()Performs all steps necessary to gracefully stop this FieldProcessor.Methods inherited from class com.nt.udc.ndk.node.DCFieldProcessor
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, validOIMinorType
-
Constructor Details
-
DeclNPLFieldProcessor
Calls parent'sconstructor.- Parameters:
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 errors- Throws:
NodeProcessingException
-
-
Method Details
-
getNPLProgram
Returns the NPLProgramIfc object used by this field processor- Returns:
- The NPLProgramIfc object used by this field processor
-
getNPLFileName
-
setNPLFileName
- Throws:
NodeProcessingException
-
getLogger
Returns the LoggerIfc object used by this class to record log messages- Returns:
- The LoggerIfc object used by this field processor
-
run
public abstract void run()- Specified by:
runin interfaceRunnable- Specified by:
runin classDCFieldProcessor
-
shutdown
public abstract void shutdown()Performs all steps necessary to gracefully stop this FieldProcessor.- Specified by:
shutdownin classDCFieldProcessor
-
isDataAvailable
public boolean isDataAvailable()Description copied from interface:DataProviderIfcAllows a DataReceiver to determine whether some data is available for processing- Specified by:
isDataAvailablein interfaceDataProviderIfc- Specified by:
isDataAvailablein classDCFieldProcessor- Returns:
true, if data is available
-
getData
Description copied from interface:DataProviderIfcAllows a DataReceiver to obtain the available data in a known format.- Specified by:
getDatain interfaceDataProviderIfc- Specified by:
getDatain classDCFieldProcessor- Returns:
- DCFieldContainer object containing the data that is available for processing
-
getBulkData
Description copied from interface:DataProviderIfcAllows a DataReceiver to obtain the available data in a known format.- Returns:
- DCFieldContainer object array, containing the data that is for processing
-
dataIsAvailable
public abstract void dataIsAvailable()Description copied from interface:DataReceiverIfcAllows a DataProvider to indicate that some data is available for processing- Specified by:
dataIsAvailablein interfaceDataReceiverIfc- Specified by:
dataIsAvailablein classDCFieldProcessor
-
processData
Description copied from interface:DataReceiverIfcManipulates the data provided by its DataProvider- Specified by:
processDatain interfaceDataReceiverIfc- Specified by:
processDatain classDCFieldProcessor- Throws:
NodeProcessingException
-
processData
Description copied from interface:DataReceiverIfcManipulates the set of data provided by its DataProvider- Throws:
NodeProcessingException
-
getNPLConfig
Returns the a ConfigIfc that represents the NPL configuration.- Returns:
- ConfigIfc, containing the NPL configuration
-
handleRejectOfFile
public void handleRejectOfFile()Description copied from interface:FileDataProviderIfcTo handle the remaining input files when there is reject of a file- Specified by:
handleRejectOfFilein interfaceFileDataProviderIfc- Overrides:
handleRejectOfFilein classDCFieldProcessor
-