public class FlexibleTableFlush
extends java.lang.Object
Constructor and Description |
---|
FlexibleTableFlush(LoggerIfc logger,
FlexibleAggrTable table,
DCStreamHandler streamHandler,
java.lang.String nodeID,
int nodeType,
boolean performInitialFlush,
boolean performWriteOnFlush) |
Modifier and Type | Method and Description |
---|---|
void |
completeFlush()
Flushes the complete table.
|
void |
flushRecord(NAR nar)
Flushes the given record to the next node.
|
void |
flushRecordAndRemove(NAR nar,
FlexibleNARKey key)
Flushes the given record to the next node, and removes
all traces of it from the table.
|
void |
flushRecords(NAR[] nars)
Flushes the given set of records to the next node.
|
void |
flushTableRecord(FlexibleNARKey key)
Flushes the given record to the next node, after removing it from
the table.
|
void |
flushTableRecords(FlexibleNARKey[] keys)
Flushes the set of records to the next node, after removing it from
the table.
|
void |
initialFlush()
Flushes the table based on whether the "FlushOnStartup"
configuration setting is set to true.
|
void |
removeTableRecord(FlexibleNARKey key)
Flushed out the record by removing it.
|
void |
shutdown() |
public FlexibleTableFlush(LoggerIfc logger, FlexibleAggrTable table, DCStreamHandler streamHandler, java.lang.String nodeID, int nodeType, boolean performInitialFlush, boolean performWriteOnFlush)
public void shutdown()
public void flushRecord(NAR nar)
nar
- NAR to flush to the next nodepublic void flushRecordAndRemove(NAR nar, FlexibleNARKey key)
nar
- Record to flush to next nodekey
- Key of element to remove from table
(but NOT flush to next node)public void flushRecords(NAR[] nars)
nars
- NARs to flush to the next nodepublic void flushTableRecord(FlexibleNARKey key)
key
- key of the NAR in the tablepublic void removeTableRecord(FlexibleNARKey key)
public void flushTableRecords(FlexibleNARKey[] keys)
keys
- keys of the NARs in the tablepublic void initialFlush()
public void completeFlush()