Package org.apache.synapse.task

Examples of org.apache.synapse.task.TaskDescriptionRepository


            * Carbon Scheduled Tasks Component is used.
            * Since the Scheduled Tasks Component itself does not initialize a
            * TaskDescriptionRepository instance,this code snippet is used to initialize a
            * the required instance manually.
            */
            TaskDescriptionRepository taskDescriptionRepository = (TaskDescriptionRepository)
                    configurationContext.getProperty(TaskManager.CARBON_TASK_REPOSITORY);
            if (taskDescriptionRepository == null) {
                taskDescriptionRepository = new TaskDescriptionRepository();
                configurationContext.setProperty(
                        TaskManager.CARBON_TASK_REPOSITORY, taskDescriptionRepository);
            }

            /*
 
View Full Code Here


        }

        /**
         * Initializing the Task Description Repository
         */
        TaskDescriptionRepository taskDescriptionRepository =
                (TaskDescriptionRepository) configurationContext.getProperty(
                        TaskSchedulerConstants.CARBON_TASK_REPOSITORY);
        if (taskDescriptionRepository == null) {
            taskDescriptionRepository = new TaskDescriptionRepository();
            configurationContext.setProperty(
                    TaskSchedulerConstants.CARBON_TASK_REPOSITORY, taskDescriptionRepository);
        }
    }
View Full Code Here

        } else if(!scheduler.isInitialized()) {
            scheduler.init(null);
        }

        if (configContext.getProperty(SystemHostObjectInitializer.CARBON_TASK_REPOSITORY) == null) {
            TaskDescriptionRepository repository = new TaskDescriptionRepository();
            configContext.setProperty(
                    SystemHostObjectInitializer.CARBON_TASK_REPOSITORY, repository);
        }
    }
View Full Code Here

            SynapseConfiguration newSynapseConfiguration = null;
            SynapseConfiguration oldSynapseConfiguration = getSynapseConfiguration();
            SynapseEnvironment oldSynapseEnvironment = getSynapseEnvironment();

            TaskDescriptionRepository repository = getSynapseEnvironment().getTaskManager().
                    getTaskDescriptionRepository();
            TaskScheduler taskScheduler = getSynapseEnvironment().getTaskManager().
                    getTaskScheduler();

            int loadLocation = 0;
View Full Code Here

        log.trace("Stopping active scheduled tasks");
        for (Startup startup : currentConfig.getStartups()) {
            startup.destroy();
        }
        TaskDescriptionRepository repository = currentEnvironment.getTaskManager()
                .getTaskDescriptionRepository();
        if (repository != null) {
            repository.clear();
        }
        currentEnvironment.getTaskManager().cleanup();

        for (SynapseEventSource eventSource : currentConfig.getEventSources()) {
            safeRemoveService(eventSource.getName());
View Full Code Here

                TaskScheduler scheduler = taskSchedulerService.getTaskScheduler();
                contextInfo.addProperty(TaskConstants.TASK_SCHEDULER, scheduler);
            }

            if (repositoryService != null) {
                TaskDescriptionRepository repository
                        = repositoryService.getTaskDescriptionRepository();
                contextInfo.addProperty(TaskConstants.TASK_DESCRIPTION_REPOSITORY, repository);
            }

            if (secretCallbackHandlerService != null) {
View Full Code Here

            if (stp != null) {
                stp.destroy();
            }
        }

        TaskDescriptionRepository repository = synapseEnvironment.getTaskManager()
                .getTaskDescriptionRepository();
        if (repository != null) {
            repository.clear();
        }

        synapseEnvironment.getTaskManager().cleanup();

        Collection<SynapseEventSource> eventSources = oldConfig.getEventSources();
View Full Code Here

        } else if(!scheduler.isInitialized()) {
            scheduler.init(null);
        }

        if (configContext.getProperty(AutoscalerTaskInitializer.CARBON_TASK_REPOSITORY) == null) {
            TaskDescriptionRepository repository = new TaskDescriptionRepository();
            configContext.setProperty(
                    AutoscalerTaskInitializer.CARBON_TASK_REPOSITORY, repository);
        }
    }
View Full Code Here

TOP

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

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.