use of com.blackducksoftware.integration.hub.alert.accumulator.AccumulatorReader in project hub-alert by blackducksoftware.
the class GlobalSchedulingConfigActions method runAccumulator.
public void runAccumulator() throws Exception {
final AccumulatorReader reader = new AccumulatorReader(globalProperties);
final AccumulatorProcessor processor = new AccumulatorProcessor(globalProperties);
final AccumulatorWriter writer = new AccumulatorWriter(notificationManager, channelTemplateManager);
final NotificationResults results = reader.read();
final DBStoreEvent event = processor.process(results);
final List<DBStoreEvent> events = new ArrayList<>();
if (event != null) {
events.add(event);
}
writer.write(events);
}
Aggregations