Search in sources :

Example 1 with AzureStorageQueueService

use of org.talend.components.azurestorage.queue.AzureStorageQueueService in project components by Talend.

the class AzureStorageQueueDeleteRuntime method initialize.

@Override
public ValidationResult initialize(RuntimeContainer runtimeContainer, ComponentProperties properties) {
    ValidationResult vr = super.initialize(runtimeContainer, properties);
    if (!ValidationResult.OK.getStatus().equals(vr.getStatus())) {
        return vr;
    }
    this.dieOnError = ((TAzureStorageQueueDeleteProperties) properties).dieOnError.getValue();
    queueService = new AzureStorageQueueService(getAzureConnection(runtimeContainer));
    return ValidationResult.OK;
}
Also used : AzureStorageQueueService(org.talend.components.azurestorage.queue.AzureStorageQueueService) TAzureStorageQueueDeleteProperties(org.talend.components.azurestorage.queue.tazurestoragequeuedelete.TAzureStorageQueueDeleteProperties) ValidationResult(org.talend.daikon.properties.ValidationResult)

Example 2 with AzureStorageQueueService

use of org.talend.components.azurestorage.queue.AzureStorageQueueService in project components by Talend.

the class AzureStorageQueuePurgeRuntime method initialize.

@Override
public ValidationResult initialize(RuntimeContainer runtimeContainer, ComponentProperties properties) {
    ValidationResult vr = super.initialize(runtimeContainer, properties);
    if (!ValidationResult.OK.getStatus().equals(vr.getStatus())) {
        return vr;
    }
    this.dieOnError = ((TAzureStorageQueuePurgeProperties) properties).dieOnError.getValue();
    this.queueService = new AzureStorageQueueService(getAzureConnection(runtimeContainer));
    return ValidationResult.OK;
}
Also used : AzureStorageQueueService(org.talend.components.azurestorage.queue.AzureStorageQueueService) ValidationResult(org.talend.daikon.properties.ValidationResult) TAzureStorageQueuePurgeProperties(org.talend.components.azurestorage.queue.tazurestoragequeuepurge.TAzureStorageQueuePurgeProperties)

Example 3 with AzureStorageQueueService

use of org.talend.components.azurestorage.queue.AzureStorageQueueService in project components by Talend.

the class AzureStorageQueueCreateRuntime method initialize.

@Override
public ValidationResult initialize(RuntimeContainer runtimeContainer, ComponentProperties properties) {
    ValidationResult vr = super.initialize(runtimeContainer, properties);
    if (!ValidationResult.OK.getStatus().equals(vr.getStatus())) {
        return vr;
    }
    this.dieOnError = ((TAzureStorageQueueCreateProperties) properties).dieOnError.getValue();
    this.queueService = new AzureStorageQueueService(getAzureConnection(runtimeContainer));
    return ValidationResult.OK;
}
Also used : AzureStorageQueueService(org.talend.components.azurestorage.queue.AzureStorageQueueService) TAzureStorageQueueCreateProperties(org.talend.components.azurestorage.queue.tazurestoragequeuecreate.TAzureStorageQueueCreateProperties) ValidationResult(org.talend.daikon.properties.ValidationResult)

Aggregations

AzureStorageQueueService (org.talend.components.azurestorage.queue.AzureStorageQueueService)3 ValidationResult (org.talend.daikon.properties.ValidationResult)3 TAzureStorageQueueCreateProperties (org.talend.components.azurestorage.queue.tazurestoragequeuecreate.TAzureStorageQueueCreateProperties)1 TAzureStorageQueueDeleteProperties (org.talend.components.azurestorage.queue.tazurestoragequeuedelete.TAzureStorageQueueDeleteProperties)1 TAzureStorageQueuePurgeProperties (org.talend.components.azurestorage.queue.tazurestoragequeuepurge.TAzureStorageQueuePurgeProperties)1