Package org.apache.nifi.reporting
Interface BulletinRepository
public interface BulletinRepository
The BulletinRepository provides a place to store and retrieve
Bulletin
s that have been created by the NiFi Framework and the
Components that are running within the Framework.-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBulletin
(Bulletin bulletin) Adds a Bulletin to the repository.findBulletins
(BulletinQuery bulletinQuery) Finds Bulletin's that meet the specified query.findBulletinsForController
(int max) Finds all bulletins for the controller;findBulletinsForGroupBySource
(String groupId) Finds all bulletins for the specified group.findBulletinsForGroupBySource
(String groupId, int maxPerComponent) Finds all bulletins for the specified group.findBulletinsForSource
(String sourceId) Finds all bulletins for the specified source component.findBulletinsForSource
(String sourceId, String groupId) Finds all bulletins for the specified source component that resides in the given group.int
int
long
-
Field Details
-
MAX_BULLETINS_PER_COMPONENT
static final int MAX_BULLETINS_PER_COMPONENT- See Also:
-
MAX_BULLETINS_FOR_CONTROLLER
static final int MAX_BULLETINS_FOR_CONTROLLER- See Also:
-
-
Method Details
-
addBulletin
Adds a Bulletin to the repository.- Parameters:
bulletin
- to add
-
getControllerBulletinCapacity
int getControllerBulletinCapacity()- Returns:
- the capacity for the number of bulletins for the controller
-
getComponentBulletinCapacity
int getComponentBulletinCapacity()- Returns:
- the capacity for the number of bulletins per component
-
findBulletins
Finds Bulletin's that meet the specified query.- Parameters:
bulletinQuery
- indicates which bulletins are of interest- Returns:
- bulletins that met the query
-
findBulletinsForSource
Finds all bulletins for the specified source component.- Parameters:
sourceId
- id of the source- Returns:
- bulletins for the given source
-
findBulletinsForSource
Finds all bulletins for the specified source component that resides in the given group. While thefindBulletinsForSource(String)
method may be used, this method is preferred when the ID of the group is known, as this is far more efficient.- Parameters:
sourceId
- the id of the source componentgroupId
- the id of the process group- Returns:
- bulletins for the given source
-
findBulletinsForGroupBySource
Finds all bulletins for the specified group.- Parameters:
groupId
- id of the group- Returns:
- bulletins for the given group
-
findBulletinsForGroupBySource
Finds all bulletins for the specified group.- Parameters:
groupId
- id of the groupmaxPerComponent
- max responses wanted- Returns:
- bulletins found
-
findBulletinsForController
- Returns:
- all bulletins for the controller
-
findBulletinsForController
Finds all bulletins for the controller;- Parameters:
max
- limits the number of responses- Returns:
- all bulletins for the controller
-
getMaxBulletinId
long getMaxBulletinId()- Returns:
- the max ID of any bulletin that has been added, or -1 if no bulletins have been added
-