Uploaded image for project: 'PUBLIC - Liferay Portal Enterprise Edition'
  1. PUBLIC - Liferay Portal Enterprise Edition
  2. LPE-1310

Added support for a SimpleTrigger in QuartzSchedulerEngine

Details

    Description

      This improvement adds support for a SimpleTrigger in QuartzSchedulerEngine. SimpleTrigger is designed for repeated actions. Describing repeated actions with the current trigger, CronTrigger, can be difficult.

      As part of this update, the following methods have been added:

      SchedulerEngineUtil
      public static void schedule(
      String groupName, long interval, Date startDate, Date endDate, String description, String destinationName, String messageBody)

      SchedulerRequest
      public static SchedulerRequest createRegisterRequest(
      String groupName, long interval, Date startDate, Date endDate, String description, String destination, String messageBody)
      public static SchedulerRequest createRegisterRequest(
      String groupName, String cronText, Date startDate, Date endDate, String description, String destination, String messageBody)
      public static SchedulerRequest createRetrieveRequest(
      String groupName)
      public static SchedulerRequest createRetrieveResponseRequest(
      String jobName, String groupName, long interval, Date startDate, Date endDate, String description, String messageBody)
      public static SchedulerRequest createRetrieveResponseRequest(
      String jobName, String groupName, String cronText, Date startDate, Date endDate, String description, String messageBody)
      public static SchedulerRequest createShutdownRequest()
      public static SchedulerRequest createStartupRequest()
      public static SchedulerRequest createUnregisterRequest(
      String groupName)
      public long getInterval()
      public TriggerType getTriggerType()
      public void setInterval(
      long interval)
      public void setTriggerType(
      TriggerType triggerType)

      Note: This improvement was added because it is need to fix a memory leak with the the Quartz Scheduler

      Attachments

        Issue Links

          Activity

            People

              support-ee EE Support
              samuel.kong Samuel Kong
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Packages

                  Version Package
                  5.1 EE SP4 (5.1.7)
                  5.2 EE SP2 (5.2.6)