public class DocumentationReportingInitializationContext extends Object implements ReportingInitializationContext
Modifier and Type | Field and Description |
---|---|
private ComponentLog |
componentLog |
private String |
id |
private String |
name |
private NodeTypeProvider |
nodeTypeProvider |
Constructor and Description |
---|
DocumentationReportingInitializationContext() |
Modifier and Type | Method and Description |
---|---|
ControllerServiceLookup |
getControllerServiceLookup() |
String |
getIdentifier() |
File |
getKerberosConfigurationFile()
The Kerberos configuration file (typically krb5.conf) that will be used
by this JVM during all Kerberos operations.
|
File |
getKerberosServiceKeytab()
The File instance for the Kerberos service keytab.
|
String |
getKerberosServicePrincipal()
The Kerberos service principal used by NiFi to communicate with the KDC
in order to obtain tickets on behalf of NiFi.
|
ComponentLog |
getLogger() |
String |
getName() |
NodeTypeProvider |
getNodeTypeProvider() |
String |
getSchedulingPeriod() |
long |
getSchedulingPeriod(TimeUnit timeUnit)
Returns the amount of time, in the given
TimeUnit that will
elapsed between the return of one execution of the
ReportingTask 's
onTrigger method and
the time at which the method is invoked again. |
SchedulingStrategy |
getSchedulingStrategy() |
private final String id
private final ComponentLog componentLog
private final NodeTypeProvider nodeTypeProvider
private final String name
public DocumentationReportingInitializationContext()
public String getIdentifier()
getIdentifier
in interface ReportingInitializationContext
public String getName()
getName
in interface ReportingInitializationContext
public long getSchedulingPeriod(TimeUnit timeUnit)
ReportingInitializationContext
TimeUnit
that will
elapsed between the return of one execution of the
ReportingTask
's
onTrigger
method and
the time at which the method is invoked again. This method will return
-1L
if the Scheduling Strategy is not set to
SchedulingStrategy.TIMER_DRIVEN
getSchedulingPeriod
in interface ReportingInitializationContext
timeUnit
- unit of time for schedulingpublic ControllerServiceLookup getControllerServiceLookup()
getControllerServiceLookup
in interface ReportingInitializationContext
ControllerServiceLookup
which can be used to obtain
Controller Servicespublic String getSchedulingPeriod()
getSchedulingPeriod
in interface ReportingInitializationContext
public SchedulingStrategy getSchedulingStrategy()
getSchedulingStrategy
in interface ReportingInitializationContext
SchedulingStrategy
that is used to trigger the task
to runpublic ComponentLog getLogger()
getLogger
in interface ReportingInitializationContext
public NodeTypeProvider getNodeTypeProvider()
getNodeTypeProvider
in interface ReportingInitializationContext
NodeTypeProvider
which can be used to detect the node
type of this NiFi instance.public String getKerberosServicePrincipal()
KerberosContext
getKerberosServicePrincipal
in interface KerberosContext
public File getKerberosServiceKeytab()
KerberosContext
getKerberosServiceKeytab
in interface KerberosContext
public File getKerberosConfigurationFile()
KerberosContext
getKerberosConfigurationFile
in interface KerberosContext
Copyright © 2019 Apache NiFi Project. All rights reserved.