Package org.apache.nifi.util
Class MockReportingContext
java.lang.Object
org.apache.nifi.util.MockControllerServiceLookup
org.apache.nifi.util.MockReportingContext
- All Implemented Interfaces:
org.apache.nifi.context.PropertyContext,org.apache.nifi.controller.ControllerServiceLookup,org.apache.nifi.reporting.ReportingContext
public class MockReportingContext
extends MockControllerServiceLookup
implements org.apache.nifi.reporting.ReportingContext, org.apache.nifi.controller.ControllerServiceLookup
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<String, ControllerServiceConfiguration> private final MockEventAccessprivate final org.apache.nifi.components.state.StateManager -
Constructor Summary
ConstructorsConstructorDescriptionMockReportingContext(Map<String, org.apache.nifi.controller.ControllerService> controllerServices, org.apache.nifi.components.state.StateManager stateManager) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.nifi.reporting.BulletincreateBulletin(String componentId, String category, org.apache.nifi.reporting.Severity severity, String message) org.apache.nifi.reporting.BulletincreateBulletin(String category, org.apache.nifi.reporting.Severity severity, String message) org.apache.nifi.reporting.BulletinRepositoryList<org.apache.nifi.reporting.Bulletin> getComponentBulletins(String componentId) org.apache.nifi.controller.ControllerServiceLookuporg.apache.nifi.components.PropertyValuegetProperty(org.apache.nifi.components.PropertyDescriptor property) org.apache.nifi.components.state.StateManagerbooleanvoidsetProperties(Map<org.apache.nifi.components.PropertyDescriptor, String> properties) voidsetProperty(String propertyName, String value) Methods inherited from class org.apache.nifi.util.MockControllerServiceLookup
addControllerService, addControllerService, addControllerServices, getConfiguration, getControllerService, getControllerServiceIdentifiers, getControllerServiceName, getControllerServices, getInputRequirement, isControllerServiceEnabled, isControllerServiceEnabled, isControllerServiceEnabling, removeControllerServiceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.nifi.controller.ControllerServiceLookup
getControllerService, getControllerServiceIdentifiers, getControllerServiceName, isControllerServiceEnabled, isControllerServiceEnabled, isControllerServiceEnablingMethods inherited from interface org.apache.nifi.reporting.ReportingContext
isAnalyticsEnabled
-
Field Details
-
controllerServices
-
eventAccess
-
properties
-
stateManager
private final org.apache.nifi.components.state.StateManager stateManager -
componentBulletinsCreated
-
-
Constructor Details
-
MockReportingContext
-
-
Method Details
-
getProperties
- Specified by:
getPropertiesin interfaceorg.apache.nifi.reporting.ReportingContext
-
getAllProperties
- Specified by:
getAllPropertiesin interfaceorg.apache.nifi.context.PropertyContext
-
getProperty
public org.apache.nifi.components.PropertyValue getProperty(org.apache.nifi.components.PropertyDescriptor property) - Specified by:
getPropertyin interfaceorg.apache.nifi.context.PropertyContext
-
setProperty
-
setProperties
-
getEventAccess
- Specified by:
getEventAccessin interfaceorg.apache.nifi.reporting.ReportingContext
-
getBulletinRepository
public org.apache.nifi.reporting.BulletinRepository getBulletinRepository()- Specified by:
getBulletinRepositoryin interfaceorg.apache.nifi.reporting.ReportingContext
-
createBulletin
public org.apache.nifi.reporting.Bulletin createBulletin(String category, org.apache.nifi.reporting.Severity severity, String message) - Specified by:
createBulletinin interfaceorg.apache.nifi.reporting.ReportingContext
-
createBulletin
public org.apache.nifi.reporting.Bulletin createBulletin(String componentId, String category, org.apache.nifi.reporting.Severity severity, String message) - Specified by:
createBulletinin interfaceorg.apache.nifi.reporting.ReportingContext
-
getControllerServiceLookup
public org.apache.nifi.controller.ControllerServiceLookup getControllerServiceLookup()- Specified by:
getControllerServiceLookupin interfaceorg.apache.nifi.reporting.ReportingContext
-
getComponentBulletins
- Parameters:
componentId- identifier of component to get bulletins for- Returns:
- all Bulletins that have been created for the component with the given ID
-
getStateManager
public org.apache.nifi.components.state.StateManager getStateManager()- Specified by:
getStateManagerin interfaceorg.apache.nifi.reporting.ReportingContext
-
isClustered
public boolean isClustered()- Specified by:
isClusteredin interfaceorg.apache.nifi.reporting.ReportingContext
-
getClusterNodeIdentifier
- Specified by:
getClusterNodeIdentifierin interfaceorg.apache.nifi.reporting.ReportingContext
-