Package org.apache.nifi.events
Class VolatileBulletinRepository
java.lang.Object
org.apache.nifi.events.VolatileBulletinRepository
- All Implemented Interfaces:
BulletinRepository
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ConcurrentMap<String, ConcurrentMap<String, RingBuffer<Bulletin>>> private static final intprivate static final intprivate static final Stringprivate static final Stringprivate static final Stringprivate final AtomicLongprivate static final Stringprivate final BulletinProcessingStrategyprivate static final Stringprivate static final StringFields inherited from interface org.apache.nifi.reporting.BulletinRepository
MAX_BULLETINS_FOR_CONTROLLER, MAX_BULLETINS_PER_COMPONENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBulletin(Bulletin bulletin) private RingBuffer.Filter<Bulletin> createFilter(BulletinQuery bulletinQuery) findBulletins(BulletinQuery bulletinQuery) findBulletinsForController(int max) findBulletinsForGroupBySource(String groupId) findBulletinsForGroupBySource(String groupId, int maxPerComponent) findBulletinsForSource(String sourceId) findBulletinsForSource(String sourceId, String groupId) findBulletinsForSource(String sourceId, BulletinQuery bulletinQuery, Collection<ConcurrentMap<String, RingBuffer<Bulletin>>> bulletinStoreMaps) private List<RingBuffer<Bulletin>> getBulletinBuffers(Bulletin bulletin) private StringgetBulletinStoreKey(Bulletin bulletin) intintlongprivate booleanisControllerBulletin(Bulletin bulletin)
-
Field Details
-
CONTROLLER_BUFFER_SIZE
private static final int CONTROLLER_BUFFER_SIZE- See Also:
-
COMPONENT_BUFFER_SIZE
private static final int COMPONENT_BUFFER_SIZE- See Also:
-
CONTROLLER_BULLETIN_STORE_KEY
- See Also:
-
SERVICE_BULLETIN_STORE_KEY
- See Also:
-
REPORTING_TASK_BULLETIN_STORE_KEY
- See Also:
-
FLOW_ANALYSIS_RULE_BULLETIN_STORE_KEY
- See Also:
-
FLOW_REGISTRY_CLIENT_STORE_KEY
- See Also:
-
PARAMETER_PROVIDER_BULLETIN_STORE_KEY
- See Also:
-
bulletinStoreMap
-
processingStrategy
-
maxId
-
-
Constructor Details
-
VolatileBulletinRepository
public VolatileBulletinRepository()
-
-
Method Details
-
addBulletin
- Specified by:
addBulletinin interfaceBulletinRepository
-
getMaxBulletinId
public long getMaxBulletinId()- Specified by:
getMaxBulletinIdin interfaceBulletinRepository
-
getControllerBulletinCapacity
public int getControllerBulletinCapacity()- Specified by:
getControllerBulletinCapacityin interfaceBulletinRepository
-
getComponentBulletinCapacity
public int getComponentBulletinCapacity()- Specified by:
getComponentBulletinCapacityin interfaceBulletinRepository
-
findBulletins
- Specified by:
findBulletinsin interfaceBulletinRepository
-
createFilter
-
findBulletinsForSource
- Specified by:
findBulletinsForSourcein interfaceBulletinRepository
-
findBulletinsForSource
- Specified by:
findBulletinsForSourcein interfaceBulletinRepository
-
findBulletinsForSource
private List<Bulletin> findBulletinsForSource(String sourceId, BulletinQuery bulletinQuery, Collection<ConcurrentMap<String, RingBuffer<Bulletin>>> bulletinStoreMaps) -
findBulletinsForGroupBySource
- Specified by:
findBulletinsForGroupBySourcein interfaceBulletinRepository
-
findBulletinsForGroupBySource
- Specified by:
findBulletinsForGroupBySourcein interfaceBulletinRepository
-
findBulletinsForController
- Specified by:
findBulletinsForControllerin interfaceBulletinRepository
-
findBulletinsForController
- Specified by:
findBulletinsForControllerin interfaceBulletinRepository
-
getBulletinBuffers
-
getBulletinStoreKey
-
isControllerBulletin
-