public abstract class AggregationScheduler extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,List<Record>> |
bufferedRecords |
static org.slf4j.Logger |
logger |
protected int |
totalBufferedRecords |
| Modifier | Constructor and Description |
|---|---|
protected |
AggregationScheduler() |
| Modifier and Type | Method and Description |
|---|---|
void |
aggregate(Record record,
PersistenceExecutor persistenceExecutor)
Get an usage records and try to aggregate with other buffered
Usage Record.
|
protected void |
aggregate(Record record,
PersistenceExecutor persistenceExecutor,
boolean forceFlush) |
protected void |
clear() |
void |
flush(PersistenceExecutor persistenceExecutor) |
static AggregatedRecord |
getAggregatedRecord(Record record) |
protected static AggregatedRecord |
instantiateAggregatedRecord(Record record) |
protected abstract boolean |
isTimeToPersist() |
protected void |
madeAggregation(Record record) |
static AggregationScheduler |
newInstance() |
protected abstract void |
schedulerSpecificClear() |
public static org.slf4j.Logger logger
protected int totalBufferedRecords
public static AggregationScheduler newInstance()
protected static AggregatedRecord instantiateAggregatedRecord(Record record) throws Exception
Exceptionpublic static AggregatedRecord getAggregatedRecord(Record record) throws Exception
Exceptionprotected void madeAggregation(Record record)
public void flush(PersistenceExecutor persistenceExecutor) throws Exception
Exceptionprotected abstract void schedulerSpecificClear()
protected void clear()
protected void aggregate(Record record, PersistenceExecutor persistenceExecutor, boolean forceFlush) throws Exception
Exceptionpublic void aggregate(Record record, PersistenceExecutor persistenceExecutor) throws Exception
singleRecord - the Usage Record To BufferException - if failsprotected abstract boolean isTimeToPersist()
Copyright © 2016. All Rights Reserved.