- All Superinterfaces:
KerberosContext
- All Known Implementing Classes:
DocumentationReportingInitializationContext
A ReportingConfiguration provides configuration information to a
ReportingTask at the time of initialization
-
Method Summary
Modifier and TypeMethodDescriptiongetName()longgetSchedulingPeriod(TimeUnit timeUnit) Returns the amount of time, in the givenTimeUnitthat will elapsed between the return of one execution of theReportingTask'sonTriggermethod and the time at which the method is invoked again.Methods inherited from interface org.apache.nifi.kerberos.KerberosContext
getKerberosConfigurationFile, getKerberosServiceKeytab, getKerberosServicePrincipal
-
Method Details
-
getIdentifier
String getIdentifier()- Returns:
- the identifier for this ReportingTask
-
getName
String getName()- Returns:
- the configured name for this ReportingTask
-
getSchedulingPeriod
Returns the amount of time, in the givenTimeUnitthat will elapsed between the return of one execution of theReportingTask'sonTriggermethod and the time at which the method is invoked again. This method will return-1Lif the Scheduling Strategy is not set toSchedulingStrategy.TIMER_DRIVEN- Parameters:
timeUnit- unit of time for scheduling- Returns:
- period of time
-
getControllerServiceLookup
ControllerServiceLookup getControllerServiceLookup()- Returns:
- the
ControllerServiceLookupwhich can be used to obtain Controller Services
-
getSchedulingPeriod
String getSchedulingPeriod()- Returns:
- a String representation of the scheduling period
-
getSchedulingStrategy
SchedulingStrategy getSchedulingStrategy()- Returns:
- the
SchedulingStrategythat is used to trigger the task to run
-
getLogger
ComponentLog getLogger()- Returns:
- a logger that can be used to log important events in a standard way and generate bulletins when appropriate
-
getNodeTypeProvider
NodeTypeProvider getNodeTypeProvider()- Returns:
- the
NodeTypeProviderwhich can be used to detect the node type of this NiFi instance. - Since:
- Apache NiFi 1.5.0
-