public class MockReportingContext extends MockControllerServiceLookup implements ReportingContext, ControllerServiceLookup
Modifier and Type | Field and Description |
---|---|
private Map<String,List<Bulletin>> |
componentBulletinsCreated |
private Map<String,ControllerServiceConfiguration> |
controllerServices |
private MockEventAccess |
eventAccess |
private Map<PropertyDescriptor,String> |
properties |
private StateManager |
stateManager |
private VariableRegistry |
variableRegistry |
Constructor and Description |
---|
MockReportingContext(Map<String,ControllerService> controllerServices,
StateManager stateManager,
VariableRegistry variableRegistry) |
Modifier and Type | Method and Description |
---|---|
Bulletin |
createBulletin(String category,
Severity severity,
String message) |
Bulletin |
createBulletin(String componentId,
String category,
Severity severity,
String message) |
BulletinRepository |
getBulletinRepository() |
String |
getClusterNodeIdentifier() |
List<Bulletin> |
getComponentBulletins(String componentId) |
ControllerServiceLookup |
getControllerServiceLookup() |
MockEventAccess |
getEventAccess() |
Map<PropertyDescriptor,String> |
getProperties() |
PropertyValue |
getProperty(PropertyDescriptor property) |
StateManager |
getStateManager() |
boolean |
isClustered() |
void |
setProperties(Map<PropertyDescriptor,String> properties) |
void |
setProperty(String propertyName,
String value) |
addControllerService, addControllerService, addControllerServices, getConfiguration, getControllerService, getControllerServiceIdentifiers, getControllerServiceName, isControllerServiceEnabled, isControllerServiceEnabled, isControllerServiceEnabling, removeControllerService
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getControllerService, getControllerServiceIdentifiers, getControllerServiceName, isControllerServiceEnabled, isControllerServiceEnabled, isControllerServiceEnabling
private final Map<String,ControllerServiceConfiguration> controllerServices
private final MockEventAccess eventAccess
private final Map<PropertyDescriptor,String> properties
private final StateManager stateManager
private final VariableRegistry variableRegistry
public MockReportingContext(Map<String,ControllerService> controllerServices, StateManager stateManager, VariableRegistry variableRegistry)
public Map<PropertyDescriptor,String> getProperties()
getProperties
in interface ReportingContext
public PropertyValue getProperty(PropertyDescriptor property)
getProperty
in interface ReportingContext
public void setProperties(Map<PropertyDescriptor,String> properties)
public MockEventAccess getEventAccess()
getEventAccess
in interface ReportingContext
public BulletinRepository getBulletinRepository()
getBulletinRepository
in interface ReportingContext
public Bulletin createBulletin(String category, Severity severity, String message)
createBulletin
in interface ReportingContext
public Bulletin createBulletin(String componentId, String category, Severity severity, String message)
createBulletin
in interface ReportingContext
public ControllerServiceLookup getControllerServiceLookup()
getControllerServiceLookup
in interface ReportingContext
public List<Bulletin> getComponentBulletins(String componentId)
componentId
- identifier of component to get bulletins forpublic StateManager getStateManager()
getStateManager
in interface ReportingContext
public boolean isClustered()
isClustered
in interface ReportingContext
public String getClusterNodeIdentifier()
getClusterNodeIdentifier
in interface ReportingContext
Copyright © 2016 Apache NiFi Project. All rights reserved.