Class QuartzSchedulerMBeanImpl
- java.lang.Object
-
- javax.management.StandardMBean
-
- org.quartz.core.QuartzSchedulerMBeanImpl
-
- All Implemented Interfaces:
javax.management.DynamicMBean
,javax.management.MBeanRegistration
,javax.management.NotificationBroadcaster
,javax.management.NotificationEmitter
,QuartzSchedulerMBean
,JobListener
,SchedulerListener
public class QuartzSchedulerMBeanImpl extends javax.management.StandardMBean implements javax.management.NotificationEmitter, QuartzSchedulerMBean, JobListener, SchedulerListener
-
-
Field Summary
Fields Modifier and Type Field Description protected org.quartz.core.QuartzSchedulerMBeanImpl.Emitter
emitter
emitterprotected java.util.concurrent.atomic.AtomicLong
sequenceNumber
sequenceNumber-
Fields inherited from interface org.quartz.core.jmx.QuartzSchedulerMBean
JOB_ADDED, JOB_DELETED, JOB_EXECUTION_VETOED, JOB_SCHEDULED, JOB_TO_BE_EXECUTED, JOB_UNSCHEDULED, JOB_WAS_EXECUTED, JOBS_PAUSED, JOBS_RESUMED, SAMPLED_STATISTICS_ENABLED, SAMPLED_STATISTICS_RESET, SCHEDULER_ERROR, SCHEDULER_PAUSED, SCHEDULER_SHUTDOWN, SCHEDULER_STARTED, SCHEDULING_DATA_CLEARED, TRIGGER_FINALIZED, TRIGGERS_PAUSED, TRIGGERS_RESUMED
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
QuartzSchedulerMBeanImpl(QuartzScheduler scheduler)
QuartzSchedulerMBeanImpl
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addJob(java.util.Map<java.lang.String,java.lang.Object> abstractJobInfo, boolean replace)
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.void
addJob(javax.management.openmbean.CompositeData jobDetail, boolean replace)
void
addNotificationListener(javax.management.NotificationListener notif, javax.management.NotificationFilter filter, java.lang.Object callBack)
void
clear()
void
deleteCalendar(java.lang.String calendarName)
boolean
deleteJob(java.lang.String jobName, java.lang.String jobGroupName)
javax.management.openmbean.TabularData
getAllJobDetails()
java.util.List<javax.management.openmbean.CompositeData>
getAllTriggers()
java.util.List<java.lang.String>
getCalendarNames()
javax.management.openmbean.TabularData
getCurrentlyExecutingJobs()
javax.management.openmbean.CompositeData
getJobDetail(java.lang.String jobName, java.lang.String jobGroupName)
java.util.List<java.lang.String>
getJobGroupNames()
java.util.List<java.lang.String>
getJobNames(java.lang.String groupName)
long
getJobsCompletedMostRecentSample()
long
getJobsExecutedMostRecentSample()
long
getJobsScheduledMostRecentSample()
java.lang.String
getJobStoreClassName()
java.lang.String
getName()
Get the name of theJobListener
.javax.management.MBeanNotificationInfo[]
getNotificationInfo()
java.util.Set<java.lang.String>
getPausedTriggerGroups()
java.util.Map<java.lang.String,java.lang.Long>
getPerformanceMetrics()
java.lang.String
getSchedulerInstanceId()
java.lang.String
getSchedulerName()
java.lang.String
getThreadPoolClassName()
int
getThreadPoolSize()
javax.management.openmbean.CompositeData
getTrigger(java.lang.String name, java.lang.String groupName)
java.util.List<java.lang.String>
getTriggerGroupNames()
java.util.List<java.lang.String>
getTriggerNames(java.lang.String groupName)
java.util.List<javax.management.openmbean.CompositeData>
getTriggersOfJob(java.lang.String jobName, java.lang.String jobGroupName)
java.lang.String
getTriggerState(java.lang.String triggerName, java.lang.String triggerGroupName)
java.lang.String
getVersion()
boolean
interruptJob(java.lang.String fireInstanceId)
boolean
interruptJob(java.lang.String jobName, java.lang.String jobGroupName)
boolean
isSampledStatisticsEnabled()
boolean
isShutdown()
boolean
isStandbyMode()
boolean
isStarted()
void
jobAdded(JobDetail jobDetail)
void
jobDeleted(JobKey jobKey)
void
jobExecutionVetoed(JobExecutionContext context)
Called by the
when aScheduler
was about to be executed (an associatedJobDetail
has occurred), but aTrigger
vetoed it's execution.TriggerListener
void
jobPaused(JobKey jobKey)
void
jobResumed(JobKey jobKey)
void
jobScheduled(Trigger trigger)
void
jobsPaused(java.lang.String jobGroup)
void
jobsResumed(java.lang.String jobGroup)
void
jobToBeExecuted(JobExecutionContext context)
void
jobUnscheduled(TriggerKey triggerKey)
void
jobWasExecuted(JobExecutionContext context, JobExecutionException jobException)
void
pauseAllTriggers()
void
pauseJob(java.lang.String jobName, java.lang.String jobGroup)
void
pauseJobGroup(java.lang.String jobGroup)
void
pauseJobs(GroupMatcher<JobKey> matcher)
void
pauseJobsAll()
Pause all jobs whose group is anythingvoid
pauseJobsContaining(java.lang.String jobGroupToken)
Pause all jobs whose group contains jobGroupTokenvoid
pauseJobsEndingWith(java.lang.String jobGroupSuffix)
Pause all jobs whose group ends with jobGroupSuffixvoid
pauseJobsStartingWith(java.lang.String jobGroupPrefix)
Pause all jobs whose group starts with jobGroupPrefixvoid
pauseTrigger(java.lang.String triggerName, java.lang.String triggerGroup)
void
pauseTriggerGroup(java.lang.String triggerGroup)
void
pauseTriggersAll()
Pause all triggers whose group is anythingvoid
pauseTriggersContaining(java.lang.String triggerGroupToken)
Pause all triggers whose group contains triggerGroupTokenvoid
pauseTriggersEndingWith(java.lang.String triggerGroupSuffix)
Pause all triggers whose group ends with triggerGroupSuffixvoid
pauseTriggersStartingWith(java.lang.String triggerGroupPrefix)
Pause all triggers whose group starts with triggerGroupPrefixvoid
removeNotificationListener(javax.management.NotificationListener listener)
void
removeNotificationListener(javax.management.NotificationListener notif, javax.management.NotificationFilter filter, java.lang.Object callBack)
void
resumeAllTriggers()
void
resumeJob(java.lang.String jobName, java.lang.String jobGroup)
void
resumeJobGroup(java.lang.String jobGroup)
Resume all jobs in the given groupvoid
resumeJobs(GroupMatcher<JobKey> matcher)
void
resumeJobsAll()
Resume all jobs whose group is anythingvoid
resumeJobsContaining(java.lang.String jobGroupToken)
Resume all jobs whose group contains jobGroupTokenvoid
resumeJobsEndingWith(java.lang.String jobGroupSuffix)
Resume all jobs whose group ends with jobGroupSuffixvoid
resumeJobsStartingWith(java.lang.String jobGroupPrefix)
Resume all jobs whose group starts with jobGroupPrefixvoid
resumeTrigger(java.lang.String triggerName, java.lang.String triggerGroup)
void
resumeTriggerGroup(java.lang.String triggerGroup)
void
resumeTriggersAll()
Resume all triggers whose group is anythingvoid
resumeTriggersContaining(java.lang.String triggerGroupToken)
Resume all triggers whose group contains triggerGroupTokenvoid
resumeTriggersEndingWith(java.lang.String triggerGroupSuffix)
Resume all triggers whose group ends with triggerGroupSuffixvoid
resumeTriggersStartingWith(java.lang.String triggerGroupPrefix)
Resume all triggers whose group starts with triggerGroupPrefixvoid
scheduleBasicJob(java.util.Map<java.lang.String,java.lang.Object> jobDetailInfo, java.util.Map<java.lang.String,java.lang.Object> triggerInfo)
Schedules a job using the given Cron/Simple triggerInfo.java.util.Date
scheduleJob(java.lang.String jobName, java.lang.String jobGroup, java.lang.String triggerName, java.lang.String triggerGroup)
Schedule an existing job with an existing trigger.void
scheduleJob(java.lang.String jobName, java.lang.String jobGroup, java.util.Map<java.lang.String,java.lang.Object> abstractTriggerInfo)
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.void
scheduleJob(java.util.Map<java.lang.String,java.lang.Object> abstractJobInfo, java.util.Map<java.lang.String,java.lang.Object> abstractTriggerInfo)
Schedules an arbitrary job described by abstractJobInfo using a trigger specified by abstractTriggerInfo.void
schedulerError(java.lang.String msg, SchedulerException cause)
Called by the
when a serious error has occurred within the scheduler - such as repeated failures in theScheduler
JobStore
, or the inability to instantiate aJob
instance when itsTrigger
has fired.void
schedulerInStandbyMode()
Called by the
to inform the listener that it has move to standby mode.Scheduler
void
schedulerShutdown()
Called by the
to inform the listener that it has shutdown.Scheduler
void
schedulerShuttingdown()
Called by the
to inform the listener that it has begun the shutdown sequence.Scheduler
void
schedulerStarted()
Called by the
to inform the listener that it has started.Scheduler
void
schedulerStarting()
Called by the
to inform the listener that it is starting.Scheduler
void
schedulingDataCleared()
Called by the
to inform the listener that all jobs, triggers and calendars were deleted.Scheduler
void
sendNotification(java.lang.String eventType)
sendNotificationvoid
sendNotification(java.lang.String eventType, java.lang.Object data)
sendNotificationvoid
sendNotification(java.lang.String eventType, java.lang.Object data, java.lang.String msg)
sendNotificationvoid
setSampledStatisticsEnabled(boolean enabled)
void
shutdown()
void
standby()
void
start()
void
triggerFinalized(Trigger trigger)
void
triggerJob(java.lang.String jobName, java.lang.String jobGroup, java.util.Map<java.lang.String,java.lang.String> jobDataMap)
void
triggerJob(javax.management.openmbean.CompositeData trigger)
void
triggerPaused(TriggerKey triggerKey)
void
triggerResumed(TriggerKey triggerKey)
void
triggersPaused(java.lang.String triggerGroup)
void
triggersResumed(java.lang.String triggerGroup)
boolean
unscheduleJob(java.lang.String triggerName, java.lang.String triggerGroup)
-
Methods inherited from class javax.management.StandardMBean
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
-
-
-
-
Constructor Detail
-
QuartzSchedulerMBeanImpl
protected QuartzSchedulerMBeanImpl(QuartzScheduler scheduler) throws javax.management.NotCompliantMBeanException
QuartzSchedulerMBeanImpl- Throws:
javax.management.NotCompliantMBeanException
-
-
Method Detail
-
getCurrentlyExecutingJobs
public javax.management.openmbean.TabularData getCurrentlyExecutingJobs() throws java.lang.Exception
- Specified by:
getCurrentlyExecutingJobs
in interfaceQuartzSchedulerMBean
- Returns:
- TabularData of CompositeData:JobExecutionContext
- Throws:
java.lang.Exception
-
getAllJobDetails
public javax.management.openmbean.TabularData getAllJobDetails() throws java.lang.Exception
- Specified by:
getAllJobDetails
in interfaceQuartzSchedulerMBean
- Returns:
- TabularData of CompositeData:JobDetail
- Throws:
java.lang.Exception
- See Also:
JobDetailSupport
-
getAllTriggers
public java.util.List<javax.management.openmbean.CompositeData> getAllTriggers() throws java.lang.Exception
- Specified by:
getAllTriggers
in interfaceQuartzSchedulerMBean
- Returns:
- List of CompositeData:[CronTrigger|SimpleTrigger]
- Throws:
java.lang.Exception
- See Also:
TriggerSupport
-
addJob
public void addJob(javax.management.openmbean.CompositeData jobDetail, boolean replace) throws java.lang.Exception
- Specified by:
addJob
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
scheduleBasicJob
public 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
Description copied from interface:QuartzSchedulerMBean
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- Specified by:
scheduleBasicJob
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
scheduleJob
public 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
Description copied from interface:QuartzSchedulerMBean
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.- Specified by:
scheduleJob
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
scheduleJob
public void scheduleJob(java.lang.String jobName, java.lang.String jobGroup, java.util.Map<java.lang.String,java.lang.Object> abstractTriggerInfo) throws java.lang.Exception
Description copied from interface:QuartzSchedulerMBean
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.- Specified by:
scheduleJob
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
addJob
public void addJob(java.util.Map<java.lang.String,java.lang.Object> abstractJobInfo, boolean replace) throws java.lang.Exception
Description copied from interface:QuartzSchedulerMBean
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.- Specified by:
addJob
in interfaceQuartzSchedulerMBean
- Parameters:
abstractJobInfo
- map of attributes defining jobreplace
- whether or not to replace a pre-existing job with the same key- Throws:
java.lang.Exception
-
deleteCalendar
public void deleteCalendar(java.lang.String calendarName) throws java.lang.Exception
- Specified by:
deleteCalendar
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
deleteJob
public boolean deleteJob(java.lang.String jobName, java.lang.String jobGroupName) throws java.lang.Exception
- Specified by:
deleteJob
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
getCalendarNames
public java.util.List<java.lang.String> getCalendarNames() throws java.lang.Exception
- Specified by:
getCalendarNames
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
getJobDetail
public javax.management.openmbean.CompositeData getJobDetail(java.lang.String jobName, java.lang.String jobGroupName) throws java.lang.Exception
- Specified by:
getJobDetail
in interfaceQuartzSchedulerMBean
- Returns:
- CompositeData:JobDetail
- Throws:
java.lang.Exception
- See Also:
JobDetailSupport
-
getJobGroupNames
public java.util.List<java.lang.String> getJobGroupNames() throws java.lang.Exception
- Specified by:
getJobGroupNames
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
getJobNames
public java.util.List<java.lang.String> getJobNames(java.lang.String groupName) throws java.lang.Exception
- Specified by:
getJobNames
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
getJobStoreClassName
public java.lang.String getJobStoreClassName()
- Specified by:
getJobStoreClassName
in interfaceQuartzSchedulerMBean
-
getPausedTriggerGroups
public java.util.Set<java.lang.String> getPausedTriggerGroups() throws java.lang.Exception
- Specified by:
getPausedTriggerGroups
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
getTrigger
public javax.management.openmbean.CompositeData getTrigger(java.lang.String name, java.lang.String groupName) throws java.lang.Exception
- Specified by:
getTrigger
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
getTriggerGroupNames
public java.util.List<java.lang.String> getTriggerGroupNames() throws java.lang.Exception
- Specified by:
getTriggerGroupNames
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
getTriggerNames
public java.util.List<java.lang.String> getTriggerNames(java.lang.String groupName) throws java.lang.Exception
- Specified by:
getTriggerNames
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
getTriggerState
public java.lang.String getTriggerState(java.lang.String triggerName, java.lang.String triggerGroupName) throws java.lang.Exception
- Specified by:
getTriggerState
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
getTriggersOfJob
public java.util.List<javax.management.openmbean.CompositeData> getTriggersOfJob(java.lang.String jobName, java.lang.String jobGroupName) throws java.lang.Exception
- Specified by:
getTriggersOfJob
in interfaceQuartzSchedulerMBean
- Returns:
- List of CompositeData:[CronTrigger|SimpleTrigger] for the specified job.
- Throws:
java.lang.Exception
- See Also:
TriggerSupport
-
interruptJob
public boolean interruptJob(java.lang.String jobName, java.lang.String jobGroupName) throws java.lang.Exception
- Specified by:
interruptJob
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
interruptJob
public boolean interruptJob(java.lang.String fireInstanceId) throws java.lang.Exception
- Specified by:
interruptJob
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
scheduleJob
public java.util.Date scheduleJob(java.lang.String jobName, java.lang.String jobGroup, java.lang.String triggerName, java.lang.String triggerGroup) throws java.lang.Exception
Description copied from interface:QuartzSchedulerMBean
Schedule an existing job with an existing trigger.- Specified by:
scheduleJob
in interfaceQuartzSchedulerMBean
- Returns:
- date of nextFireTime
- Throws:
java.lang.Exception
-
unscheduleJob
public boolean unscheduleJob(java.lang.String triggerName, java.lang.String triggerGroup) throws java.lang.Exception
- Specified by:
unscheduleJob
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
clear
public void clear() throws java.lang.Exception
- Specified by:
clear
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
getVersion
public java.lang.String getVersion()
- Specified by:
getVersion
in interfaceQuartzSchedulerMBean
-
isShutdown
public boolean isShutdown()
- Specified by:
isShutdown
in interfaceQuartzSchedulerMBean
-
isStarted
public boolean isStarted()
- Specified by:
isStarted
in interfaceQuartzSchedulerMBean
-
start
public void start() throws java.lang.Exception
- Specified by:
start
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
shutdown
public void shutdown()
- Specified by:
shutdown
in interfaceQuartzSchedulerMBean
-
standby
public void standby()
- Specified by:
standby
in interfaceQuartzSchedulerMBean
-
isStandbyMode
public boolean isStandbyMode()
- Specified by:
isStandbyMode
in interfaceQuartzSchedulerMBean
-
getSchedulerName
public java.lang.String getSchedulerName()
- Specified by:
getSchedulerName
in interfaceQuartzSchedulerMBean
-
getSchedulerInstanceId
public java.lang.String getSchedulerInstanceId()
- Specified by:
getSchedulerInstanceId
in interfaceQuartzSchedulerMBean
-
getThreadPoolClassName
public java.lang.String getThreadPoolClassName()
- Specified by:
getThreadPoolClassName
in interfaceQuartzSchedulerMBean
-
getThreadPoolSize
public int getThreadPoolSize()
- Specified by:
getThreadPoolSize
in interfaceQuartzSchedulerMBean
-
pauseJob
public void pauseJob(java.lang.String jobName, java.lang.String jobGroup) throws java.lang.Exception
- Specified by:
pauseJob
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
pauseJobs
public void pauseJobs(GroupMatcher<JobKey> matcher) throws java.lang.Exception
- Throws:
java.lang.Exception
-
pauseJobGroup
public void pauseJobGroup(java.lang.String jobGroup) throws java.lang.Exception
- Specified by:
pauseJobGroup
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
pauseJobsStartingWith
public void pauseJobsStartingWith(java.lang.String jobGroupPrefix) throws java.lang.Exception
Description copied from interface:QuartzSchedulerMBean
Pause all jobs whose group starts with jobGroupPrefix- Specified by:
pauseJobsStartingWith
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
pauseJobsEndingWith
public void pauseJobsEndingWith(java.lang.String jobGroupSuffix) throws java.lang.Exception
Description copied from interface:QuartzSchedulerMBean
Pause all jobs whose group ends with jobGroupSuffix- Specified by:
pauseJobsEndingWith
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
pauseJobsContaining
public void pauseJobsContaining(java.lang.String jobGroupToken) throws java.lang.Exception
Description copied from interface:QuartzSchedulerMBean
Pause all jobs whose group contains jobGroupToken- Specified by:
pauseJobsContaining
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
pauseJobsAll
public void pauseJobsAll() throws java.lang.Exception
Description copied from interface:QuartzSchedulerMBean
Pause all jobs whose group is anything- Specified by:
pauseJobsAll
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
pauseAllTriggers
public void pauseAllTriggers() throws java.lang.Exception
- Specified by:
pauseAllTriggers
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
pauseTriggerGroup
public void pauseTriggerGroup(java.lang.String triggerGroup) throws java.lang.Exception
- Specified by:
pauseTriggerGroup
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
pauseTriggersStartingWith
public void pauseTriggersStartingWith(java.lang.String triggerGroupPrefix) throws java.lang.Exception
Description copied from interface:QuartzSchedulerMBean
Pause all triggers whose group starts with triggerGroupPrefix- Specified by:
pauseTriggersStartingWith
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
pauseTriggersEndingWith
public void pauseTriggersEndingWith(java.lang.String triggerGroupSuffix) throws java.lang.Exception
Description copied from interface:QuartzSchedulerMBean
Pause all triggers whose group ends with triggerGroupSuffix- Specified by:
pauseTriggersEndingWith
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
pauseTriggersContaining
public void pauseTriggersContaining(java.lang.String triggerGroupToken) throws java.lang.Exception
Description copied from interface:QuartzSchedulerMBean
Pause all triggers whose group contains triggerGroupToken- Specified by:
pauseTriggersContaining
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
pauseTriggersAll
public void pauseTriggersAll() throws java.lang.Exception
Description copied from interface:QuartzSchedulerMBean
Pause all triggers whose group is anything- Specified by:
pauseTriggersAll
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
pauseTrigger
public void pauseTrigger(java.lang.String triggerName, java.lang.String triggerGroup) throws java.lang.Exception
- Specified by:
pauseTrigger
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
resumeAllTriggers
public void resumeAllTriggers() throws java.lang.Exception
- Specified by:
resumeAllTriggers
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
resumeJob
public void resumeJob(java.lang.String jobName, java.lang.String jobGroup) throws java.lang.Exception
- Specified by:
resumeJob
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
resumeJobs
public void resumeJobs(GroupMatcher<JobKey> matcher) throws java.lang.Exception
- Throws:
java.lang.Exception
-
resumeJobGroup
public void resumeJobGroup(java.lang.String jobGroup) throws java.lang.Exception
Description copied from interface:QuartzSchedulerMBean
Resume all jobs in the given group- Specified by:
resumeJobGroup
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
resumeJobsStartingWith
public void resumeJobsStartingWith(java.lang.String jobGroupPrefix) throws java.lang.Exception
Description copied from interface:QuartzSchedulerMBean
Resume all jobs whose group starts with jobGroupPrefix- Specified by:
resumeJobsStartingWith
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
resumeJobsEndingWith
public void resumeJobsEndingWith(java.lang.String jobGroupSuffix) throws java.lang.Exception
Description copied from interface:QuartzSchedulerMBean
Resume all jobs whose group ends with jobGroupSuffix- Specified by:
resumeJobsEndingWith
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
resumeJobsContaining
public void resumeJobsContaining(java.lang.String jobGroupToken) throws java.lang.Exception
Description copied from interface:QuartzSchedulerMBean
Resume all jobs whose group contains jobGroupToken- Specified by:
resumeJobsContaining
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
resumeJobsAll
public void resumeJobsAll() throws java.lang.Exception
Description copied from interface:QuartzSchedulerMBean
Resume all jobs whose group is anything- Specified by:
resumeJobsAll
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
resumeTrigger
public void resumeTrigger(java.lang.String triggerName, java.lang.String triggerGroup) throws java.lang.Exception
- Specified by:
resumeTrigger
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
resumeTriggerGroup
public void resumeTriggerGroup(java.lang.String triggerGroup) throws java.lang.Exception
- Specified by:
resumeTriggerGroup
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
resumeTriggersStartingWith
public void resumeTriggersStartingWith(java.lang.String triggerGroupPrefix) throws java.lang.Exception
Description copied from interface:QuartzSchedulerMBean
Resume all triggers whose group starts with triggerGroupPrefix- Specified by:
resumeTriggersStartingWith
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
resumeTriggersEndingWith
public void resumeTriggersEndingWith(java.lang.String triggerGroupSuffix) throws java.lang.Exception
Description copied from interface:QuartzSchedulerMBean
Resume all triggers whose group ends with triggerGroupSuffix- Specified by:
resumeTriggersEndingWith
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
resumeTriggersContaining
public void resumeTriggersContaining(java.lang.String triggerGroupToken) throws java.lang.Exception
Description copied from interface:QuartzSchedulerMBean
Resume all triggers whose group contains triggerGroupToken- Specified by:
resumeTriggersContaining
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
resumeTriggersAll
public void resumeTriggersAll() throws java.lang.Exception
Description copied from interface:QuartzSchedulerMBean
Resume all triggers whose group is anything- Specified by:
resumeTriggersAll
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
triggerJob
public void triggerJob(java.lang.String jobName, java.lang.String jobGroup, java.util.Map<java.lang.String,java.lang.String> jobDataMap) throws java.lang.Exception
- Specified by:
triggerJob
in interfaceQuartzSchedulerMBean
- Throws:
java.lang.Exception
-
triggerJob
public void triggerJob(javax.management.openmbean.CompositeData trigger) throws java.lang.Exception
- Throws:
java.lang.Exception
-
jobAdded
public void jobAdded(JobDetail jobDetail)
Description copied from interface:SchedulerListener
- Specified by:
jobAdded
in interfaceSchedulerListener
-
jobDeleted
public void jobDeleted(JobKey jobKey)
Description copied from interface:SchedulerListener
- Specified by:
jobDeleted
in interfaceSchedulerListener
-
jobScheduled
public void jobScheduled(Trigger trigger)
Description copied from interface:SchedulerListener
- Specified by:
jobScheduled
in interfaceSchedulerListener
-
jobUnscheduled
public void jobUnscheduled(TriggerKey triggerKey)
Description copied from interface:SchedulerListener
- Specified by:
jobUnscheduled
in interfaceSchedulerListener
- See Also:
SchedulerListener.schedulingDataCleared()
-
schedulingDataCleared
public void schedulingDataCleared()
Description copied from interface:SchedulerListener
Called by the
to inform the listener that all jobs, triggers and calendars were deleted.Scheduler
- Specified by:
schedulingDataCleared
in interfaceSchedulerListener
-
jobPaused
public void jobPaused(JobKey jobKey)
Description copied from interface:SchedulerListener
- Specified by:
jobPaused
in interfaceSchedulerListener
-
jobsPaused
public void jobsPaused(java.lang.String jobGroup)
Description copied from interface:SchedulerListener
- Specified by:
jobsPaused
in interfaceSchedulerListener
- Parameters:
jobGroup
- the paused group, or null if all were paused
-
jobsResumed
public void jobsResumed(java.lang.String jobGroup)
Description copied from interface:SchedulerListener
- Specified by:
jobsResumed
in interfaceSchedulerListener
-
jobResumed
public void jobResumed(JobKey jobKey)
Description copied from interface:SchedulerListener
- Specified by:
jobResumed
in interfaceSchedulerListener
-
schedulerError
public void schedulerError(java.lang.String msg, SchedulerException cause)
Description copied from interface:SchedulerListener
Called by the
when a serious error has occurred within the scheduler - such as repeated failures in theScheduler
JobStore
, or the inability to instantiate aJob
instance when itsTrigger
has fired.The
getErrorCode()
method of the given SchedulerException can be used to determine more specific information about the type of error that was encountered.- Specified by:
schedulerError
in interfaceSchedulerListener
-
schedulerStarted
public void schedulerStarted()
Description copied from interface:SchedulerListener
Called by the
to inform the listener that it has started.Scheduler
- Specified by:
schedulerStarted
in interfaceSchedulerListener
-
schedulerStarting
public void schedulerStarting()
Description copied from interface:SchedulerListener
Called by the
to inform the listener that it is starting.Scheduler
- Specified by:
schedulerStarting
in interfaceSchedulerListener
-
schedulerInStandbyMode
public void schedulerInStandbyMode()
Description copied from interface:SchedulerListener
Called by the
to inform the listener that it has move to standby mode.Scheduler
- Specified by:
schedulerInStandbyMode
in interfaceSchedulerListener
-
schedulerShutdown
public void schedulerShutdown()
Description copied from interface:SchedulerListener
Called by the
to inform the listener that it has shutdown.Scheduler
- Specified by:
schedulerShutdown
in interfaceSchedulerListener
-
schedulerShuttingdown
public void schedulerShuttingdown()
Description copied from interface:SchedulerListener
Called by the
to inform the listener that it has begun the shutdown sequence.Scheduler
- Specified by:
schedulerShuttingdown
in interfaceSchedulerListener
-
triggerFinalized
public void triggerFinalized(Trigger trigger)
Description copied from interface:SchedulerListener
- Specified by:
triggerFinalized
in interfaceSchedulerListener
-
triggersPaused
public void triggersPaused(java.lang.String triggerGroup)
Description copied from interface:SchedulerListener
Called by the
when a group ofScheduler
has been paused.Trigger
sIf all groups were paused then triggerGroup will be null
- Specified by:
triggersPaused
in interfaceSchedulerListener
- Parameters:
triggerGroup
- the paused group, or null if all were paused
-
triggerPaused
public void triggerPaused(TriggerKey triggerKey)
Description copied from interface:SchedulerListener
- Specified by:
triggerPaused
in interfaceSchedulerListener
-
triggersResumed
public void triggersResumed(java.lang.String triggerGroup)
Description copied from interface:SchedulerListener
- Specified by:
triggersResumed
in interfaceSchedulerListener
-
triggerResumed
public void triggerResumed(TriggerKey triggerKey)
Description copied from interface:SchedulerListener
- Specified by:
triggerResumed
in interfaceSchedulerListener
-
getName
public java.lang.String getName()
Description copied from interface:JobListener
Get the name of the
JobListener
.- Specified by:
getName
in interfaceJobListener
-
jobExecutionVetoed
public void jobExecutionVetoed(JobExecutionContext context)
Description copied from interface:JobListener
Called by the
when aScheduler
was about to be executed (an associatedJobDetail
has occurred), but aTrigger
vetoed it's execution.TriggerListener
- Specified by:
jobExecutionVetoed
in interfaceJobListener
- See Also:
JobListener.jobToBeExecuted(JobExecutionContext)
-
jobToBeExecuted
public void jobToBeExecuted(JobExecutionContext context)
Description copied from interface:JobListener
Called by the
when aScheduler
is about to be executed (an associatedJobDetail
has occurred).Trigger
This method will not be invoked if the execution of the Job was vetoed by a
.TriggerListener
- Specified by:
jobToBeExecuted
in interfaceJobListener
- See Also:
JobListener.jobExecutionVetoed(JobExecutionContext)
-
jobWasExecuted
public void jobWasExecuted(JobExecutionContext context, JobExecutionException jobException)
Description copied from interface:JobListener
Called by the
after aScheduler
has been executed, and be for the associatedJobDetail
Trigger
'striggered(xx)
method has been called.- Specified by:
jobWasExecuted
in interfaceJobListener
-
sendNotification
public void sendNotification(java.lang.String eventType)
sendNotification- Parameters:
eventType
-
-
sendNotification
public void sendNotification(java.lang.String eventType, java.lang.Object data)
sendNotification- Parameters:
eventType
-data
-
-
sendNotification
public void sendNotification(java.lang.String eventType, java.lang.Object data, java.lang.String msg)
sendNotification- Parameters:
eventType
-data
-msg
-
-
addNotificationListener
public void addNotificationListener(javax.management.NotificationListener notif, javax.management.NotificationFilter filter, java.lang.Object callBack)
- Specified by:
addNotificationListener
in interfacejavax.management.NotificationBroadcaster
- See Also:
NotificationBroadcaster.addNotificationListener(javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object)
-
getNotificationInfo
public javax.management.MBeanNotificationInfo[] getNotificationInfo()
- Specified by:
getNotificationInfo
in interfacejavax.management.NotificationBroadcaster
- See Also:
NotificationBroadcaster.getNotificationInfo()
-
removeNotificationListener
public void removeNotificationListener(javax.management.NotificationListener listener) throws javax.management.ListenerNotFoundException
- Specified by:
removeNotificationListener
in interfacejavax.management.NotificationBroadcaster
- Throws:
javax.management.ListenerNotFoundException
- See Also:
NotificationBroadcaster.removeNotificationListener(javax.management.NotificationListener)
-
removeNotificationListener
public void removeNotificationListener(javax.management.NotificationListener notif, javax.management.NotificationFilter filter, java.lang.Object callBack) throws javax.management.ListenerNotFoundException
- Specified by:
removeNotificationListener
in interfacejavax.management.NotificationEmitter
- Throws:
javax.management.ListenerNotFoundException
- See Also:
NotificationEmitter.removeNotificationListener(javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object)
-
isSampledStatisticsEnabled
public boolean isSampledStatisticsEnabled()
- Specified by:
isSampledStatisticsEnabled
in interfaceQuartzSchedulerMBean
-
setSampledStatisticsEnabled
public void setSampledStatisticsEnabled(boolean enabled)
- Specified by:
setSampledStatisticsEnabled
in interfaceQuartzSchedulerMBean
-
getJobsCompletedMostRecentSample
public long getJobsCompletedMostRecentSample()
- Specified by:
getJobsCompletedMostRecentSample
in interfaceQuartzSchedulerMBean
-
getJobsExecutedMostRecentSample
public long getJobsExecutedMostRecentSample()
- Specified by:
getJobsExecutedMostRecentSample
in interfaceQuartzSchedulerMBean
-
getJobsScheduledMostRecentSample
public long getJobsScheduledMostRecentSample()
- Specified by:
getJobsScheduledMostRecentSample
in interfaceQuartzSchedulerMBean
-
getPerformanceMetrics
public java.util.Map<java.lang.String,java.lang.Long> getPerformanceMetrics()
- Specified by:
getPerformanceMetrics
in interfaceQuartzSchedulerMBean
-
-