public interface ReportingTask extends ConfigurableComponent
ReportingTasks are discovered using Java's
ServiceLoader mechanism. As a result, all implementations must
follow these rules:
META-INF/services directory. This file contains a list of
fully-qualified class names of all ReportingTasks in the jar,
one-per-line.
ReportingTasks are scheduled on a delayed interval with a single thread. Therefore, implementations are not required to be thread-safe.
ReportingTasks may choose to annotate a method with the
@OnConfigured annotation. If this is done, that method
will be invoked after all properties have been set for the ReportingTask and
before it is scheduled to run. If the method throws an Exception, the
ReportingTask will be Administratively yielded and will not run for the
configured period of time.
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(ReportingInitializationContext config)
Provides the Reporting Task with access to objects that may be of use
throughout the life of the service
|
void |
onTrigger(ReportingContext context)
This method is called on a scheduled interval to allow the Reporting Task
to perform its tasks.
|
getIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validatevoid initialize(ReportingInitializationContext config) throws InitializationException
config - of initialization contextInitializationException - if unable to initvoid onTrigger(ReportingContext context)
context - reporting contextCopyright © 2016 Apache NiFi Project. All rights reserved.