public class SecondPrecisionEventContainer extends Object implements EventContainer
| Modifier and Type | Field and Description |
|---|---|
private EventSumValue |
aggregateValue |
private AtomicLong |
lastUpdateSecond |
private static org.slf4j.Logger |
logger |
private int |
numBins |
private EventSum[] |
sums |
| Constructor and Description |
|---|
SecondPrecisionEventContainer(int numMinutes) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEvent(FlowFileEvent event) |
protected void |
addEvent(FlowFileEvent event,
long timestamp) |
FlowFileEvent |
generateReport(long now) |
private void |
processExpiredBuckets(long currentSecond) |
void |
purgeEvents(long cutoffEpochMilliseconds) |
private static final org.slf4j.Logger logger
private final int numBins
private final EventSum[] sums
private final EventSumValue aggregateValue
private final AtomicLong lastUpdateSecond
public SecondPrecisionEventContainer(int numMinutes)
public void addEvent(FlowFileEvent event)
addEvent in interface EventContainerprotected void addEvent(FlowFileEvent event, long timestamp)
private void processExpiredBuckets(long currentSecond)
public void purgeEvents(long cutoffEpochMilliseconds)
purgeEvents in interface EventContainerpublic FlowFileEvent generateReport(long now)
generateReport in interface EventContainerCopyright © 2021 Apache NiFi Project. All rights reserved.