Search in sources :

Example 1 with AzureStorageQueueSource

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

the class AzureStorageBaseQueueTestIT method createBoundedReader.

@Override
@SuppressWarnings("unchecked")
public <T> BoundedReader<T> createBoundedReader(ComponentProperties props) {
    AzureStorageQueueSource source = new AzureStorageQueueSource();
    source.initialize(null, props);
    source.validate(null);
    return source.createReader(null);
}
Also used : AzureStorageQueueSource(org.talend.components.azurestorage.queue.runtime.AzureStorageQueueSource)

Example 2 with AzureStorageQueueSource

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

the class AzureStorageQueueInputLoopReaderTestIT method setupBeforeClass.

@BeforeClass
public static void setupBeforeClass() throws Exception {
    properties = new TAzureStorageQueueInputLoopProperties("test");
    properties.setupProperties();
    source = new AzureStorageQueueSource();
    source.initialize(null, properties);
    reader = (AzureStorageQueueInputLoopReader) source.createReader(null);
}
Also used : TAzureStorageQueueInputLoopProperties(org.talend.components.azurestorage.queue.tazurestoragequeueinputloop.TAzureStorageQueueInputLoopProperties) AzureStorageQueueSource(org.talend.components.azurestorage.queue.runtime.AzureStorageQueueSource) BeforeClass(org.junit.BeforeClass)

Example 3 with AzureStorageQueueSource

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

the class AzureStorageBaseQueueTestIT method createTestQueue.

@BeforeClass
public static void createTestQueue() throws Throwable {
    TAzureStorageQueueCreateProperties properties = new TAzureStorageQueueCreateProperties("tests");
    properties = (TAzureStorageQueueCreateProperties) setupConnectionProperties((AzureStorageProvideConnectionProperties) properties);
    properties.setupProperties();
    properties.queueName.setValue(TEST_QUEUE_NAME);
    AzureStorageQueueSource source = new AzureStorageQueueSource();
    source.initialize(null, properties);
    queueClient = source.getStorageQueueClient(null);
    queue = source.getCloudQueue(null, TEST_QUEUE_NAME);
    queue.createIfNotExists();
}
Also used : TAzureStorageQueueCreateProperties(org.talend.components.azurestorage.queue.tazurestoragequeuecreate.TAzureStorageQueueCreateProperties) AzureStorageQueueSource(org.talend.components.azurestorage.queue.runtime.AzureStorageQueueSource) BeforeClass(org.junit.BeforeClass)

Aggregations

AzureStorageQueueSource (org.talend.components.azurestorage.queue.runtime.AzureStorageQueueSource)3 BeforeClass (org.junit.BeforeClass)2 TAzureStorageQueueCreateProperties (org.talend.components.azurestorage.queue.tazurestoragequeuecreate.TAzureStorageQueueCreateProperties)1 TAzureStorageQueueInputLoopProperties (org.talend.components.azurestorage.queue.tazurestoragequeueinputloop.TAzureStorageQueueInputLoopProperties)1