public class VolatileBulletinRepository extends Object implements BulletinRepository
| Modifier and Type | Class and Description |
|---|---|
private class |
VolatileBulletinRepository.DefaultBulletinProcessingStrategy |
| Modifier and Type | Field and Description |
|---|---|
private ConcurrentMap<String,ConcurrentMap<String,RingBuffer<Bulletin>>> |
bulletinStoreMap |
private static int |
COMPONENT_BUFFER_SIZE |
private static int |
CONTROLLER_BUFFER_SIZE |
private static String |
CONTROLLER_BULLETIN_STORE_KEY |
private BulletinProcessingStrategy |
processingStrategy |
private static String |
REPORTING_TASK_BULLETIN_STORE_KEY |
private static String |
SERVICE_BULLETIN_STORE_KEY |
MAX_BULLETINS_FOR_CONTROLLER, MAX_BULLETINS_PER_COMPONENT| Constructor and Description |
|---|
VolatileBulletinRepository() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBulletin(Bulletin bulletin) |
List<Bulletin> |
findBulletins(BulletinQuery bulletinQuery) |
List<Bulletin> |
findBulletinsForController() |
List<Bulletin> |
findBulletinsForController(int max) |
List<Bulletin> |
findBulletinsForGroupBySource(String groupId) |
List<Bulletin> |
findBulletinsForGroupBySource(String groupId,
int maxPerComponent) |
List<Bulletin> |
findBulletinsForSource(String sourceId) |
private List<RingBuffer<Bulletin>> |
getBulletinBuffers(Bulletin bulletin) |
private String |
getBulletinStoreKey(Bulletin bulletin) |
int |
getComponentBulletinCapacity() |
int |
getControllerBulletinCapacity() |
private boolean |
isControllerBulletin(Bulletin bulletin) |
private static final int CONTROLLER_BUFFER_SIZE
private static final int COMPONENT_BUFFER_SIZE
private static final String CONTROLLER_BULLETIN_STORE_KEY
private static final String SERVICE_BULLETIN_STORE_KEY
private static final String REPORTING_TASK_BULLETIN_STORE_KEY
private final ConcurrentMap<String,ConcurrentMap<String,RingBuffer<Bulletin>>> bulletinStoreMap
private volatile BulletinProcessingStrategy processingStrategy
public void addBulletin(Bulletin bulletin)
addBulletin in interface BulletinRepositorypublic int getControllerBulletinCapacity()
getControllerBulletinCapacity in interface BulletinRepositorypublic int getComponentBulletinCapacity()
getComponentBulletinCapacity in interface BulletinRepositorypublic List<Bulletin> findBulletins(BulletinQuery bulletinQuery)
findBulletins in interface BulletinRepositorypublic List<Bulletin> findBulletinsForSource(String sourceId)
findBulletinsForSource in interface BulletinRepositorypublic List<Bulletin> findBulletinsForGroupBySource(String groupId)
findBulletinsForGroupBySource in interface BulletinRepositorypublic List<Bulletin> findBulletinsForGroupBySource(String groupId, int maxPerComponent)
findBulletinsForGroupBySource in interface BulletinRepositorypublic List<Bulletin> findBulletinsForController()
findBulletinsForController in interface BulletinRepositorypublic List<Bulletin> findBulletinsForController(int max)
findBulletinsForController in interface BulletinRepositoryprivate List<RingBuffer<Bulletin>> getBulletinBuffers(Bulletin bulletin)
private boolean isControllerBulletin(Bulletin bulletin)
Copyright © 2021 Apache NiFi Project. All rights reserved.