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
FieldsModifier and TypeFieldDescription(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.AllowableValueprivate com.azure.messaging.eventhubs.EventHubProducerClientprivate 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.PropertyDescriptorprivate 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.PropertyDescriptorprivate RecordSetWriterFactoryFields inherited from interface org.apache.nifi.shared.azure.eventhubs.AzureEventHubComponent
PROXY_CONFIGURATION_SERVICE, PROXY_SPECS, TRANSPORT_TYPEFields inherited from interface org.apache.nifi.record.sink.RecordSinkService
RECORD_WRITER_FACTORY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.azure.messaging.eventhubs.EventHubProducerClientcreateEventHubClient(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> voidvoidonEnabled(org.apache.nifi.controller.ConfigurationContext context) Methods inherited from class org.apache.nifi.controller.AbstractControllerService
abstractClearConfigContext, abstractStoreConfigContext, disabled, enabled, getConfigurationContext, getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, getProperty, getStateManager, init, initialize, isEnabledMethods inherited from class org.apache.nifi.components.AbstractConfigurableComponent
customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, toString, validateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.nifi.components.ConfigurableComponent
getIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateMethods inherited from interface org.apache.nifi.controller.ControllerService
initialize, isStateful, migratePropertiesMethods 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
-
context
private volatile org.apache.nifi.controller.ConfigurationContext context -
writerFactory
-
client
private com.azure.messaging.eventhubs.EventHubProducerClient client
-
-
Constructor Details
-
AzureEventHubRecordSink
public AzureEventHubRecordSink()
-
-
Method Details
-
getSupportedPropertyDescriptors
- Overrides:
getSupportedPropertyDescriptorsin classorg.apache.nifi.components.AbstractConfigurableComponent
-
createEventHubClient
-
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:
sendDatain interfaceRecordSinkService- Throws:
IOException
-