@Tags(value={"status","connection","processor","jvm","metrics","history","bulletin","prediction","process","group","provenance","record","sql"}) @CapabilityDescription(value="Publishes NiFi status information based on the results of a user-specified SQL query. The query may make use of the CONNECTION_STATUS, PROCESSOR_STATUS, BULLETINS, PROCESS_GROUP_STATUS, JVM_METRICS, CONNECTION_STATUS_PREDICTIONS, or PROVENANCE tables, and can use any functions or capabilities provided by Apache Calcite. Note that the CONNECTION_STATUS_PREDICTIONS table is not available for querying if analytics are not enabled (see the nifi.analytics.predict.enabled property in nifi.properties). Attempting a query on the table when the capability is disabled will cause an error.") @Stateful(scopes=LOCAL, description="Stores the Reporting Task\'s last execution time so that on restart the task knows where it left off.") public class QueryNiFiReportingTask extends AbstractReportingTask implements QueryTimeAware
| Modifier and Type | Field and Description |
|---|---|
private MetricsQueryService |
metricsQueryService |
private List<PropertyDescriptor> |
properties |
private RecordSinkService |
recordSinkService |
| Constructor and Description |
|---|
QueryNiFiReportingTask() |
| Modifier and Type | Method and Description |
|---|---|
protected List<PropertyDescriptor> |
getSupportedPropertyDescriptors() |
protected void |
init(ReportingInitializationContext config) |
void |
onTrigger(ReportingContext context) |
void |
setup(ConfigurationContext context) |
getControllerServiceLookup, getIdentifier, getLogger, getName, getNodeTypeProvider, getSchedulingPeriod, initialize, setComponentInfocustomValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, toString, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetCurrentTime, processStartAndEndTimesisStatefulgetPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateprivate List<PropertyDescriptor> properties
private volatile RecordSinkService recordSinkService
private MetricsQueryService metricsQueryService
protected void init(ReportingInitializationContext config)
init in class AbstractReportingTaskprotected List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors in class AbstractConfigurableComponent@OnScheduled public void setup(ConfigurationContext context)
public void onTrigger(ReportingContext context)
onTrigger in interface ReportingTaskCopyright © 2022 Apache NiFi Project. All rights reserved.