@Tags(value={"status","metrics","site","site to site"}) @CapabilityDescription(value="Publishes same metrics as the Ambari Reporting task using the Site To Site protocol.") public class SiteToSiteMetricsReportingTask extends AbstractSiteToSiteReportingTask
| Modifier and Type | Field and Description |
|---|---|
(package private) static AllowableValue |
AMBARI_FORMAT |
(package private) static PropertyDescriptor |
APPLICATION_ID |
(package private) static PropertyDescriptor |
FORMAT |
(package private) static PropertyDescriptor |
HOSTNAME |
private MetricsService |
metricsService |
(package private) static AllowableValue |
RECORD_FORMAT |
ALLOW_NULL_VALUES, DESTINATION_URL_PATH, LAST_EVENT_ID_KEY, RECORD_WRITER, recordSchema, siteToSiteClient, TIMESTAMP_FORMAT| Constructor and Description |
|---|
SiteToSiteMetricsReportingTask() |
| Modifier and Type | Method and Description |
|---|---|
protected Collection<ValidationResult> |
customValidate(ValidationContext validationContext) |
protected List<PropertyDescriptor> |
getSupportedPropertyDescriptors() |
void |
onTrigger(ReportingContext context) |
addField, addField, addField, addField, getClient, getData, sendData, setup, shutdown, verifygetControllerServiceLookup, getIdentifier, getLogger, getName, getNodeTypeProvider, getSchedulingPeriod, init, initialize, setComponentInfoequals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, toString, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitisStatefulgetPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validatestatic final AllowableValue AMBARI_FORMAT
static final AllowableValue RECORD_FORMAT
static final PropertyDescriptor APPLICATION_ID
static final PropertyDescriptor HOSTNAME
static final PropertyDescriptor FORMAT
private final MetricsService metricsService
public SiteToSiteMetricsReportingTask()
throws IOException
IOExceptionprotected List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors in class AbstractSiteToSiteReportingTaskprotected Collection<ValidationResult> customValidate(ValidationContext validationContext)
customValidate in class AbstractConfigurableComponentpublic void onTrigger(ReportingContext context)
Copyright © 2024 Apache NiFi Project. All rights reserved.