Class DocumentationReportingInitializationContext
java.lang.Object
org.apache.nifi.documentation.init.DocumentationReportingInitializationContext
- All Implemented Interfaces:
KerberosContext
,ReportingInitializationContext
public class DocumentationReportingInitializationContext
extends Object
implements ReportingInitializationContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ComponentLog
private final String
private final String
private final NodeTypeProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe Kerberos configuration file (typically krb5.conf) that will be used by this JVM during all Kerberos operations.The File instance for the Kerberos service keytab.The Kerberos service principal used by NiFi to communicate with the KDC in order to obtain tickets on behalf of NiFi.getName()
long
getSchedulingPeriod
(TimeUnit timeUnit) Returns the amount of time, in the givenTimeUnit
that will elapsed between the return of one execution of theReportingTask
'sonTrigger
method and the time at which the method is invoked again.
-
Field Details
-
id
-
componentLog
-
nodeTypeProvider
-
name
- See Also:
-
-
Constructor Details
-
DocumentationReportingInitializationContext
public DocumentationReportingInitializationContext()
-
-
Method Details
-
getIdentifier
- Specified by:
getIdentifier
in interfaceReportingInitializationContext
- Returns:
- the identifier for this ReportingTask
-
getName
- Specified by:
getName
in interfaceReportingInitializationContext
- Returns:
- the configured name for this ReportingTask
-
getSchedulingPeriod
Description copied from interface:ReportingInitializationContext
Returns the amount of time, in the givenTimeUnit
that will elapsed between the return of one execution of theReportingTask
'sonTrigger
method and the time at which the method is invoked again. This method will return-1L
if the Scheduling Strategy is not set toSchedulingStrategy.TIMER_DRIVEN
- Specified by:
getSchedulingPeriod
in interfaceReportingInitializationContext
- Parameters:
timeUnit
- unit of time for scheduling- Returns:
- period of time
-
getControllerServiceLookup
- Specified by:
getControllerServiceLookup
in interfaceReportingInitializationContext
- Returns:
- the
ControllerServiceLookup
which can be used to obtain Controller Services
-
getSchedulingPeriod
- Specified by:
getSchedulingPeriod
in interfaceReportingInitializationContext
- Returns:
- a String representation of the scheduling period
-
getSchedulingStrategy
- Specified by:
getSchedulingStrategy
in interfaceReportingInitializationContext
- Returns:
- the
SchedulingStrategy
that is used to trigger the task to run
-
getLogger
- Specified by:
getLogger
in interfaceReportingInitializationContext
- Returns:
- a logger that can be used to log important events in a standard way and generate bulletins when appropriate
-
getNodeTypeProvider
- Specified by:
getNodeTypeProvider
in interfaceReportingInitializationContext
- Returns:
- the
NodeTypeProvider
which can be used to detect the node type of this NiFi instance.
-
getKerberosServicePrincipal
Description copied from interface:KerberosContext
The Kerberos service principal used by NiFi to communicate with the KDC in order to obtain tickets on behalf of NiFi. Typically of the form NIFI/fully.qualified.domain@REALM.- Specified by:
getKerberosServicePrincipal
in interfaceKerberosContext
- Returns:
- the principal, or null if this NiFi instance is not configured with a NiFi Kerberos service principal
-
getKerberosServiceKeytab
Description copied from interface:KerberosContext
The File instance for the Kerberos service keytab. The service principal and service keytab will be used to communicate with the KDC to obtain tickets on behalf of NiFi.- Specified by:
getKerberosServiceKeytab
in interfaceKerberosContext
- Returns:
- the File instance of the service keytab, or null if this NiFi instance is not configured with a NiFi Kerberos service keytab
-
getKerberosConfigurationFile
Description copied from interface:KerberosContext
The Kerberos configuration file (typically krb5.conf) that will be used by this JVM during all Kerberos operations.- Specified by:
getKerberosConfigurationFile
in interfaceKerberosContext
- Returns:
- the File instance for the Kerberos configuration file, or null if this NiFi instance is not configured with a Kerberos configuration file
-