Package com.nt.udc.aggregator
Class AggregatorFieldProcessor
java.lang.Object
com.nt.udc.ndk.node.DCFieldProcessor
com.nt.udc.ndk.node.DeclNPLFieldProcessor
com.nt.udc.aggregator.AggregatorFieldProcessor
- All Implemented Interfaces:
DataProviderIfc,DataReceiverIfc,FileDataProviderIfc,FileDataReceiverIfc,Runnable
- Direct Known Subclasses:
NARSelectorFieldProcessor
This is the field processor for the aggregator, which
contains pretty much all of the specific aggregation features.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AggrConfigstatic floatprotected AggrCalcFieldsstatic intprotected FlushConditionsprotected TableFlushprotected GPRSAggregatorModuleprotected int[]protected int[]protected booleanprotected AggrKeyFactorystatic intprotected AggregatorNodeprotected static intprotected Stringstatic floatprotected booleanprotected longprotected AggrShifterprotected intprotected booleanprotected DCStreamHandlerprotected AggrTableprotected TimeGrouperprotected TimerFlushprotected Fileprotected AggrUtilityFieldsprotected VOIPAggregatorModule -
Constructor Summary
ConstructorsConstructorDescriptionAggregatorFieldProcessor(String fileName, AggregatorNode node, long processingInterval, File traceFile) Creates an aggregator field processor -
Method Summary
Modifier and TypeMethodDescriptionprotected NARcreateNewRecord(NAR incoming) voidAllows a DataProvider to indicate that some data is available for processingprotected voidprotected voidinit()booleanstatic voidvoidprocessData(DCFieldContainer incomingDCFC) Manipulates the data provided by its DataProvidervoidprocessData(DCFieldContainer[] incomingDCFCs) Manipulates the set of data provided by its DataProvidervoidrun()This is the main run thread, containing the central processing loop.voidshutdown()Shuts down the aggregator's field processor thread.Methods inherited from class com.nt.udc.ndk.node.DeclNPLFieldProcessor
getBulkData, getData, getLogger, getNPLConfig, getNPLFileName, getNPLProgram, handleRejectOfFile, isDataAvailable, setNPLFileNameMethods 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
-
Field Details
-
okToShutDown
protected boolean okToShutDown -
shuttingDown
protected boolean shuttingDown -
isSleeping
protected boolean isSleeping -
shutDownCheckDelay
protected int shutDownCheckDelay -
initFields
protected int[] initFields -
configHandler
-
streamHandler
-
nodeId
-
node
-
processingInterval
protected long processingInterval -
traceFile
-
init_fields
protected int[] init_fields -
NODE_TYPE
protected static int NODE_TYPE -
tableHandler
-
keyFactory
-
flushHandler
-
timerFlushHandler
-
flushConditions
-
fieldCalc
-
shifter
-
timeGrouper
-
utilFields
-
gprsModule
-
voipModule
-
fileNum
public static int fileNum -
narsProcessed
public static int narsProcessed -
diffTimeSec
public static float diffTimeSec -
nps
public static float nps
-
-
Constructor Details
-
AggregatorFieldProcessor
public AggregatorFieldProcessor(String fileName, AggregatorNode node, long processingInterval, File traceFile) Creates an aggregator field processor
-
-
Method Details
-
init
protected void init() -
getConfigData
protected void getConfigData() -
shutdown
public void shutdown()Shuts down the aggregator's field processor thread.- Specified by:
shutdownin classDeclNPLFieldProcessor
-
run
public void run()This is the main run thread, containing the central processing loop.- Specified by:
runin interfaceRunnable- Specified by:
runin classDeclNPLFieldProcessor
-
createNewRecord
-
dataIsAvailable
public 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 classDeclNPLFieldProcessor
-
processData
Description copied from interface:DataReceiverIfcManipulates the data provided by its DataProvider- Specified by:
processDatain interfaceDataReceiverIfc- Specified by:
processDatain classDeclNPLFieldProcessor
-
processData
Description copied from interface:DataReceiverIfcManipulates the set of data provided by its DataProvider- Specified by:
processDatain interfaceDataReceiverIfc- Specified by:
processDatain classDeclNPLFieldProcessor
-
main
-
isHealthy
public boolean isHealthy()
-