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
FieldsModifier and TypeFieldDescription(package private) static final org.apache.nifi.components.PropertyDescriptorprivate AzureCosmosDBConnectionServiceprivate com.azure.cosmos.CosmosContainer(package private) static final org.apache.nifi.components.PropertyDescriptorprivate 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateCosmosClient(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 voiddoPostActionOnSchedule(org.apache.nifi.processor.ProcessContext context) protected StringgetAccessKey(org.apache.nifi.processor.ProcessContext context) protected AzureCosmosDBConnectionServiceprotected StringgetConsistencyLevel(org.apache.nifi.processor.ProcessContext context) protected com.azure.cosmos.CosmosContainerprotected com.azure.cosmos.CosmosClientprotected voidgetCosmosDocumentContainer(org.apache.nifi.processor.ProcessContext context) protected StringgetURI(org.apache.nifi.processor.ProcessContext context) voidonScheduled(org.apache.nifi.processor.ProcessContext context) final voidprotected voidsetConnectionService(AzureCosmosDBConnectionService connectionService) protected voidsetContainer(com.azure.cosmos.CosmosContainer container) protected voidsetCosmosClient(com.azure.cosmos.CosmosClient cosmosClient) Methods inherited from class org.apache.nifi.processor.AbstractProcessor
onTrigger, onTriggerMethods inherited from class org.apache.nifi.processor.AbstractSessionFactoryProcessor
getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, getRelationships, init, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTrueMethods inherited from class org.apache.nifi.components.AbstractConfigurableComponent
equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, getSupportedPropertyDescriptors, hashCode, onPropertyModified, validateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.nifi.components.ConfigurableComponent
getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateMethods 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
-
cosmosClient
private com.azure.cosmos.CosmosClient cosmosClient -
container
private com.azure.cosmos.CosmosContainer container -
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
-
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
-
getAccessKey
-
getConsistencyLevel
-
customValidate
protected Collection<org.apache.nifi.components.ValidationResult> customValidate(org.apache.nifi.components.ValidationContext context) - Overrides:
customValidatein classorg.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
-
setConnectionService
-