Search in sources :

Example 6 with QueueLoader

use of com.axway.ats.agent.core.threading.QueueLoader in project ats-framework by Axway.

the class MultiThreadedActionHandler method startQueue.

/**
     * @param queueName queue name
     * @throws NoSuchLoadQueueException
     * @throws ActionExecutionException
     * @throws ActionTaskLoaderException
     */
public void startQueue(String queueName) throws NoSuchLoadQueueException, ActionExecutionException, ActionTaskLoaderException {
    //first cleanup the queues
    cleanupFinishedQueues();
    QueueLoader queueLoader = queueLoadersMap.get(queueName);
    if (queueLoader == null) {
        throw new NoSuchLoadQueueException(queueName);
    }
    log.info("Starting queue '" + queueName + "'");
    //start the queue
    queueLoader.start();
}
Also used : QueueLoader(com.axway.ats.agent.core.threading.QueueLoader) AbstractQueueLoader(com.axway.ats.agent.core.threading.AbstractQueueLoader) NoSuchLoadQueueException(com.axway.ats.agent.core.threading.exceptions.NoSuchLoadQueueException)

Aggregations

AbstractQueueLoader (com.axway.ats.agent.core.threading.AbstractQueueLoader)6 QueueLoader (com.axway.ats.agent.core.threading.QueueLoader)6 NoSuchLoadQueueException (com.axway.ats.agent.core.threading.exceptions.NoSuchLoadQueueException)2 ParameterDataProvider (com.axway.ats.agent.core.threading.data.ParameterDataProvider)1 ParameterDataConfig (com.axway.ats.agent.core.threading.data.config.ParameterDataConfig)1 LoadQueueAlreadyExistsException (com.axway.ats.agent.core.threading.exceptions.LoadQueueAlreadyExistsException)1 ArrayList (java.util.ArrayList)1 HashSet (java.util.HashSet)1