public interface ReportingContext extends PropertyContext
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 controller-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() |
String |
getClusterNodeIdentifier() |
ControllerServiceLookup |
getControllerServiceLookup() |
EventAccess |
getEventAccess() |
Map<PropertyDescriptor,String> |
getProperties() |
StateManager |
getStateManager() |
default boolean |
isAnalyticsEnabled() |
boolean |
isClustered() |
getAllProperties, getProperty
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 valueEventAccess 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
. Access to this bulletin will be enforce through
permissions on the controller.category
- of bulletinseverity
- of bulletinmessage
- of bulletinBulletin createBulletin(String componentId, String category, Severity severity, String message)
Bulletin
for the component with the specified
identifier.componentId
- 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()
boolean isClustered()
true
if this instance of NiFi is configured to be part of a cluster, false
if this instance of NiFi is a standalone instanceString getClusterNodeIdentifier()
null
if either this node is not clustered or the Node Identifier
has not yet been establisheddefault boolean isAnalyticsEnabled()
Copyright © 2022 Apache NiFi Project. All rights reserved.