Package org.apache.synapse.task

Examples of org.apache.synapse.task.TaskDescription


    public void deleteTaskDescription(String taskName) {
        if (log.isDebugEnabled()) {
            log.debug("Deleting the task " + taskName);
        }
        try {
            TaskDescription taskDescription = new TaskDescription();
            taskDescription.setName(taskName);
            schedulingManager.deleteTaskDescription(taskDescription, getConfigContext());
        } catch (Exception e) {
            log.error("Cannot delete the task " + taskName, e);
        }
    }
View Full Code Here


        List<TaskDescription> taskDescriptions = new ArrayList<TaskDescription>();
        Iterator<TaskDescription> iterator = schedulingManager.getAllTaskDescriptions(
                getConfigContext());

        while (iterator.hasNext()) {
            TaskDescription taskDescription = iterator.next();
            if (taskDescription != null) {
                taskDescriptions.add(taskDescription);
            }
        }
        if (log.isDebugEnabled()) {
View Full Code Here

     */
    private static TaskDescription validateAndCreate(
            OMElement taskElement) throws TaskManagementException {

        validateTaskElement(taskElement);
        TaskDescription taskDescription =
                TaskDescriptionFactory.createTaskDescription(taskElement, TASK_OM_NAMESPACE);
        validateTaskDescription(taskDescription);
        if (log.isDebugEnabled()) {
            log.debug("Task Description : " + taskDescription);
        }
View Full Code Here

TOP

Related Classes of org.apache.synapse.task.TaskDescription

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.