public class MXNarInputProcessor
extends java.lang.Object
implements java.lang.Runnable
Constructor and Description |
---|
MXNarInputProcessor(MXAggregatorNode owner,
MXNARFileManager narfile,
int numQueues)
This object is used to do wait() and notify() synchronization.
|
Modifier and Type | Method and Description |
---|---|
int |
doModulusRouting(DCFieldContainer nextNAR) |
void |
endRecordProcessing(DCFieldContainer nar) |
DCFieldContainer |
getData(int queueIndex)
Polls the queue for more NARs.
|
boolean |
isDataAvailable(int queueIndex)
Data is available if the reader thread is working, and
there are 1 or more NARs waiting in the queue.
|
void |
run()
Mainloop.
|
void |
setModulusRoutingAttrID(java.lang.String attrID) |
void |
shutdown()
Signal the reader thread to shutdown, and wait for it to actually shutdown.
|
void |
startup() |
public MXNarInputProcessor(MXAggregatorNode owner, MXNARFileManager narfile, int numQueues) throws NodeStartException
NodeStartException
public void setModulusRoutingAttrID(java.lang.String attrID) throws NodeProcessingException
NodeProcessingException
public void startup()
public boolean isDataAvailable(int queueIndex)
public DCFieldContainer getData(int queueIndex)
public void run()
run
in interface java.lang.Runnable
public int doModulusRouting(DCFieldContainer nextNAR)
public void shutdown()
public void endRecordProcessing(DCFieldContainer nar)