Class AzureCosmosDBClientService

java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.controller.AbstractControllerService
org.apache.nifi.services.azure.cosmos.document.AzureCosmosDBClientService
All Implemented Interfaces:
org.apache.nifi.components.ConfigurableComponent, org.apache.nifi.controller.ControllerService, AzureCosmosDBConnectionService

@Tags({"azure","cosmos","document","service"}) @CapabilityDescription("Provides a controller service that configures a connection to Cosmos DB (Core SQL API) and provides access to that connection to other Cosmos DB-related components.") public class AzureCosmosDBClientService extends org.apache.nifi.controller.AbstractControllerService implements AzureCosmosDBConnectionService
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private String
     
    private String
     
    private com.azure.cosmos.CosmosClient
     
    (package private) static List<org.apache.nifi.components.PropertyDescriptor>
     
    private String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    createCosmosClient(String uri, String accessKey, com.azure.cosmos.ConsistencyLevel clevel)
     
    protected Collection<org.apache.nifi.components.ValidationResult>
    customValidate(org.apache.nifi.components.ValidationContext validationContext)
     
     
     
    com.azure.cosmos.CosmosClient
     
    protected List<org.apache.nifi.components.PropertyDescriptor>
     
     
    void
    onEnabled(org.apache.nifi.controller.ConfigurationContext context)
     
    final void
     
    void
    setCosmosClient(com.azure.cosmos.CosmosClient client)
     

    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

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

    • uri

      private String uri
    • accessKey

      private String accessKey
    • consistencyLevel

      private String consistencyLevel
    • cosmosClient

      private com.azure.cosmos.CosmosClient cosmosClient
    • descriptors

      static List<org.apache.nifi.components.PropertyDescriptor> descriptors
  • Constructor Details

    • AzureCosmosDBClientService

      public AzureCosmosDBClientService()
  • Method Details

    • onEnabled

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

      @OnStopped public final void onStopped()
    • createCosmosClient

      protected void createCosmosClient(String uri, String accessKey, com.azure.cosmos.ConsistencyLevel clevel)
    • getSupportedPropertyDescriptors

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

      public String getURI()
      Specified by:
      getURI in interface AzureCosmosDBConnectionService
    • getAccessKey

      public String getAccessKey()
      Specified by:
      getAccessKey in interface AzureCosmosDBConnectionService
    • getConsistencyLevel

      public String getConsistencyLevel()
      Specified by:
      getConsistencyLevel in interface AzureCosmosDBConnectionService
    • getCosmosClient

      public com.azure.cosmos.CosmosClient getCosmosClient()
      Specified by:
      getCosmosClient in interface AzureCosmosDBConnectionService
    • setCosmosClient

      public void setCosmosClient(com.azure.cosmos.CosmosClient client)
    • customValidate

      protected Collection<org.apache.nifi.components.ValidationResult> customValidate(org.apache.nifi.components.ValidationContext validationContext)
      Overrides:
      customValidate in class org.apache.nifi.components.AbstractConfigurableComponent