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 void
Allows 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 LoggerIfc
Returns the LoggerIfc object used by this class to record log messagesprotected ConfigIfc
Returns the a ConfigIfc that represents the NPL configuration.protected NPLProgramIfc
Returns the NPLProgramIfc object used by this field processorvoid
To handle the remaining input files when there is reject of a fileboolean
Allows a DataReceiver to determine whether some data is available for processingabstract void
processData
(DCFieldContainer inputData) Manipulates the data provided by its DataProviderabstract void
processData
(DCFieldContainer[] inputData) Manipulates the set of data provided by its DataProviderabstract void
run()
void
setNPLFileName
(String fileName) abstract void
shutdown()
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:
run
in interfaceRunnable
- Specified by:
run
in classDCFieldProcessor
-
shutdown
public abstract void shutdown()Performs all steps necessary to gracefully stop this FieldProcessor.- Specified by:
shutdown
in classDCFieldProcessor
-
isDataAvailable
public boolean isDataAvailable()Description copied from interface:DataProviderIfc
Allows a DataReceiver to determine whether some data is available for processing- Specified by:
isDataAvailable
in interfaceDataProviderIfc
- Specified by:
isDataAvailable
in classDCFieldProcessor
- Returns:
true
, if data is available
-
getData
Description copied from interface:DataProviderIfc
Allows a DataReceiver to obtain the available data in a known format.- Specified by:
getData
in interfaceDataProviderIfc
- Specified by:
getData
in classDCFieldProcessor
- Returns:
- DCFieldContainer object containing the data that is available for processing
-
getBulkData
Description copied from interface:DataProviderIfc
Allows 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:DataReceiverIfc
Allows a DataProvider to indicate that some data is available for processing- Specified by:
dataIsAvailable
in interfaceDataReceiverIfc
- Specified by:
dataIsAvailable
in classDCFieldProcessor
-
processData
Description copied from interface:DataReceiverIfc
Manipulates the data provided by its DataProvider- Specified by:
processData
in interfaceDataReceiverIfc
- Specified by:
processData
in classDCFieldProcessor
- Throws:
NodeProcessingException
-
processData
Description copied from interface:DataReceiverIfc
Manipulates 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:FileDataProviderIfc
To handle the remaining input files when there is reject of a file- Specified by:
handleRejectOfFile
in interfaceFileDataProviderIfc
- Overrides:
handleRejectOfFile
in classDCFieldProcessor
-