Class AmazonGlueSchemaRegistry

java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.controller.AbstractControllerService
org.apache.nifi.aws.schemaregistry.AmazonGlueSchemaRegistry
All Implemented Interfaces:
org.apache.nifi.components.ConfigurableComponent, org.apache.nifi.controller.ControllerService, SchemaRegistry

@Tags({"schema","registry","aws","avro","glue"}) @CapabilityDescription("Provides a Schema Registry that interacts with the AWS Glue Schema Registry so that those Schemas that are stored in the Glue Schema Registry can be used in NiFi. When a Schema is looked up by name by this registry, it will find a Schema in the Glue Schema Registry with their names.") public class AmazonGlueSchemaRegistry extends org.apache.nifi.controller.AbstractControllerService implements SchemaRegistry
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    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
     
     
    (package private) static final org.apache.nifi.components.PropertyDescriptor
     
    private static final List<org.apache.nifi.components.PropertyDescriptor>
     
    private static final org.apache.nifi.components.PropertyDescriptor
     
    private static final ProxySpec[]
     
    static final org.apache.nifi.components.PropertyDescriptor
     
    (package private) static final org.apache.nifi.components.PropertyDescriptor
     
    private static final Set<SchemaField>
     
    static final org.apache.nifi.components.PropertyDescriptor
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private static org.apache.nifi.components.AllowableValue
    createAllowableValue(software.amazon.awssdk.regions.Region region)
     
    private software.amazon.awssdk.http.SdkHttpClient
    createSdkHttpClient(org.apache.nifi.controller.ConfigurationContext context)
     
    private static org.apache.nifi.components.AllowableValue[]
     
     
    protected List<org.apache.nifi.components.PropertyDescriptor>
     
    void
    migrateProperties(org.apache.nifi.migration.PropertyConfiguration propertyConfiguration)
     
    void
    onEnabled(org.apache.nifi.controller.ConfigurationContext context)
     
    retrieveSchema(SchemaIdentifier schemaIdentifier)
     

    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
  • Field Details

    • schemaFields

      private static final Set<SchemaField> schemaFields
    • SCHEMA_REGISTRY_NAME

      static final org.apache.nifi.components.PropertyDescriptor SCHEMA_REGISTRY_NAME
    • REGION

      public static final org.apache.nifi.components.PropertyDescriptor REGION
    • CACHE_SIZE

      static final org.apache.nifi.components.PropertyDescriptor CACHE_SIZE
    • CACHE_EXPIRATION

      static final org.apache.nifi.components.PropertyDescriptor CACHE_EXPIRATION
    • COMMUNICATIONS_TIMEOUT

      static final org.apache.nifi.components.PropertyDescriptor COMMUNICATIONS_TIMEOUT
    • AWS_CREDENTIALS_PROVIDER_SERVICE

      public static final org.apache.nifi.components.PropertyDescriptor AWS_CREDENTIALS_PROVIDER_SERVICE
    • SSL_CONTEXT_SERVICE

      public static final org.apache.nifi.components.PropertyDescriptor SSL_CONTEXT_SERVICE
    • PROXY_SPECS

      private static final ProxySpec[] PROXY_SPECS
    • PROXY_CONFIGURATION_SERVICE

      private static final org.apache.nifi.components.PropertyDescriptor PROXY_CONFIGURATION_SERVICE
    • PROPERTY_DESCRIPTORS

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

      private volatile SchemaRegistryClient client
  • Constructor Details

    • AmazonGlueSchemaRegistry

      public AmazonGlueSchemaRegistry()
  • Method Details

    • migrateProperties

      public void migrateProperties(org.apache.nifi.migration.PropertyConfiguration propertyConfiguration)
      Specified by:
      migrateProperties in interface org.apache.nifi.controller.ControllerService
    • getSupportedPropertyDescriptors

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

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

      public RecordSchema retrieveSchema(SchemaIdentifier schemaIdentifier) throws IOException, SchemaNotFoundException
      Specified by:
      retrieveSchema in interface SchemaRegistry
      Throws:
      IOException
      SchemaNotFoundException
    • getSuppliedSchemaFields

      public Set<SchemaField> getSuppliedSchemaFields()
      Specified by:
      getSuppliedSchemaFields in interface SchemaRegistry
    • createAllowableValue

      private static org.apache.nifi.components.AllowableValue createAllowableValue(software.amazon.awssdk.regions.Region region)
    • getAvailableRegions

      private static org.apache.nifi.components.AllowableValue[] getAvailableRegions()
    • createSdkHttpClient

      private software.amazon.awssdk.http.SdkHttpClient createSdkHttpClient(org.apache.nifi.controller.ConfigurationContext context)