Class CronJobManager

    • Field Detail

      • LOADONSTARTUP_CONFIG_PARAM

        public static final java.lang.String LOADONSTARTUP_CONFIG_PARAM
        See Also:
        Constant Field Values
      • listener

        public static final de.hybris.platform.cronjob.jalo.CronJobManager.CronJobTenantListener listener
    • Constructor Detail

      • CronJobManager

        public CronJobManager()
    • Method Detail

      • setKeyGenerator

        public void setKeyGenerator​(KeyGenerator keyGenerator)
      • processStartMessage

        protected void processStartMessage​(java.lang.String str)
      • doStart

        protected void doStart​(java.lang.String cronJobPK)
      • onFirstSessionCreation

        public void onFirstSessionCreation()
        Description copied from class: Extension
        Is called on first session creation (while startup) exactly one time. Put here code which has to be called within startup process.
        Overrides:
        onFirstSessionCreation in class Extension
      • startupCronjobEngine

        protected void startupCronjobEngine()
      • stopConjobEngine

        protected void stopConjobEngine()
      • getCronjobBroadcastMessagePrefix

        protected java.lang.String getCronjobBroadcastMessagePrefix()
      • getInstance

        public static CronJobManager getInstance()
        Returns the CronJobManager instance.
        Returns:
        the CronJobManager instance
      • notifyItemRemoval

        protected void notifyItemRemoval​(SessionContext ctx,
                                         Item item)
        Superclass method overridden to avoid calls to ejb layer.
        Overrides:
        notifyItemRemoval in class Extension
        Parameters:
        ctx - the currency session context
        item - the item which is going to be removed
      • createBatchJob

        @Deprecated
        public BatchJob createBatchJob​(java.lang.String code)
        Deprecated.
        since 4.3 BatchJob is obsolete
        Creates a BatchJob with the specified code.
        Parameters:
        code - the code of the new BatchJob
        Returns:
        the new BatchJob
      • createCronJob

        @Deprecated
        public CronJob createCronJob​(Job job,
                                     java.lang.String code,
                                     boolean active)
        Deprecated.
        since ages - use plainCronJobModel creation instead, refer to wiki documentation
        Creates a CronJob for the specified Job, with the specified code and active flag. The node id of the new CronJob is set to the value configured in the project|local.properties file in the extension directory with the 'cronjob.clusterid' property.
        Parameters:
        job - the Job which should be performed using this new CronJob
        code - the code of the new CronJob
        active - true, if the new CronJob should be active. false, if the CronJob should be inactive
        Returns:
        the new CronJob
      • createCronJob

        @Deprecated
        public CronJob createCronJob​(Job job,
                                     java.lang.String code,
                                     boolean active,
                                     int node)
        Deprecated.
        since ages - use plainCronJobModel creation instead, refer to wiki documentation
        Creates a CronJob for the specified Job, with the specified code and active flag. The node id of the new CronJob is set to the value configured in the project|local.properties file in the extension directory with the 'cronjob.mastermode' property.
        Parameters:
        job - the Job which should be performed using this new CronJob
        code - the code of the new CronJob
        active - true, if the new CronJob should be active. false, if the CronJob should be inactive
        node - the id of the node, this CronJob should be executed on
        Returns:
        the new CronJob
      • createTypeSystemExportJob

        @Deprecated
        public TypeSystemExportJob createTypeSystemExportJob​(java.lang.String code)
        Deprecated.
        since agesTypeSystemExportJob is obsolete since 4.3
        Creates a new TypeSystemExportJob instance with the specified code.
        Parameters:
        code - the code of the new TypeSystemExportJob
        Returns:
        a new TypeSystemExportJob instance with the specified code
      • createTrigger

        @Deprecated
        public Trigger createTrigger​(CronJob cronJob,
                                     java.util.Date date)
        Deprecated.
        since ages - use plainTriggerModel creation instead, refer to wiki documentation
        Creates a trigger for a single date only.
        Parameters:
        cronJob - the cronjob to perform
        date - the date to perform cronjob at
      • createTrigger

        @Deprecated
        public Trigger createTrigger​(CronJob cronJob,
                                     int second,
                                     boolean relative)
        Deprecated.
        since ages - use plainTriggerModel creation instead, refer to wiki documentation
        Creates a Trigger for the specified CronJob.
        Parameters:
        cronJob - the CronJob the Trigger should be assigned to
        second - the second at which the Trigger should fire (0-59 or -1 for every second)
        relative - true if time values should be considered relative to each other or false if not
        Returns:
        the Trigger created
      • createTrigger

        @Deprecated
        public Trigger createTrigger​(CronJob cronJob,
                                     int second,
                                     int minute,
                                     boolean relative)
        Deprecated.
        since ages - use plainTriggerModel creation instead, refer to wiki documentation
        Creates a Trigger for the specified CronJob.
        Parameters:
        cronJob - the CronJob the Trigger should be assigned to
        second - the second at which the Trigger should fire (0-59 or -1 for every second)
        minute - the minute at which the Trigger should fire (0-59 or -1 for every minute)
        relative - true if time values should be considered relative to each other or false if not
        Returns:
        the Trigger created
      • createTrigger

        @Deprecated
        public Trigger createTrigger​(CronJob cronJob,
                                     int second,
                                     int minute,
                                     int hour,
                                     boolean relative)
        Deprecated.
        since ages - use plainTriggerModel creation instead, refer to wiki documentation
        Creates a Trigger for the specified CronJob.
        Parameters:
        cronJob - the CronJob the Trigger should be assigned to
        second - the second at which the Trigger should fire (0-59 or -1 for every second)
        minute - the minute at which the Trigger should fire (0-59 or -1 for every minute)
        hour - hour at which the Trigger should fire (0-23 or -1 for every hour)
        relative - true if time values should be considered relative to each other or false if not
        Returns:
        the Trigger created
      • createTrigger

        @Deprecated
        public Trigger createTrigger​(CronJob cronJob,
                                     int second,
                                     int minute,
                                     int hour,
                                     int day,
                                     boolean relative)
        Deprecated.
        since ages - use plainTriggerModel creation instead, refer to wiki documentation
        Creates a Trigger for the specified CronJob.
        Parameters:
        cronJob - the CronJob the Trigger should be assigned to
        second - the second at which the Trigger should fire (0-59 or -1 for every second)
        minute - the minute at which the Trigger should fire (0-59 or -1 for every minute)
        hour - hour at which the Trigger should fire (0-23 or -1 for every hour)
        day - the day of month the Trigger should fire (0-31 or -1 for every day)
        relative - true if time values should be considered relative to each other or false if not
        Returns:
        the Trigger created
      • createTrigger

        @Deprecated
        public Trigger createTrigger​(CronJob cronJob,
                                     int second,
                                     int minute,
                                     int hour,
                                     int day,
                                     int month,
                                     boolean relative)
        Deprecated.
        since ages - use plainTriggerModel creation instead, refer to wiki documentation
        Creates a Trigger for the specified CronJob.
        Parameters:
        cronJob - the CronJob the Trigger should be assigned to
        second - the second at which the Trigger should fire (0-59 or -1 for every second)
        minute - the minute at which the Trigger should fire (0-59 or -1 for every minute)
        hour - hour at which the Trigger should fire (0-23 or -1 for every hour)
        day - the day of month the Trigger should fire (0-31 or -1 for every day)
        month - the month at which the Trigger should fire (0-11 or -1 for every month)
        relative - true if time values should be considered relative to each other or false if not
        Returns:
        the Trigger created
      • createTrigger

        @Deprecated
        public Trigger createTrigger​(CronJob cronJob,
                                     int second,
                                     int minute,
                                     int hour,
                                     int day,
                                     int month,
                                     int year)
        Deprecated.
        since ages - use plainTriggerModel creation instead, refer to wiki documentation
        Creates a Trigger for the specified CronJob.
        Parameters:
        cronJob - the CronJob the Trigger should be assigned to
        second - the second at which the Trigger should fire (0-59 or -1 for every second)
        minute - the minute at which the Trigger should fire (0-59 or -1 for every minute)
        hour - hour at which the Trigger should fire (0-23 or -1 for every hour)
        day - the day of month the Trigger should fire (0-31 or -1 for every day)
        month - the month at which the Trigger should fire (0-11 or -1 for every month)
        year - the year when the Trigger should fire (-1 for every year)
        Returns:
        the Trigger created
      • createTrigger

        @Deprecated
        public Trigger createTrigger​(CronJob cronJob,
                                     int second,
                                     int minute,
                                     int hour,
                                     java.util.List daysOfWeek,
                                     boolean relative)
        Deprecated.
        since ages - use plainTriggerModel creation instead, refer to wiki documentation
        Creates a Trigger for the specified CronJob.
        Parameters:
        cronJob - the CronJob the Trigger should be assigned to
        second - the second at which the Trigger should fire (0-59 or -1 for every second)
        minute - the minute at which the Trigger should fire (0-59 or -1 for every minute)
        hour - hour at which the Trigger should fire (0-23 or -1 for every hour)
        daysOfWeek - a List of EnumerationValues ((@link CronJobConstants.TC.DayOfWeek}, Value constants ((@link CronJobConstants.Enumerations.DayOfWeek)})
        relative - true if time values should be considered relative to each other or false if not
        Returns:
        the Trigger created
      • createTrigger

        @Deprecated
        public Trigger createTrigger​(CronJob cronJob,
                                     int second,
                                     int minute,
                                     int hour,
                                     int day,
                                     int month,
                                     int year,
                                     java.util.List daysOfWeek,
                                     boolean relative)
        Deprecated.
        since ages - use plainTriggerModel creation instead, refer to wiki documentation
        Creates a Trigger for the specified CronJob.
        Parameters:
        cronJob - the CronJob the Trigger should be assigned to
        second - the second at which the Trigger should fire (0-59 or -1 for every second)
        minute - the minute at which the Trigger should fire (0-59 or -1 for every minute)
        hour - hour at which the Trigger should fire (0-23 or -1 for every hour)
        day - the day of month the Trigger should fire (0-31 or -1 for every day)
        month - the month at which the Trigger should fire (0-11 or -1 for every month)
        year - the year when the Trigger should fire (-1 for every year)
        daysOfWeek - a List of
        relative - true if time values should be considered relative to each other or false if not
        Returns:
        the Trigger created
      • getJob

        @Deprecated
        public Job getJob​(java.lang.String code)
        Deprecated.
        since ages - use plainJobModel creation instead, refer to wiki documentation
        Returns the Job with the specified code.
        Parameters:
        code - the code of the searched Job
        Returns:
        the Job
      • getRunningOrRestartedCronJobsForNode

        @Deprecated
        public java.util.Collection<CronJob> getRunningOrRestartedCronJobsForNode​(int nodeID)
        Deprecated.
        Returns a Collection of all running or restarted CronJobs for the specified nodeID.
        Parameters:
        nodeID - the ID of the node, for which all restarted or running Cronjobs should be returned
        Returns:
        a Collection of all running or restarted CronJobs for the specified nodeID
      • abortRunningCronJobsForClusterNode

        @Deprecated
        public boolean abortRunningCronJobsForClusterNode​(int nodeID)
        Deprecated.
        since ages - use CronJobService.requestAbortCronJob(de.hybris.platform.cronjob.model.CronJobModel) instead to abort a specific cronJob. Note that since 4.3 aborting the cronJob on the distant node is not possible.
        Sets all running or restarted CronJobs for the specified nodeID to status ABORT (using CronJob.setAborted()). This is an internal method that should run only after system restart before the timerthread is started to catch all cronjobs that were hit by a hard shutdown (e.g. CTRL-C on Windows).
        Parameters:
        nodeID - the ID of the node, whose running / restarted CronJobs should be aborted
        Returns:
        true if all CronJobs were aborted successfully, false otherwise
      • createBatchJob

        @Deprecated
        public BatchJob createBatchJob​(java.util.Map params)
        Deprecated.
        since agesBatchJob is obsolete since 4.3
        Creates a new BatchJob using the parameters specified in the params Map.
        Overrides:
        createBatchJob in class GeneratedCronJobManager
        Parameters:
        params - Map of parameters. (Mapping 'attribute qualifier' -> 'attribute value')
        Returns:
        a new BatchJob created using the parameters specified in the params Map
      • createBatchJob

        @Deprecated
        public BatchJob createBatchJob​(SessionContext ctx,
                                       java.util.Map params)
        Deprecated.
        since agesBatchJob is obsolete since 4.3
        Creates a new BatchJob using the parameters specified in the params Map.
        Overrides:
        createBatchJob in class GeneratedCronJobManager
        Parameters:
        ctx - the SessionContext, which will be used
        params - Map of parameters. (Mapping 'attribute qualifier' -> 'attribute value')
        Returns:
        a new BatchJob created using the parameters specified in the params Map
      • createChangeDescriptor

        @Deprecated
        public ChangeDescriptor createChangeDescriptor​(java.util.Map params)
        Deprecated.
        since ages - use plainChangeDescriptorModel creation instead, refer to wiki documentation
        Creates a new ChangeDescriptor using the parameters specified in the params Map.
        Overrides:
        createChangeDescriptor in class GeneratedCronJobManager
        Parameters:
        params - Map of parameters. (Mapping 'attribute qualifier' -> 'attribute value')
        Returns:
        a new ChangeDescriptor created using the parameters specified in the params Map
      • createChangeDescriptor

        @Deprecated
        public ChangeDescriptor createChangeDescriptor​(SessionContext ctx,
                                                       java.util.Map params)
        Deprecated.
        since ages - use plainChangeDescriptorModel creation instead, refer to wiki documentation
        Creates a new ChangeDescriptor using the parameters specified in the params Map.
        Overrides:
        createChangeDescriptor in class GeneratedCronJobManager
        Parameters:
        ctx - the SessionContext, which will be used
        params - Map of parameters. (Mapping 'attribute qualifier' -> 'attribute value')
        Returns:
        a new ChangeDescriptor created using the parameters specified in the params Map
      • createCronJob

        @Deprecated
        public CronJob createCronJob​(java.util.Map params)
        Deprecated.
        since ages - use plainCronJobModel creation instead, refer to wiki documentation
        Creates a new CronJob using the parameters specified in the params Map.
        Overrides:
        createCronJob in class GeneratedCronJobManager
        Parameters:
        params - Map of parameters. (Mapping 'attribute qualifier' -> 'attribute value')
        Returns:
        a new CronJob created using the parameters specified in the params Map
      • createCronJob

        @Deprecated
        public CronJob createCronJob​(SessionContext ctx,
                                     java.util.Map params)
        Deprecated.
        since ages - use plainCronJobModel creation instead, refer to wiki documentation
        Creates a new CronJob using the parameters specified in the params Map.
        Overrides:
        createCronJob in class GeneratedCronJobManager
        Parameters:
        ctx - the SessionContext, which will be used
        params - Map of parameters. (Mapping 'attribute qualifier' -> 'attribute value')
        Returns:
        a new CronJob created using the parameters specified in the params Map
      • createCSVExportStep

        @Deprecated
        public CSVExportStep createCSVExportStep​(java.util.Map params)
        Deprecated.
        since 4.3 Step is obsolete
        Creates a new CSVExportStep using the parameters specified in the params Map.
        Overrides:
        createCSVExportStep in class GeneratedCronJobManager
        Parameters:
        params - Map of parameters. (Mapping 'attribute qualifier' -> 'attribute value')
        Returns:
        a new CSVExportStep created using the parameters specified in the params Map
      • createCSVExportStep

        @Deprecated
        public CSVExportStep createCSVExportStep​(SessionContext ctx,
                                                 java.util.Map params)
        Deprecated.
        since 4.3 Step is obsolete
        Creates a new CSVExportStep using the parameters specified in the params Map.
        Overrides:
        createCSVExportStep in class GeneratedCronJobManager
        Parameters:
        ctx - the SessionContext, which will be used
        params - Map of parameters. (Mapping 'attribute qualifier' -> 'attribute value')
        Returns:
        a new CSVExportStep created using the parameters specified in the params Map
      • createFlexibleSearchCronJob

        @Deprecated
        public FlexibleSearchCronJob createFlexibleSearchCronJob​(java.util.Map params)
        Deprecated.
        since agesFlexibleSearchCronJob is obsolete since 4.3
        Creates a new FlexibleSearchCronJob using the parameters specified in the params Map.
        Overrides:
        createFlexibleSearchCronJob in class GeneratedCronJobManager
        Parameters:
        params - Map of parameters. (Mapping 'attribute qualifier' -> 'attribute value')
        Returns:
        a new FlexibleSearchCronJob created using the parameters specified in the params Map
      • createFlexibleSearchCronJob

        @Deprecated
        public FlexibleSearchCronJob createFlexibleSearchCronJob​(SessionContext ctx,
                                                                 java.util.Map params)
        Deprecated.
        since agesFlexibleSearchCronJob is obsolete since 4.3
        Creates a new FlexibleSearchCronJob using the parameters specified in the params Map.
        Overrides:
        createFlexibleSearchCronJob in class GeneratedCronJobManager
        Parameters:
        ctx - the SessionContext, which will be used
        params - Map of parameters. (Mapping 'attribute qualifier' -> 'attribute value')
        Returns:
        a new FlexibleSearchCronJob created using the parameters specified in the params Map
      • createGenericCSVImportStep

        @Deprecated
        public GenericCSVImportStep createGenericCSVImportStep​(java.util.Map params)
        Deprecated.
        since 4.3 Step is obsolete
        Creates a new GenericCSVImportStep using the parameters specified in the params Map.
        Overrides:
        createGenericCSVImportStep in class GeneratedCronJobManager
        Parameters:
        params - Map of parameters. (Mapping 'attribute qualifier' -> 'attribute value')
        Returns:
        a new GenericCSVImportStep created using the parameters specified in the params Map
      • createGenericCSVImportStep

        @Deprecated
        public GenericCSVImportStep createGenericCSVImportStep​(SessionContext ctx,
                                                               java.util.Map params)
        Deprecated.
        since 4.3 Step is obsolete
        Creates a new GenericCSVImportStep using the parameters specified in the params Map.
        Overrides:
        createGenericCSVImportStep in class GeneratedCronJobManager
        Parameters:
        ctx - the SessionContext, which will be used
        params - Map of parameters. (Mapping 'attribute qualifier' -> 'attribute value')
        Returns:
        a new GenericCSVImportStep created using the parameters specified in the params Map
      • createGetURLStep

        @Deprecated
        public GetURLStep createGetURLStep​(java.util.Map params)
        Deprecated.
        since 4.3 Step is obsolete
        Creates a new GetURLStep using the parameters specified in the params Map.
        Overrides:
        createGetURLStep in class GeneratedCronJobManager
        Parameters:
        params - Map of parameters. (Mapping 'attribute qualifier' -> 'attribute value')
        Returns:
        a new GetURLStep created using the parameters specified in the params Map
      • createGetURLStep

        @Deprecated
        public GetURLStep createGetURLStep​(SessionContext ctx,
                                           java.util.Map params)
        Deprecated.
        since 4.3 Step is obsolete
        Creates a new GetURLStep using the parameters specified in the params Map.
        Overrides:
        createGetURLStep in class GeneratedCronJobManager
        Parameters:
        ctx - the SessionContext, which will be used
        params - Map of parameters. (Mapping 'attribute qualifier' -> 'attribute value')
        Returns:
        a new GetURLStep created using the parameters specified in the params Map
      • createJobLog

        @Deprecated
        public JobLog createJobLog​(java.util.Map params)
        Deprecated.
        since ages - there should be used aJobLogModel directly instead
        Creates a new JobLog using the parameters specified in the params Map.
        Overrides:
        createJobLog in class GeneratedCronJobManager
        Parameters:
        params - Map of parameters. (Mapping 'attribute qualifier' -> 'attribute value')
        Returns:
        a new JobLog created using the parameters specified in the params Map
      • createJobLog

        @Deprecated
        public JobLog createJobLog​(SessionContext ctx,
                                   java.util.Map params)
        Deprecated.
        since ages - there should be used aJobLogModel directly instead
        Creates a new JobLog using the parameters specified in the params Map.
        Overrides:
        createJobLog in class GeneratedCronJobManager
        Parameters:
        ctx - the SessionContext, which will be used
        params - Map of parameters. (Mapping 'attribute qualifier' -> 'attribute value')
        Returns:
        a new JobLog created using the parameters specified in the params Map
      • createJobMedia

        @Deprecated
        public JobMedia createJobMedia​(java.util.Map params)
        Deprecated.
        since ages - there should be used aJobMediaModel directly instead
        Creates a new JobMedia using the parameters specified in the params Map.
        Overrides:
        createJobMedia in class GeneratedCronJobManager
        Parameters:
        params - Map of parameters. (Mapping 'attribute qualifier' -> 'attribute value')
        Returns:
        a new JobMedia created using the parameters specified in the params Map
      • createJobMedia

        @Deprecated
        public JobMedia createJobMedia​(SessionContext ctx,
                                       java.util.Map params)
        Deprecated.
        since ages - there should be used aJobMediaModel directly instead
        Creates a new JobMedia using the parameters specified in the params Map.
        Overrides:
        createJobMedia in class GeneratedCronJobManager
        Parameters:
        ctx - the SessionContext, which will be used
        params - Map of parameters. (Mapping 'attribute qualifier' -> 'attribute value')
        Returns:
        a new JobMedia created using the parameters specified in the params Map
      • createMediaProcessCronJob

        @Deprecated
        public MediaProcessCronJob createMediaProcessCronJob​(java.util.Map params)
        Deprecated.
        since ages - there should be used aMediaProcessCronJobModel directly instead
        Creates a new MediaProcessCronJob using the parameters specified in the params Map.
        Overrides:
        createMediaProcessCronJob in class GeneratedCronJobManager
        Parameters:
        params - Map of parameters. (Mapping 'attribute qualifier' -> 'attribute value')
        Returns:
        a new MediaProcessCronJob created using the parameters specified in the params Map
      • createMediaProcessCronJob

        @Deprecated
        public MediaProcessCronJob createMediaProcessCronJob​(SessionContext ctx,
                                                             java.util.Map params)
        Deprecated.
        since ages - there should be used aMediaProcessCronJobModel directly instead
        Creates a new MediaProcessCronJob using the parameters specified in the params Map.
        Overrides:
        createMediaProcessCronJob in class GeneratedCronJobManager
        Parameters:
        ctx - the SessionContext, which will be used
        params - Map of parameters. (Mapping 'attribute qualifier' -> 'attribute value')
        Returns:
        a new MediaProcessCronJob created using the parameters specified in the params Map
      • createTrigger

        @Deprecated
        public Trigger createTrigger​(java.util.Map params)
        Deprecated.
        since ages - use plainTriggerModel creation instead, refer to wiki documentation
        Creates a new Trigger using the parameters specified in the params Map.
        Overrides:
        createTrigger in class GeneratedCronJobManager
        Parameters:
        params - Map of parameters. (Mapping 'attribute qualifier' -> 'attribute value')
        Returns:
        a new Trigger created using the parameters specified in the params Map
      • createTrigger

        @Deprecated
        public Trigger createTrigger​(SessionContext ctx,
                                     java.util.Map params)
        Deprecated.
        since ages - use plainTriggerModel creation instead, refer to wiki documentation
        Creates a new Trigger using the parameters specified in the params Map. Since 5.5.1 TriggerTask is created additionally.
        Overrides:
        createTrigger in class GeneratedCronJobManager
        Parameters:
        ctx - the SessionContext, which will be used
        params - Map of parameters. (Mapping 'attribute qualifier' -> 'attribute value')
        Returns:
        a new Trigger created using the parameters specified in the params Map
      • createTypeSystemExportJob

        @Deprecated
        public TypeSystemExportJob createTypeSystemExportJob​(java.util.Map params)
        Deprecated.
        since agesTypeSystemExportJob is obsolete since 4.3
        Creates a new TypeSystemExportJob using the parameters specified in the params Map.
        Overrides:
        createTypeSystemExportJob in class GeneratedCronJobManager
        Parameters:
        params - Map of parameters. (Mapping 'attribute qualifier' -> 'attribute value')
        Returns:
        a new TypeSystemExportJob created using the parameters specified in the params Map
      • createTypeSystemExportJob

        @Deprecated
        public TypeSystemExportJob createTypeSystemExportJob​(SessionContext ctx,
                                                             java.util.Map params)
        Deprecated.
        since agesTypeSystemExportJob is obsolete since 4.3
        Creates a new TypeSystemExportJob using the parameters specified in the params Map.
        Overrides:
        createTypeSystemExportJob in class GeneratedCronJobManager
        Parameters:
        ctx - the SessionContext, which will be used
        params - Map of parameters. (Mapping 'attribute qualifier' -> 'attribute value')
        Returns:
        a new TypeSystemExportJob created using the parameters specified in the params Map
      • createURLCronJob

        @Deprecated
        public URLCronJob createURLCronJob​(java.util.Map params)
        Deprecated.
        since agesURLCronJob is obsolete since 4.3
        Creates a new URLCronJob using the parameters specified in the params Map.
        Overrides:
        createURLCronJob in class GeneratedCronJobManager
        Parameters:
        params - Map of parameters. (Mapping 'attribute qualifier' -> 'attribute value')
        Returns:
        a new URLCronJob created using the parameters specified in the params Map
      • createURLCronJob

        @Deprecated
        public URLCronJob createURLCronJob​(SessionContext ctx,
                                           java.util.Map params)
        Deprecated.
        since agesURLCronJob is obsolete since 4.3
        Creates a new URLCronJob using the parameters specified in the params Map.
        Overrides:
        createURLCronJob in class GeneratedCronJobManager
        Parameters:
        ctx - the SessionContext, which will be used
        params - Map of parameters. (Mapping 'attribute qualifier' -> 'attribute value')
        Returns:
        a new URLCronJob created using the parameters specified in the params Map
      • getNextConjobNumber

        @Deprecated
        public java.lang.String getNextConjobNumber()
        Deprecated.
        since ages - please use getNextCronjobNumber() instead!
      • getNextCronjobNumber

        public java.lang.String getNextCronjobNumber()
      • createEssentialData

        public void createEssentialData​(java.util.Map params,
                                        JspContext jspc)
                                 throws java.lang.Exception
        Overrides:
        createEssentialData in class Extension
        Throws:
        java.lang.Exception
      • getDefaultCronJobFinishNotificationTemplate

        @Deprecated
        public RendererTemplate getDefaultCronJobFinishNotificationTemplate()
        Deprecated.
        Gets the default notification template for a cronjob. It is set at creation time of a cronjob if no template is provided.
        Returns:
        default notification template
        Since:
        3.1-u7
      • getCronJobMediaFolder

        @Deprecated
        public MediaFolder getCronJobMediaFolder()
        Deprecated.
        since ages - use plainMediaFolderModel creation instead, refer to wiki documentation
        Gets the HMC specific MediaFolder used for storing hmc system medias.
        Returns:
        folder for hmc specific medias
        Since:
        3.1-u4
      • findTaskForTrigger

        protected TriggerTask findTaskForTrigger​(Trigger trigger)
        Searches for Task for the given Trigger.
      • startTimerTask

        @Deprecated
        public static void startTimerTask()
        Deprecated.
        since ages - - Since 5.5.1 explicit CronJob management should not be done, because CronJobs are handled by TaskEngine
      • stopTimerTask

        @Deprecated
        public static void stopTimerTask()
        Deprecated.
        since ages - - Since 5.5.1 explicit CronJob management should not be done, because CronJobs are handled by TaskEngine
      • notifyInitializationStart

        public void notifyInitializationStart​(java.util.Map<java.lang.String,​java.lang.String> params,
                                              JspContext ctx)
                                       throws java.lang.Exception
        Overrides:
        notifyInitializationStart in class Extension
        Throws:
        java.lang.Exception
      • notifyInitializationEnd

        public void notifyInitializationEnd​(java.util.Map params,
                                            JspContext ctx)
                                     throws java.lang.Exception
        Overrides:
        notifyInitializationEnd in class Extension
        Throws:
        java.lang.Exception
      • getOrCreateMoveMediaJob

        @Deprecated
        public MoveMediaJob getOrCreateMoveMediaJob()
        Deprecated.
        since ages - useCronJobService.getJob(String) instead with spring bean of MoveMediaJobPerformable as parameter value.
        Gets the central import job instance or creates it if not existent already.
        Returns:
        import job instance
      • startTaskEngine

        protected void startTaskEngine()
        Starts the actual task engine. Internally a polling thread is polling scheduled tasks from database and performs them asynchronously.
      • stopTaskEngine

        protected void stopTaskEngine()
        Stops the task engine. From now on scheduled tasks are not longer performed at this platform instance. Please note that other nodes may still be running and perform tasks.
      • getTaskEngine

        protected TaskEngine getTaskEngine()