Package org.apache.nifi.util
Class MockBulletinRepository
java.lang.Object
org.apache.nifi.util.MockBulletinRepository
- All Implemented Interfaces:
org.apache.nifi.reporting.BulletinRepository
public class MockBulletinRepository
extends Object
implements org.apache.nifi.reporting.BulletinRepository
-
Field Summary
Fields inherited from interface org.apache.nifi.reporting.BulletinRepository
MAX_BULLETINS_FOR_CONTROLLER, MAX_BULLETINS_PER_COMPONENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBulletin(org.apache.nifi.reporting.Bulletin bulletin) List<org.apache.nifi.reporting.Bulletin> findBulletins(org.apache.nifi.reporting.BulletinQuery bulletinQuery) List<org.apache.nifi.reporting.Bulletin> List<org.apache.nifi.reporting.Bulletin> findBulletinsForController(int max) List<org.apache.nifi.reporting.Bulletin> findBulletinsForGroupBySource(String groupId) List<org.apache.nifi.reporting.Bulletin> findBulletinsForGroupBySource(String groupId, int maxPerComponent) List<org.apache.nifi.reporting.Bulletin> findBulletinsForSource(String sourceId) List<org.apache.nifi.reporting.Bulletin> findBulletinsForSource(String sourceId, String groupId) intintlong
-
Constructor Details
-
MockBulletinRepository
public MockBulletinRepository()
-
-
Method Details
-
addBulletin
public void addBulletin(org.apache.nifi.reporting.Bulletin bulletin) - Specified by:
addBulletinin interfaceorg.apache.nifi.reporting.BulletinRepository
-
getControllerBulletinCapacity
public int getControllerBulletinCapacity()- Specified by:
getControllerBulletinCapacityin interfaceorg.apache.nifi.reporting.BulletinRepository
-
getComponentBulletinCapacity
public int getComponentBulletinCapacity()- Specified by:
getComponentBulletinCapacityin interfaceorg.apache.nifi.reporting.BulletinRepository
-
findBulletins
public List<org.apache.nifi.reporting.Bulletin> findBulletins(org.apache.nifi.reporting.BulletinQuery bulletinQuery) - Specified by:
findBulletinsin interfaceorg.apache.nifi.reporting.BulletinRepository
-
findBulletinsForSource
- Specified by:
findBulletinsForSourcein interfaceorg.apache.nifi.reporting.BulletinRepository
-
findBulletinsForSource
public List<org.apache.nifi.reporting.Bulletin> findBulletinsForSource(String sourceId, String groupId) - Specified by:
findBulletinsForSourcein interfaceorg.apache.nifi.reporting.BulletinRepository
-
findBulletinsForGroupBySource
- Specified by:
findBulletinsForGroupBySourcein interfaceorg.apache.nifi.reporting.BulletinRepository
-
findBulletinsForGroupBySource
public List<org.apache.nifi.reporting.Bulletin> findBulletinsForGroupBySource(String groupId, int maxPerComponent) - Specified by:
findBulletinsForGroupBySourcein interfaceorg.apache.nifi.reporting.BulletinRepository
-
findBulletinsForController
- Specified by:
findBulletinsForControllerin interfaceorg.apache.nifi.reporting.BulletinRepository
-
findBulletinsForController
- Specified by:
findBulletinsForControllerin interfaceorg.apache.nifi.reporting.BulletinRepository
-
getMaxBulletinId
public long getMaxBulletinId()- Specified by:
getMaxBulletinIdin interfaceorg.apache.nifi.reporting.BulletinRepository
-