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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateCosmosClient(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.CosmosClientprotected List<org.apache.nifi.components.PropertyDescriptor> getURI()voidonEnabled(org.apache.nifi.controller.ConfigurationContext context) final voidvoidsetCosmosClient(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, isEnabledMethods inherited from class org.apache.nifi.components.AbstractConfigurableComponent
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, migrateProperties
-
Field Details
-
uri
-
accessKey
-
consistencyLevel
-
cosmosClient
private com.azure.cosmos.CosmosClient cosmosClient -
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
-
getSupportedPropertyDescriptors
- Overrides:
getSupportedPropertyDescriptorsin classorg.apache.nifi.components.AbstractConfigurableComponent
-
getURI
- Specified by:
getURIin interfaceAzureCosmosDBConnectionService
-
getAccessKey
- Specified by:
getAccessKeyin interfaceAzureCosmosDBConnectionService
-
getConsistencyLevel
- Specified by:
getConsistencyLevelin interfaceAzureCosmosDBConnectionService
-
getCosmosClient
public com.azure.cosmos.CosmosClient getCosmosClient()- Specified by:
getCosmosClientin interfaceAzureCosmosDBConnectionService
-
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:
customValidatein classorg.apache.nifi.components.AbstractConfigurableComponent
-