Class AzureEventHubRecordSink

java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.controller.AbstractControllerService
org.apache.nifi.services.azure.eventhub.AzureEventHubRecordSink
All Implemented Interfaces:
org.apache.nifi.components.ConfigurableComponent, org.apache.nifi.controller.ControllerService, RecordSinkService, AzureEventHubComponent

@Tags({"azure","record","sink"}) @CapabilityDescription("Format and send Records to Azure Event Hubs") public class AzureEventHubRecordSink extends org.apache.nifi.controller.AbstractControllerService implements RecordSinkService, AzureEventHubComponent
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) static final org.apache.nifi.components.PropertyDescriptor
     
    (package private) static final org.apache.nifi.components.AllowableValue
     
    (package private) static final org.apache.nifi.components.AllowableValue
     
    (package private) static final org.apache.nifi.components.AllowableValue
     
    (package private) static final org.apache.nifi.components.AllowableValue
     
    private com.azure.messaging.eventhubs.EventHubProducerClient
     
    private org.apache.nifi.controller.ConfigurationContext
     
    (package private) static final org.apache.nifi.components.PropertyDescriptor
     
    (package private) static final org.apache.nifi.components.PropertyDescriptor
     
    (package private) static final org.apache.nifi.components.PropertyDescriptor
     
    private static final List<org.apache.nifi.components.PropertyDescriptor>
     
    (package private) static final org.apache.nifi.components.PropertyDescriptor
     
    (package private) static final org.apache.nifi.components.PropertyDescriptor
     
    (package private) static final org.apache.nifi.components.PropertyDescriptor
     
     

    Fields inherited from interface org.apache.nifi.shared.azure.eventhubs.AzureEventHubComponent

    PROXY_CONFIGURATION_SERVICE, PROXY_SPECS, TRANSPORT_TYPE

    Fields inherited from interface org.apache.nifi.record.sink.RecordSinkService

    RECORD_WRITER_FACTORY
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected com.azure.messaging.eventhubs.EventHubProducerClient
    createEventHubClient(String namespace, String serviceBusEndpoint, String eventHubName, String policyName, String policyKey, AzureAuthenticationStrategy authenticationStrategy, com.azure.core.amqp.AmqpTransportType transportType)
     
    protected List<org.apache.nifi.components.PropertyDescriptor>
     
    void
     
    void
    onEnabled(org.apache.nifi.controller.ConfigurationContext context)
     
    sendData(RecordSet recordSet, Map<String,String> attributes, boolean sendZeroResults)
     

    Methods inherited from class org.apache.nifi.controller.AbstractControllerService

    abstractClearConfigContext, abstractStoreConfigContext, disabled, enabled, getConfigurationContext, getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, getProperty, getStateManager, init, initialize, isEnabled

    Methods inherited from class org.apache.nifi.components.AbstractConfigurableComponent

    customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, toString, validate

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.nifi.components.ConfigurableComponent

    getIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate

    Methods inherited from interface org.apache.nifi.controller.ControllerService

    initialize, isStateful, migrateProperties

    Methods inherited from interface org.apache.nifi.record.sink.RecordSinkService

    reset
  • Field Details

    • AZURE_ENDPOINT

      static final org.apache.nifi.components.AllowableValue AZURE_ENDPOINT
    • AZURE_CHINA_ENDPOINT

      static final org.apache.nifi.components.AllowableValue AZURE_CHINA_ENDPOINT
    • AZURE_GERMANY_ENDPOINT

      static final org.apache.nifi.components.AllowableValue AZURE_GERMANY_ENDPOINT
    • AZURE_US_GOV_ENDPOINT

      static final org.apache.nifi.components.AllowableValue AZURE_US_GOV_ENDPOINT
    • SERVICE_BUS_ENDPOINT

      static final org.apache.nifi.components.PropertyDescriptor SERVICE_BUS_ENDPOINT
    • EVENT_HUB_NAMESPACE

      static final org.apache.nifi.components.PropertyDescriptor EVENT_HUB_NAMESPACE
    • EVENT_HUB_NAME

      static final org.apache.nifi.components.PropertyDescriptor EVENT_HUB_NAME
    • AUTHENTICATION_STRATEGY

      static final org.apache.nifi.components.PropertyDescriptor AUTHENTICATION_STRATEGY
    • SHARED_ACCESS_POLICY

      static final org.apache.nifi.components.PropertyDescriptor SHARED_ACCESS_POLICY
    • SHARED_ACCESS_POLICY_KEY

      static final org.apache.nifi.components.PropertyDescriptor SHARED_ACCESS_POLICY_KEY
    • PARTITION_KEY

      static final org.apache.nifi.components.PropertyDescriptor PARTITION_KEY
    • PROPERTY_DESCRIPTORS

      private static final List<org.apache.nifi.components.PropertyDescriptor> PROPERTY_DESCRIPTORS
    • context

      private volatile org.apache.nifi.controller.ConfigurationContext context
    • writerFactory

      private RecordSetWriterFactory writerFactory
    • client

      private com.azure.messaging.eventhubs.EventHubProducerClient client
  • Constructor Details

    • AzureEventHubRecordSink

      public AzureEventHubRecordSink()
  • Method Details

    • getSupportedPropertyDescriptors

      protected List<org.apache.nifi.components.PropertyDescriptor> getSupportedPropertyDescriptors()
      Overrides:
      getSupportedPropertyDescriptors in class org.apache.nifi.components.AbstractConfigurableComponent
    • createEventHubClient

      protected com.azure.messaging.eventhubs.EventHubProducerClient createEventHubClient(String namespace, String serviceBusEndpoint, String eventHubName, String policyName, String policyKey, AzureAuthenticationStrategy authenticationStrategy, com.azure.core.amqp.AmqpTransportType transportType)
    • onEnabled

      @OnEnabled public void onEnabled(org.apache.nifi.controller.ConfigurationContext context)
    • onDisabled

      @OnDisabled public void onDisabled()
    • sendData

      public WriteResult sendData(RecordSet recordSet, Map<String,String> attributes, boolean sendZeroResults) throws IOException
      Specified by:
      sendData in interface RecordSinkService
      Throws:
      IOException