Search in sources :

Example 6 with AzureStorageBlobService

use of org.talend.components.azurestorage.blob.AzureStorageBlobService in project components by Talend.

the class AzureStorageDeleteRuntime method initialize.

@Override
public ValidationResult initialize(RuntimeContainer runtimeContainer, ComponentProperties properties) {
    ValidationResult validationResult = super.initialize(runtimeContainer, properties);
    if (validationResult.getStatus() == ValidationResult.Result.ERROR) {
        return validationResult;
    }
    TAzureStorageDeleteProperties componentProperties = (TAzureStorageDeleteProperties) properties;
    remoteBlobsTable = componentProperties.remoteBlobs;
    this.dieOnError = componentProperties.dieOnError.getValue();
    this.azureStorageBlobService = new AzureStorageBlobService(getAzureConnection(runtimeContainer));
    return componentProperties.remoteBlobs.getValidationResult();
}
Also used : ValidationResult(org.talend.daikon.properties.ValidationResult) TAzureStorageDeleteProperties(org.talend.components.azurestorage.blob.tazurestoragedelete.TAzureStorageDeleteProperties) AzureStorageBlobService(org.talend.components.azurestorage.blob.AzureStorageBlobService)

Aggregations

AzureStorageBlobService (org.talend.components.azurestorage.blob.AzureStorageBlobService)6 ValidationResult (org.talend.daikon.properties.ValidationResult)6 File (java.io.File)1 TAzureStorageContainerCreateProperties (org.talend.components.azurestorage.blob.tazurestoragecontainercreate.TAzureStorageContainerCreateProperties)1 TAzureStorageContainerDeleteProperties (org.talend.components.azurestorage.blob.tazurestoragecontainerdelete.TAzureStorageContainerDeleteProperties)1 TAzureStorageContainerExistProperties (org.talend.components.azurestorage.blob.tazurestoragecontainerexist.TAzureStorageContainerExistProperties)1 TAzureStorageDeleteProperties (org.talend.components.azurestorage.blob.tazurestoragedelete.TAzureStorageDeleteProperties)1 TAzureStorageGetProperties (org.talend.components.azurestorage.blob.tazurestorageget.TAzureStorageGetProperties)1 TAzureStoragePutProperties (org.talend.components.azurestorage.blob.tazurestorageput.TAzureStoragePutProperties)1