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 AggrConfig
static float
protected AggrCalcFields
static int
protected FlushConditions
protected TableFlush
protected GPRSAggregatorModule
protected int[]
protected int[]
protected boolean
protected AggrKeyFactory
static int
protected AggregatorNode
protected static int
protected String
static float
protected boolean
protected long
protected AggrShifter
protected int
protected boolean
protected DCStreamHandler
protected AggrTable
protected TimeGrouper
protected TimerFlush
protected File
protected AggrUtilityFields
protected VOIPAggregatorModule
-
Constructor Summary
ConstructorsConstructorDescriptionAggregatorFieldProcessor
(String fileName, AggregatorNode node, long processingInterval, File traceFile) Creates an aggregator field processor -
Method Summary
Modifier and TypeMethodDescriptionprotected NAR
createNewRecord
(NAR incoming) void
Allows a DataProvider to indicate that some data is available for processingprotected void
protected void
init()
boolean
static void
void
processData
(DCFieldContainer incomingDCFC) Manipulates the data provided by its DataProvidervoid
processData
(DCFieldContainer[] incomingDCFCs) Manipulates the set of data provided by its DataProvidervoid
run()
This is the main run thread, containing the central processing loop.void
shutdown()
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, setNPLFileName
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
-
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:
shutdown
in classDeclNPLFieldProcessor
-
run
public void run()This is the main run thread, containing the central processing loop.- Specified by:
run
in interfaceRunnable
- Specified by:
run
in classDeclNPLFieldProcessor
-
createNewRecord
-
dataIsAvailable
public 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 classDeclNPLFieldProcessor
-
processData
Description copied from interface:DataReceiverIfc
Manipulates the data provided by its DataProvider- Specified by:
processData
in interfaceDataReceiverIfc
- Specified by:
processData
in classDeclNPLFieldProcessor
-
processData
Description copied from interface:DataReceiverIfc
Manipulates the set of data provided by its DataProvider- Specified by:
processData
in interfaceDataReceiverIfc
- Specified by:
processData
in classDeclNPLFieldProcessor
-
main
-
isHealthy
public boolean isHealthy()
-