public abstract class AbstractReportingTask extends AbstractConfigurableComponent implements ReportingTask
Modifier and Type | Field and Description |
---|---|
private String |
identifier |
private String |
name |
private long |
schedulingNanos |
private ControllerServiceLookup |
serviceLookup |
Constructor and Description |
---|
AbstractReportingTask() |
Modifier and Type | Method and Description |
---|---|
protected ControllerServiceLookup |
getControllerServiceLookup()
Returns the
ControllerServiceLookup that was passed to the
#init(ProcessorInitializationContext) method |
String |
getIdentifier()
Returns the identifier of this Reporting Task
|
protected String |
getName()
Returns the name of this Reporting Task
|
protected long |
getSchedulingPeriod(TimeUnit timeUnit)
Returns the amount of times that elapses between the moment that this
ReportingTask finishes its invocation of
ReportingTask.onTrigger(ReportingContext) and the next time that
ReportingTask.onTrigger(ReportingContext) is called. |
protected void |
init(ReportingInitializationContext config)
Provides a mechanism by which subclasses can perform initialization of
the Reporting Task before it is scheduled to be run
|
void |
initialize(ReportingInitializationContext config)
Provides the Reporting Task with access to objects that may be of use
throughout the life of the service
|
customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, getSupportedPropertyDescriptors, hashCode, onPropertyModified, toString, validate
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
onTrigger
getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate
private String identifier
private String name
private long schedulingNanos
private ControllerServiceLookup serviceLookup
public final void initialize(ReportingInitializationContext config) throws InitializationException
ReportingTask
initialize
in interface ReportingTask
InitializationException
protected final ControllerServiceLookup getControllerServiceLookup()
ControllerServiceLookup
that was passed to the
#init(ProcessorInitializationContext)
methodpublic String getIdentifier()
getIdentifier
in interface ConfigurableComponent
protected String getName()
protected long getSchedulingPeriod(TimeUnit timeUnit)
ReportingTask.onTrigger(ReportingContext)
and the next time that
ReportingTask.onTrigger(ReportingContext)
is called.timeUnit
- protected void init(ReportingInitializationContext config) throws InitializationException
config
- InitializationException
Copyright © 2015 Apache NiFi (incubating). All rights reserved.