Package org.apache.nifi.controller
Interface ConfigurationContext
- All Superinterfaces:
PropertyContext
This context is passed to ControllerServices and Reporting Tasks in order
to expose their configuration to them.
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
Returns the component's (ControllerService, ReportingTask, ParameterProvider, e.g.) namegetSchedulingPeriod
(TimeUnit timeUnit) Returns the amount of time, in the givenTimeUnit
that will elapsed between the return of one execution of the component'sonTrigger
method and the time at which the method is invoked again.Methods inherited from interface org.apache.nifi.context.PropertyContext
getAllProperties, getProperty
-
Method Details
-
getProperties
Map<PropertyDescriptor,String> getProperties()- Returns:
- an unmodifiable map of all configured properties for this
ControllerService
-
getAnnotationData
String getAnnotationData()- Returns:
- the annotation data configured for the component
-
getSchedulingPeriod
String getSchedulingPeriod()- Returns:
- a String representation of the scheduling period, or
null
if the component does not have a scheduling period (e.g., for ControllerServices)
-
getSchedulingPeriod
Returns the amount of time, in the givenTimeUnit
that will elapsed between the return of one execution of the component'sonTrigger
method and the time at which the method is invoked again. This method will return null if the component does not have a scheduling period (e.g., for ControllerServices)- Parameters:
timeUnit
- unit of time for scheduling- Returns:
- period of time or
null
if component does not have a scheduling period
-
getName
String getName()Returns the component's (ControllerService, ReportingTask, ParameterProvider, e.g.) name- Returns:
- the String name of this component
-