public class TimerFlush extends AggregatorModule implements java.awt.event.ActionListener
| Modifier and Type | Field and Description |
|---|---|
java.util.Vector |
flushTimerQueue |
config, logger| Constructor and Description |
|---|
TimerFlush(ConfigIfc config,
LoggerIfc logger,
AggrTable table,
TableFlush flushHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
This method is called when the flush timer expires.
|
void |
addRecord(java.lang.Object key)
Adds a record to the flush timer's list of records to flush.
|
protected void |
getConfigData()
This method should obtain the necessary information from the
config class, in order to configure the module.
|
boolean |
isHealthy()
Added for Node Health support.
|
void |
rebuildFlushTimerList()
Rebuilds the flush timer's list of records to flush from the
existing table.
|
int[] |
recordInitFields()
Returns the fields that should be stored in a newly created
record entry.
|
void |
resetFlushTimer(java.lang.Object key)
Reset the flush timer for a given entry in the table, as
determined by the "FlushTimerSet" configuration setting.
|
void |
shutdown()
Shuts down the flushing capabilities, including the flush timer.
|
void |
startFlushTimer()
Starts the flush timer thread.
|
public TimerFlush(ConfigIfc config, LoggerIfc logger, AggrTable table, TableFlush flushHandler)
public int[] recordInitFields()
recordInitFields in class AggregatorModulepublic void startFlushTimer()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic void shutdown()
shutdown in class AggregatorModulepublic void rebuildFlushTimerList()
public void resetFlushTimer(java.lang.Object key)
public void addRecord(java.lang.Object key)
key - Key of the record to be flushed at a later time.public boolean isHealthy()
protected void getConfigData()
AggregatorModulegetConfigData in class AggregatorModule