Class AbstractAzureCosmosDBProcessor

java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.processor.AbstractSessionFactoryProcessor
org.apache.nifi.processor.AbstractProcessor
org.apache.nifi.processors.azure.cosmos.document.AbstractAzureCosmosDBProcessor
All Implemented Interfaces:
org.apache.nifi.components.ConfigurableComponent, org.apache.nifi.processor.Processor
Direct Known Subclasses:
PutAzureCosmosDBRecord

public abstract class AbstractAzureCosmosDBProcessor extends org.apache.nifi.processor.AbstractProcessor
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) static final org.apache.nifi.components.PropertyDescriptor
     
     
    private com.azure.cosmos.CosmosContainer
     
    (package private) static final org.apache.nifi.components.PropertyDescriptor
     
    private com.azure.cosmos.CosmosClient
     
    (package private) static final org.apache.nifi.components.PropertyDescriptor
     
    (package 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.processor.Relationship
     
    (package private) static final org.apache.nifi.processor.Relationship
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    createCosmosClient(String uri, String accessKey, com.azure.cosmos.ConsistencyLevel consistencyLevel)
     
    protected Collection<org.apache.nifi.components.ValidationResult>
    customValidate(org.apache.nifi.components.ValidationContext context)
     
    protected abstract void
    doPostActionOnSchedule(org.apache.nifi.processor.ProcessContext context)
     
    protected String
    getAccessKey(org.apache.nifi.processor.ProcessContext context)
     
     
    protected String
    getConsistencyLevel(org.apache.nifi.processor.ProcessContext context)
     
    protected com.azure.cosmos.CosmosContainer
     
    protected com.azure.cosmos.CosmosClient
     
    protected void
    getCosmosDocumentContainer(org.apache.nifi.processor.ProcessContext context)
     
    protected String
    getURI(org.apache.nifi.processor.ProcessContext context)
     
    void
    onScheduled(org.apache.nifi.processor.ProcessContext context)
     
    final void
     
    protected void
     
    protected void
    setContainer(com.azure.cosmos.CosmosContainer container)
     
    protected void
    setCosmosClient(com.azure.cosmos.CosmosClient cosmosClient)
     

    Methods inherited from class org.apache.nifi.processor.AbstractProcessor

    onTrigger, onTrigger

    Methods inherited from class org.apache.nifi.processor.AbstractSessionFactoryProcessor

    getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, getRelationships, init, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTrue

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

    equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, getSupportedPropertyDescriptors, hashCode, onPropertyModified, 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

    getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate

    Methods inherited from interface org.apache.nifi.processor.Processor

    isStateful, migrateProperties, migrateRelationships
  • Field Details

    • REL_SUCCESS

      static final org.apache.nifi.processor.Relationship REL_SUCCESS
    • REL_FAILURE

      static final org.apache.nifi.processor.Relationship REL_FAILURE
    • CONNECTION_SERVICE

      static final org.apache.nifi.components.PropertyDescriptor CONNECTION_SERVICE
    • DATABASE_NAME

      static final org.apache.nifi.components.PropertyDescriptor DATABASE_NAME
    • CONTAINER_ID

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

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

      static final List<org.apache.nifi.components.PropertyDescriptor> descriptors
    • cosmosClient

      private com.azure.cosmos.CosmosClient cosmosClient
    • container

      private com.azure.cosmos.CosmosContainer container
    • connectionService

      private AzureCosmosDBConnectionService connectionService
  • Constructor Details

    • AbstractAzureCosmosDBProcessor

      public AbstractAzureCosmosDBProcessor()
  • Method Details

    • onScheduled

      @OnScheduled public void onScheduled(org.apache.nifi.processor.ProcessContext context) throws com.azure.cosmos.CosmosException
      Throws:
      com.azure.cosmos.CosmosException
    • createCosmosClient

      protected void createCosmosClient(String uri, String accessKey, com.azure.cosmos.ConsistencyLevel consistencyLevel)
    • doPostActionOnSchedule

      protected abstract void doPostActionOnSchedule(org.apache.nifi.processor.ProcessContext context)
    • getCosmosDocumentContainer

      protected void getCosmosDocumentContainer(org.apache.nifi.processor.ProcessContext context) throws com.azure.cosmos.CosmosException
      Throws:
      com.azure.cosmos.CosmosException
    • onStopped

      @OnStopped public final void onStopped()
    • getURI

      protected String getURI(org.apache.nifi.processor.ProcessContext context)
    • getAccessKey

      protected String getAccessKey(org.apache.nifi.processor.ProcessContext context)
    • getConsistencyLevel

      protected String getConsistencyLevel(org.apache.nifi.processor.ProcessContext context)
    • customValidate

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

      protected com.azure.cosmos.CosmosClient getCosmosClient()
    • setCosmosClient

      protected void setCosmosClient(com.azure.cosmos.CosmosClient cosmosClient)
    • getContainer

      protected com.azure.cosmos.CosmosContainer getContainer()
    • setContainer

      protected void setContainer(com.azure.cosmos.CosmosContainer container)
    • getConnectionService

      protected AzureCosmosDBConnectionService getConnectionService()
    • setConnectionService

      protected void setConnectionService(AzureCosmosDBConnectionService connectionService)