public interface ReportingContext
ReportingTask
. This context allows a ReportingTask to access
statistics, metrics, and monitoring information, as well as configuration
supplied by the user.Modifier and Type | Method and Description |
---|---|
Bulletin |
createBulletin(String category,
Severity severity,
String message)
Creates a system-level
Bulletin with the given category, severity
level, and message, so that the Bulletin can be added to the
BulletinRepository . |
Bulletin |
createBulletin(String componentId,
String category,
Severity severity,
String message)
Creates a
Bulletin for the component with the specified
identifier |
BulletinRepository |
getBulletinRepository() |
ControllerServiceLookup |
getControllerServiceLookup() |
EventAccess |
getEventAccess() |
Map<PropertyDescriptor,String> |
getProperties() |
PropertyValue |
getProperty(PropertyDescriptor propertyName) |
StateManager |
getStateManager() |
Map<PropertyDescriptor,String> getProperties()
PropertyDescriptor
s to their
configured properties. This Map will contain a null
for any
Property that has not been configured by the user, even if the
PropertyDescriptor has a default valuePropertyValue getProperty(PropertyDescriptor propertyName)
propertyName
- descriptor of property to lookup the value ofPropertyDescriptor
EventAccess getEventAccess()
EventAccess
object that can be used to obtain
information about specific events and reports that have happenedBulletinRepository getBulletinRepository()
BulletinRepository
that can be used to analyze
Bulletins that have been emitted and register new BulletinsBulletin createBulletin(String category, Severity severity, String message)
Bulletin
with the given category, severity
level, and message, so that the Bulletin can be added to the
BulletinRepository
.category
- of bulletinseverity
- of bulletinmessage
- of bulletinBulletin createBulletin(String componentId, String category, Severity severity, String message)
Bulletin
for the component with the specified
identifiercomponentId
- the ID of the componentcategory
- the name of the bulletin's categoryseverity
- the severity level of the bulletinmessage
- the bulletin's messageControllerServiceLookup getControllerServiceLookup()
ControllerServiceLookup
which can be used to obtain
Controller ServicesStateManager getStateManager()
Copyright © 2016 Apache NiFi Project. All rights reserved.