public class RingBufferEventRepository extends Object implements FlowFileEventRepository
| Modifier and Type | Field and Description |
|---|---|
private EventSumValue |
aggregateValues |
private ConcurrentMap<String,EventContainer> |
componentEventMap |
private int |
numMinutes |
| Constructor and Description |
|---|
RingBufferEventRepository(int numMinutes) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
purgeTransferEvents(String componentIdentifier) |
FlowFileEvent |
reportAggregateEvent() |
StandardRepositoryStatusReport |
reportTransferEvents(long sinceEpochMillis) |
FlowFileEvent |
reportTransferEvents(String componentId,
long now) |
void |
updateRepository(FlowFileEvent event,
String componentId) |
private final int numMinutes
private final EventSumValue aggregateValues
private final ConcurrentMap<String,EventContainer> componentEventMap
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void updateRepository(FlowFileEvent event, String componentId)
updateRepository in interface FlowFileEventRepositorypublic StandardRepositoryStatusReport reportTransferEvents(long sinceEpochMillis)
reportTransferEvents in interface FlowFileEventRepositorypublic FlowFileEvent reportTransferEvents(String componentId, long now)
reportTransferEvents in interface FlowFileEventRepositorypublic void purgeTransferEvents(String componentIdentifier)
purgeTransferEvents in interface FlowFileEventRepositorypublic FlowFileEvent reportAggregateEvent()
reportAggregateEvent in interface FlowFileEventRepositoryCopyright © 2021 Apache NiFi Project. All rights reserved.