Package org.apache.synapse.task

## Class TaskScheduler

- java.lang.Object
- - org.apache.synapse.task.TaskScheduler

-     public class TaskScheduler
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `TaskScheduler​(String name)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `deleteTask​(String name, String group)` |
    `int` | `getRunningTaskCount()` |
    `void` | `init​(Properties properties, TaskManager taskManager)` |
    `boolean` | `isInitialized()` |
    `boolean` | `isTaskAlreadyRunning​(Object taskKey)` |
    `void` | `pauseAll()` |
    `void` | `resumeAll()` |
    `boolean` | `scheduleTask​(TaskDescription taskDescription)` |
    `boolean` | `scheduleTask​(TaskDescription taskDescription, Map<String,​Object> resources, Class taskClass)` |
    `boolean` | `scheduleTask​(TaskDescription taskDescription, Map<String,​Object> resources, Class jobClass, Task task)` |
    `void` | `setJobDetailFactory​(Object jobDetailFactory)` |
    `void` | `setTriggerFactory​(Object triggerFactory)` |
    `void` | `shutDown()` |
    `void` | `start()` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### TaskScheduler

          public TaskScheduler​(String name)

  - ### Method Detail

    - #### init

          public void init​(Properties properties,
                           TaskManager taskManager)

    - #### start

          public void start()

    - #### pauseAll

          public void pauseAll()

    - #### resumeAll

          public void resumeAll()

    - #### scheduleTask

          public boolean scheduleTask​(TaskDescription taskDescription,
                                      Map<String,​Object> resources,
                                      Class taskClass)

    - #### scheduleTask

          public boolean scheduleTask​(TaskDescription taskDescription,
                                      Map<String,​Object> resources,
                                      Class jobClass,
                                      Task task)

    - #### scheduleTask

          public boolean scheduleTask​(TaskDescription taskDescription)

    - #### shutDown

          public void shutDown()

    - #### isInitialized

          public boolean isInitialized()

    - #### deleteTask

          public void deleteTask​(String name,
                                 String group)

    - #### getRunningTaskCount

          public int getRunningTaskCount()

    - #### isTaskAlreadyRunning

          public boolean isTaskAlreadyRunning​(Object taskKey)

    - #### setTriggerFactory

          public void setTriggerFactory​(Object triggerFactory)

    - #### setJobDetailFactory

          public void setJobDetailFactory​(Object jobDetailFactory)