类 SchedulerAccessor

    • 方法详细资料

      • setOverwriteExistingJobs

        public void setOverwriteExistingJobs​(boolean overwriteExistingJobs)
        Set whether any jobs defined on this SchedulerFactoryBean should overwrite existing job definitions. Default is "false", to not overwrite already registered jobs that have been read in from a persistent job store.
      • setJobSchedulingDataLocation

        public void setJobSchedulingDataLocation​(String jobSchedulingDataLocation)
        Set the location of a Quartz job definition XML file that follows the "job_scheduling_data_1_5" XSD or better. Can be specified to automatically register jobs that are defined in such a file, possibly in addition to jobs defined directly on this SchedulerFactoryBean.
        另请参阅:
        XMLSchedulingDataProcessor
      • setJobSchedulingDataLocations

        public void setJobSchedulingDataLocations​(String... jobSchedulingDataLocations)
        Set the locations of Quartz job definition XML files that follow the "job_scheduling_data_1_5" XSD or better. Can be specified to automatically register jobs that are defined in such files, possibly in addition to jobs defined directly on this SchedulerFactoryBean.
        另请参阅:
        XMLSchedulingDataProcessor
      • setJobDetails

        public void setJobDetails​(JobDetail... jobDetails)
        Register a list of JobDetail objects with the Scheduler that this FactoryBean creates, to be referenced by Triggers.

        This is not necessary when a Trigger determines the JobDetail itself: In this case, the JobDetail will be implicitly registered in combination with the Trigger.

        另请参阅:
        setTriggers(org.quartz.Trigger...), JobDetail
      • setCalendars

        public void setCalendars​(Map<String,​Calendar> calendars)
        Register a list of Quartz Calendar objects with the Scheduler that this FactoryBean creates, to be referenced by Triggers.
        参数:
        calendars - a Map with calendar names as keys as Calendar objects as values
        另请参阅:
        Calendar
      • setTriggers

        public void setTriggers​(Trigger... triggers)
        Register a list of Trigger objects with the Scheduler that this FactoryBean creates.

        If the Trigger determines the corresponding JobDetail itself, the job will be automatically registered with the Scheduler. Else, the respective JobDetail needs to be registered via the "jobDetails" property of this FactoryBean.

        另请参阅:
        setJobDetails(org.quartz.JobDetail...), JobDetail
      • setGlobalJobListeners

        public void setGlobalJobListeners​(JobListener... globalJobListeners)
        Specify global Quartz JobListeners to be registered with the Scheduler. Such JobListeners will apply to all Jobs in the Scheduler.
      • setGlobalTriggerListeners

        public void setGlobalTriggerListeners​(TriggerListener... globalTriggerListeners)
        Specify global Quartz TriggerListeners to be registered with the Scheduler. Such TriggerListeners will apply to all Triggers in the Scheduler.
      • setTransactionManager

        public void setTransactionManager​(PlatformTransactionManager transactionManager)
        Set the transaction manager to be used for registering jobs and triggers that are defined by this SchedulerFactoryBean. Default is none; setting this only makes sense when specifying a DataSource for the Scheduler.
      • getScheduler

        protected abstract Scheduler getScheduler()
        Template method that determines the Scheduler to operate on. To be implemented by subclasses.