Interface QuartzSchedulerMBean

    • Method Detail

      • getSchedulerName

        java.lang.String getSchedulerName()
      • getSchedulerInstanceId

        java.lang.String getSchedulerInstanceId()
      • isStandbyMode

        boolean isStandbyMode()
      • isShutdown

        boolean isShutdown()
      • getVersion

        java.lang.String getVersion()
      • getJobStoreClassName

        java.lang.String getJobStoreClassName()
      • getThreadPoolClassName

        java.lang.String getThreadPoolClassName()
      • getThreadPoolSize

        int getThreadPoolSize()
      • getJobsScheduledMostRecentSample

        long getJobsScheduledMostRecentSample()
      • getJobsExecutedMostRecentSample

        long getJobsExecutedMostRecentSample()
      • getJobsCompletedMostRecentSample

        long getJobsCompletedMostRecentSample()
      • getPerformanceMetrics

        java.util.Map<java.lang.String,​java.lang.Long> getPerformanceMetrics()
      • getCurrentlyExecutingJobs

        javax.management.openmbean.TabularData getCurrentlyExecutingJobs()
                                                                  throws java.lang.Exception
        Returns:
        TabularData of CompositeData:JobExecutionContext
        Throws:
        java.lang.Exception
      • getAllJobDetails

        javax.management.openmbean.TabularData getAllJobDetails()
                                                         throws java.lang.Exception
        Returns:
        TabularData of CompositeData:JobDetail
        Throws:
        java.lang.Exception
        See Also:
        JobDetailSupport
      • getAllTriggers

        java.util.List<javax.management.openmbean.CompositeData> getAllTriggers()
                                                                         throws java.lang.Exception
        Returns:
        List of CompositeData:[CronTrigger|SimpleTrigger]
        Throws:
        java.lang.Exception
        See Also:
        TriggerSupport
      • getJobGroupNames

        java.util.List<java.lang.String> getJobGroupNames()
                                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getJobNames

        java.util.List<java.lang.String> getJobNames​(java.lang.String groupName)
                                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getJobDetail

        javax.management.openmbean.CompositeData getJobDetail​(java.lang.String jobName,
                                                              java.lang.String jobGroupName)
                                                       throws java.lang.Exception
        Returns:
        CompositeData:JobDetail
        Throws:
        java.lang.Exception
        See Also:
        JobDetailSupport
      • isStarted

        boolean isStarted()
      • start

        void start()
            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shutdown

        void shutdown()
      • standby

        void standby()
      • clear

        void clear()
            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • scheduleJob

        java.util.Date scheduleJob​(java.lang.String jobName,
                                   java.lang.String jobGroup,
                                   java.lang.String triggerName,
                                   java.lang.String triggerGroup)
                            throws java.lang.Exception
        Schedule an existing job with an existing trigger.
        Parameters:
        jobName -
        jobGroup -
        triggerName -
        triggerGroup -
        Returns:
        date of nextFireTime
        Throws:
        java.lang.Exception
      • scheduleBasicJob

        void scheduleBasicJob​(java.util.Map<java.lang.String,​java.lang.Object> jobDetailInfo,
                              java.util.Map<java.lang.String,​java.lang.Object> triggerInfo)
                       throws java.lang.Exception
        Schedules a job using the given Cron/Simple triggerInfo. The triggerInfo and jobDetailInfo must contain well-known attribute values. TriggerInfo attributes: name, group, description, calendarName, priority, CronExpression | (startTime, endTime, repeatCount, repeatInterval) JobDetailInfo attributes: name, group, description, jobClass, jobDataMap, durability, shouldRecover
        Throws:
        java.lang.Exception
      • scheduleJob

        void scheduleJob​(java.util.Map<java.lang.String,​java.lang.Object> abstractJobInfo,
                         java.util.Map<java.lang.String,​java.lang.Object> abstractTriggerInfo)
                  throws java.lang.Exception
        Schedules an arbitrary job described by abstractJobInfo using a trigger specified by abstractTriggerInfo. AbtractTriggerInfo and AbstractJobInfo must contain the following String attributes. AbstractTriggerInfo: triggerClass, the fully-qualified class name of a concrete Trigger type AbstractJobInfo: jobDetailClass, the fully-qualified class name of a concrete JobDetail type If the Trigger and JobDetail can be successfully instantiated, the remaining attributes will be reflectively applied to those instances. The remaining attributes are limited to the types: Integer, Double, Float, String, Boolean, Date, Character, Map<String, Object>. Maps are further limited to containing values from the same set of types, less Map itself.
        Throws:
        java.lang.Exception
      • scheduleJob

        void scheduleJob​(java.lang.String jobName,
                         java.lang.String jobGroup,
                         java.util.Map<java.lang.String,​java.lang.Object> abstractTriggerInfo)
                  throws java.lang.Exception
        Schedules the specified job using a trigger described by abstractTriggerInfo, which must contain the fully-qualified trigger class name under the key "triggerClass." That trigger type must contain a no-arg constructor and have public access. Other attributes are applied reflectively and are limited to the types: Integer, Double, Float, String, Boolean, Date, Character, Map<String, Object>. Maps are limited to containing values from the same set of types, less Map itself.
        Parameters:
        jobName -
        jobGroup -
        abstractTriggerInfo -
        Throws:
        java.lang.Exception
      • unscheduleJob

        boolean unscheduleJob​(java.lang.String triggerName,
                              java.lang.String triggerGroup)
                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • interruptJob

        boolean interruptJob​(java.lang.String jobName,
                             java.lang.String jobGroupName)
                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • interruptJob

        boolean interruptJob​(java.lang.String fireInstanceId)
                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • triggerJob

        void triggerJob​(java.lang.String jobName,
                        java.lang.String jobGroupName,
                        java.util.Map<java.lang.String,​java.lang.String> jobDataMap)
                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • deleteJob

        boolean deleteJob​(java.lang.String jobName,
                          java.lang.String jobGroupName)
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • addJob

        void addJob​(javax.management.openmbean.CompositeData jobDetail,
                    boolean replace)
             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • addJob

        void addJob​(java.util.Map<java.lang.String,​java.lang.Object> abstractJobInfo,
                    boolean replace)
             throws java.lang.Exception
        Adds a durable job described by abstractJobInfo, which must contain the fully-qualified JobDetail class name under the key "jobDetailClass." That JobDetail type must contain a no-arg constructor and have public access. Other attributes are applied reflectively and are limited to the types: Integer, Double, Float, String, Boolean, Date, Character, Map<String, Object>. Maps are limited to containing values from the same set of types, less Map itself.
        Parameters:
        abstractJobInfo - map of attributes defining job
        replace - whether or not to replace a pre-existing job with the same key
        Throws:
        java.lang.Exception
      • pauseJobGroup

        void pauseJobGroup​(java.lang.String jobGroup)
                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • pauseJobsStartingWith

        void pauseJobsStartingWith​(java.lang.String jobGroupPrefix)
                            throws java.lang.Exception
        Pause all jobs whose group starts with jobGroupPrefix
        Throws:
        java.lang.Exception
      • pauseJobsEndingWith

        void pauseJobsEndingWith​(java.lang.String jobGroupSuffix)
                          throws java.lang.Exception
        Pause all jobs whose group ends with jobGroupSuffix
        Throws:
        java.lang.Exception
      • pauseJobsContaining

        void pauseJobsContaining​(java.lang.String jobGroupToken)
                          throws java.lang.Exception
        Pause all jobs whose group contains jobGroupToken
        Throws:
        java.lang.Exception
      • pauseJobsAll

        void pauseJobsAll()
                   throws java.lang.Exception
        Pause all jobs whose group is anything
        Throws:
        java.lang.Exception
      • resumeJobGroup

        void resumeJobGroup​(java.lang.String jobGroup)
                     throws java.lang.Exception
        Resume all jobs in the given group
        Throws:
        java.lang.Exception
      • resumeJobsStartingWith

        void resumeJobsStartingWith​(java.lang.String jobGroupPrefix)
                             throws java.lang.Exception
        Resume all jobs whose group starts with jobGroupPrefix
        Throws:
        java.lang.Exception
      • resumeJobsEndingWith

        void resumeJobsEndingWith​(java.lang.String jobGroupSuffix)
                           throws java.lang.Exception
        Resume all jobs whose group ends with jobGroupSuffix
        Throws:
        java.lang.Exception
      • resumeJobsContaining

        void resumeJobsContaining​(java.lang.String jobGroupToken)
                           throws java.lang.Exception
        Resume all jobs whose group contains jobGroupToken
        Throws:
        java.lang.Exception
      • resumeJobsAll

        void resumeJobsAll()
                    throws java.lang.Exception
        Resume all jobs whose group is anything
        Throws:
        java.lang.Exception
      • pauseJob

        void pauseJob​(java.lang.String jobName,
                      java.lang.String groupName)
               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • resumeJob

        void resumeJob​(java.lang.String jobName,
                       java.lang.String jobGroupName)
                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getTriggerGroupNames

        java.util.List<java.lang.String> getTriggerGroupNames()
                                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getTriggerNames

        java.util.List<java.lang.String> getTriggerNames​(java.lang.String triggerGroupName)
                                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getTrigger

        javax.management.openmbean.CompositeData getTrigger​(java.lang.String triggerName,
                                                            java.lang.String triggerGroupName)
                                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getTriggerState

        java.lang.String getTriggerState​(java.lang.String triggerName,
                                         java.lang.String triggerGroupName)
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getTriggersOfJob

        java.util.List<javax.management.openmbean.CompositeData> getTriggersOfJob​(java.lang.String jobName,
                                                                                  java.lang.String jobGroupName)
                                                                           throws java.lang.Exception
        Returns:
        List of CompositeData:[CronTrigger|SimpleTrigger] for the specified job.
        Throws:
        java.lang.Exception
        See Also:
        TriggerSupport
      • getPausedTriggerGroups

        java.util.Set<java.lang.String> getPausedTriggerGroups()
                                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • pauseAllTriggers

        void pauseAllTriggers()
                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • resumeAllTriggers

        void resumeAllTriggers()
                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • pauseTriggerGroup

        void pauseTriggerGroup​(java.lang.String triggerGroup)
                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • pauseTriggersStartingWith

        void pauseTriggersStartingWith​(java.lang.String triggerGroupPrefix)
                                throws java.lang.Exception
        Pause all triggers whose group starts with triggerGroupPrefix
        Throws:
        java.lang.Exception
      • pauseTriggersEndingWith

        void pauseTriggersEndingWith​(java.lang.String suffix)
                              throws java.lang.Exception
        Pause all triggers whose group ends with triggerGroupSuffix
        Throws:
        java.lang.Exception
      • pauseTriggersContaining

        void pauseTriggersContaining​(java.lang.String triggerGroupToken)
                              throws java.lang.Exception
        Pause all triggers whose group contains triggerGroupToken
        Throws:
        java.lang.Exception
      • pauseTriggersAll

        void pauseTriggersAll()
                       throws java.lang.Exception
        Pause all triggers whose group is anything
        Throws:
        java.lang.Exception
      • resumeTriggerGroup

        void resumeTriggerGroup​(java.lang.String triggerGroup)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • resumeTriggersStartingWith

        void resumeTriggersStartingWith​(java.lang.String triggerGroupPrefix)
                                 throws java.lang.Exception
        Resume all triggers whose group starts with triggerGroupPrefix
        Throws:
        java.lang.Exception
      • resumeTriggersEndingWith

        void resumeTriggersEndingWith​(java.lang.String triggerGroupSuffix)
                               throws java.lang.Exception
        Resume all triggers whose group ends with triggerGroupSuffix
        Throws:
        java.lang.Exception
      • resumeTriggersContaining

        void resumeTriggersContaining​(java.lang.String triggerGroupToken)
                               throws java.lang.Exception
        Resume all triggers whose group contains triggerGroupToken
        Throws:
        java.lang.Exception
      • resumeTriggersAll

        void resumeTriggersAll()
                        throws java.lang.Exception
        Resume all triggers whose group is anything
        Throws:
        java.lang.Exception
      • pauseTrigger

        void pauseTrigger​(java.lang.String triggerName,
                          java.lang.String triggerGroupName)
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • resumeTrigger

        void resumeTrigger​(java.lang.String triggerName,
                           java.lang.String triggerGroupName)
                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getCalendarNames

        java.util.List<java.lang.String> getCalendarNames()
                                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • deleteCalendar

        void deleteCalendar​(java.lang.String name)
                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • setSampledStatisticsEnabled

        void setSampledStatisticsEnabled​(boolean enabled)
      • isSampledStatisticsEnabled

        boolean isSampledStatisticsEnabled()