|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.management.StandardMBean
org.quartz.core.QuartzSchedulerMBeanImpl
public class QuartzSchedulerMBeanImpl
| Field Summary | |
|---|---|
protected org.quartz.core.QuartzSchedulerMBeanImpl.Emitter |
emitter
emitter |
protected 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 | |
|---|---|
protected |
QuartzSchedulerMBeanImpl(QuartzScheduler scheduler)
QuartzSchedulerMBeanImpl |
| Method Summary | |
|---|---|
void |
addJob(javax.management.openmbean.CompositeData jobDetail,
boolean replace)
|
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 |
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 the JobListener. |
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 jobName,
java.lang.String jobGroupName)
|
boolean |
isSampledStatisticsEnabled()
|
boolean |
isShutdown()
|
boolean |
isStandbyMode()
|
boolean |
isStarted()
|
void |
jobAdded(JobDetail jobDetail)
Called by the when a
has been added. |
void |
jobDeleted(JobKey jobKey)
Called by the when a
has been deleted. |
void |
jobExecutionVetoed(JobExecutionContext context)
Called by the when a
was about to be executed (an associated
has occurred), but a vetoed it's
execution. |
void |
jobPaused(JobKey jobKey)
Called by the when a
has been paused. |
void |
jobResumed(JobKey jobKey)
Called by the when a
has been un-paused. |
void |
jobScheduled(Trigger trigger)
Called by the when a
is scheduled. |
void |
jobsPaused(java.lang.String jobGroup)
Called by the when a
group of has been paused. |
void |
jobsResumed(java.lang.String jobGroup)
Called by the when a
group of has been un-paused. |
void |
jobToBeExecuted(JobExecutionContext context)
Called by the when a
is about to be executed (an associated
has occurred). |
void |
jobUnscheduled(TriggerKey triggerKey)
Called by the when a
is unscheduled. |
void |
jobWasExecuted(JobExecutionContext context,
JobExecutionException jobException)
Called by the after a
has been executed, and be for the associated Trigger's
triggered(xx) method has been called. |
void |
pauseAllTriggers()
|
void |
pauseJob(java.lang.String jobName,
java.lang.String jobGroup)
|
void |
pauseJobGroup(java.lang.String jobGroup)
|
void |
pauseJobs(GroupMatcher matcher)
|
void |
pauseJobsContaining(java.lang.String jobGroupToken)
Pause all jobs whose group contains jobGroupToken |
void |
pauseJobsEndingWith(java.lang.String jobGroupSuffix)
Pause all jobs whose group ends with jobGroupSuffix |
void |
pauseJobsStartingWith(java.lang.String jobGroupPrefix)
Pause all jobs whose group starts with jobGroupPrefix |
void |
pauseTrigger(java.lang.String triggerName,
java.lang.String triggerGroup)
|
void |
pauseTriggerGroup(java.lang.String triggerGroup)
|
void |
pauseTriggersContaining(java.lang.String triggerGroupToken)
Pause all triggers whose group contains triggerGroupToken |
void |
pauseTriggersEndingWith(java.lang.String triggerGroupSuffix)
Pause all triggers whose group ends with triggerGroupSuffix |
void |
pauseTriggersStartingWith(java.lang.String triggerGroupPrefix)
Pause all triggers whose group starts with triggerGroupPrefix |
void |
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)
|
void |
resumeJobs(GroupMatcher matcher)
|
void |
resumeJobsContaining(java.lang.String jobGroupToken)
Resume all jobs whose group contains jobGroupToken |
void |
resumeJobsEndingWith(java.lang.String jobGroupSuffix)
Resume all jobs whose group ends with jobGroupSuffix |
void |
resumeJobsStartingWith(java.lang.String jobGroupPrefix)
Resume all jobs whose group starts with jobGroupPrefix |
void |
resumeTrigger(java.lang.String triggerName,
java.lang.String triggerGroup)
|
void |
resumeTriggerGroup(java.lang.String triggerGroup)
|
void |
resumeTriggersContaining(java.lang.String triggerGroupToken)
Resume all triggers whose group contains triggerGroupToken |
void |
resumeTriggersEndingWith(java.lang.String triggerGroupSuffix)
Resume all triggers whose group ends with triggerGroupSuffix |
void |
resumeTriggersStartingWith(java.lang.String triggerGroupPrefix)
Resume all triggers whose group starts with triggerGroupPrefix |
void |
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. |
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 |
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. |
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 |
schedulerError(java.lang.String msg,
SchedulerException cause)
Called by the when a serious error has
occurred within the scheduler - such as repeated failures in the JobStore,
or the inability to instantiate a Job instance when its
Trigger has fired. |
void |
schedulerInStandbyMode()
Called by the to inform the listener
that it has move to standby mode. |
void |
schedulerShutdown()
Called by the to inform the listener
that it has shutdown. |
void |
schedulerShuttingdown()
Called by the to inform the listener
that it has begun the shutdown sequence. |
void |
schedulerStarted()
Called by the to inform the listener
that it has started. |
void |
schedulingDataCleared()
Called by the to inform the listener
that all jobs, triggers and calendars were deleted. |
void |
sendNotification(java.lang.String eventType)
sendNotification |
void |
sendNotification(java.lang.String eventType,
java.lang.Object data)
sendNotification |
void |
sendNotification(java.lang.String eventType,
java.lang.Object data,
java.lang.String msg)
sendNotification |
void |
setSampledStatisticsEnabled(boolean enabled)
|
void |
shutdown()
|
void |
standby()
|
void |
start()
|
void |
triggerFinalized(Trigger trigger)
Called by the when a
has reached the condition in which it will never fire again. |
void |
triggerJob(javax.management.openmbean.CompositeData trigger)
|
void |
triggerJob(java.lang.String jobName,
java.lang.String jobGroup,
java.util.Map<java.lang.String,java.lang.String> jobDataMap)
|
void |
triggerPaused(TriggerKey triggerKey)
Called by the when a
has been paused. |
void |
triggerResumed(TriggerKey triggerKey)
Called by the when a
has been un-paused. |
void |
triggersPaused(java.lang.String triggerGroup)
Called by the when a
group of has been paused. |
void |
triggersResumed(java.lang.String triggerGroup)
Called by the when a
group of has been un-paused. |
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.quartz.core.QuartzSchedulerMBeanImpl.Emitter emitter
protected final java.util.concurrent.atomic.AtomicLong sequenceNumber
| Constructor Detail |
|---|
protected QuartzSchedulerMBeanImpl(QuartzScheduler scheduler)
throws javax.management.NotCompliantMBeanException
javax.management.NotCompliantMBeanException| Method Detail |
|---|
public javax.management.openmbean.TabularData getCurrentlyExecutingJobs()
throws java.lang.Exception
getCurrentlyExecutingJobs in interface QuartzSchedulerMBeanjava.lang.Exception
public javax.management.openmbean.TabularData getAllJobDetails()
throws java.lang.Exception
getAllJobDetails in interface QuartzSchedulerMBeanjava.lang.ExceptionJobDetailSupport
public java.util.List<javax.management.openmbean.CompositeData> getAllTriggers()
throws java.lang.Exception
getAllTriggers in interface QuartzSchedulerMBeanjava.lang.ExceptionTriggerSupport
public void addJob(javax.management.openmbean.CompositeData jobDetail,
boolean replace)
throws java.lang.Exception
addJob in interface QuartzSchedulerMBeanjava.lang.Exception
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
QuartzSchedulerMBean
scheduleBasicJob in interface QuartzSchedulerMBeanjava.lang.Exception
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
QuartzSchedulerMBean
scheduleJob in interface QuartzSchedulerMBeanjava.lang.Exception
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
QuartzSchedulerMBean
scheduleJob in interface QuartzSchedulerMBeanjava.lang.Exception
public void addJob(java.util.Map<java.lang.String,java.lang.Object> abstractJobInfo,
boolean replace)
throws java.lang.Exception
QuartzSchedulerMBean
addJob in interface QuartzSchedulerMBeanjava.lang.Exception
public void deleteCalendar(java.lang.String calendarName)
throws java.lang.Exception
deleteCalendar in interface QuartzSchedulerMBeanjava.lang.Exception
public boolean deleteJob(java.lang.String jobName,
java.lang.String jobGroupName)
throws java.lang.Exception
deleteJob in interface QuartzSchedulerMBeanjava.lang.Exception
public java.util.List<java.lang.String> getCalendarNames()
throws java.lang.Exception
getCalendarNames in interface QuartzSchedulerMBeanjava.lang.Exception
public javax.management.openmbean.CompositeData getJobDetail(java.lang.String jobName,
java.lang.String jobGroupName)
throws java.lang.Exception
getJobDetail in interface QuartzSchedulerMBeanjava.lang.ExceptionJobDetailSupport
public java.util.List<java.lang.String> getJobGroupNames()
throws java.lang.Exception
getJobGroupNames in interface QuartzSchedulerMBeanjava.lang.Exception
public java.util.List<java.lang.String> getJobNames(java.lang.String groupName)
throws java.lang.Exception
getJobNames in interface QuartzSchedulerMBeanjava.lang.Exceptionpublic java.lang.String getJobStoreClassName()
getJobStoreClassName in interface QuartzSchedulerMBean
public java.util.Set<java.lang.String> getPausedTriggerGroups()
throws java.lang.Exception
getPausedTriggerGroups in interface QuartzSchedulerMBeanjava.lang.Exception
public javax.management.openmbean.CompositeData getTrigger(java.lang.String name,
java.lang.String groupName)
throws java.lang.Exception
getTrigger in interface QuartzSchedulerMBeanjava.lang.Exception
public java.util.List<java.lang.String> getTriggerGroupNames()
throws java.lang.Exception
getTriggerGroupNames in interface QuartzSchedulerMBeanjava.lang.Exception
public java.util.List<java.lang.String> getTriggerNames(java.lang.String groupName)
throws java.lang.Exception
getTriggerNames in interface QuartzSchedulerMBeanjava.lang.Exception
public java.lang.String getTriggerState(java.lang.String triggerName,
java.lang.String triggerGroupName)
throws java.lang.Exception
getTriggerState in interface QuartzSchedulerMBeanjava.lang.Exception
public java.util.List<javax.management.openmbean.CompositeData> getTriggersOfJob(java.lang.String jobName,
java.lang.String jobGroupName)
throws java.lang.Exception
getTriggersOfJob in interface QuartzSchedulerMBeanjava.lang.ExceptionTriggerSupport
public boolean interruptJob(java.lang.String jobName,
java.lang.String jobGroupName)
throws java.lang.Exception
interruptJob in interface QuartzSchedulerMBeanjava.lang.Exception
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
QuartzSchedulerMBean
scheduleJob in interface QuartzSchedulerMBeanjava.lang.Exception
public boolean unscheduleJob(java.lang.String triggerName,
java.lang.String triggerGroup)
throws java.lang.Exception
unscheduleJob in interface QuartzSchedulerMBeanjava.lang.Exception
public void clear()
throws java.lang.Exception
clear in interface QuartzSchedulerMBeanjava.lang.Exceptionpublic java.lang.String getVersion()
getVersion in interface QuartzSchedulerMBeanpublic boolean isShutdown()
isShutdown in interface QuartzSchedulerMBeanpublic boolean isStarted()
isStarted in interface QuartzSchedulerMBean
public void start()
throws java.lang.Exception
start in interface QuartzSchedulerMBeanjava.lang.Exceptionpublic void shutdown()
shutdown in interface QuartzSchedulerMBeanpublic void standby()
standby in interface QuartzSchedulerMBeanpublic boolean isStandbyMode()
isStandbyMode in interface QuartzSchedulerMBeanpublic java.lang.String getSchedulerName()
getSchedulerName in interface QuartzSchedulerMBeanpublic java.lang.String getSchedulerInstanceId()
getSchedulerInstanceId in interface QuartzSchedulerMBeanpublic java.lang.String getThreadPoolClassName()
getThreadPoolClassName in interface QuartzSchedulerMBeanpublic int getThreadPoolSize()
getThreadPoolSize in interface QuartzSchedulerMBean
public void pauseJob(java.lang.String jobName,
java.lang.String jobGroup)
throws java.lang.Exception
pauseJob in interface QuartzSchedulerMBeanjava.lang.Exception
public void pauseJobs(GroupMatcher matcher)
throws java.lang.Exception
java.lang.Exception
public void pauseJobGroup(java.lang.String jobGroup)
throws java.lang.Exception
pauseJobGroup in interface QuartzSchedulerMBeanjava.lang.Exception
public void pauseJobsStartingWith(java.lang.String jobGroupPrefix)
throws java.lang.Exception
QuartzSchedulerMBean
pauseJobsStartingWith in interface QuartzSchedulerMBeanjava.lang.Exception
public void pauseJobsEndingWith(java.lang.String jobGroupSuffix)
throws java.lang.Exception
QuartzSchedulerMBean
pauseJobsEndingWith in interface QuartzSchedulerMBeanjava.lang.Exception
public void pauseJobsContaining(java.lang.String jobGroupToken)
throws java.lang.Exception
QuartzSchedulerMBean
pauseJobsContaining in interface QuartzSchedulerMBeanjava.lang.Exception
public void pauseAllTriggers()
throws java.lang.Exception
pauseAllTriggers in interface QuartzSchedulerMBeanjava.lang.Exception
public void pauseTriggerGroup(java.lang.String triggerGroup)
throws java.lang.Exception
pauseTriggerGroup in interface QuartzSchedulerMBeanjava.lang.Exception
public void pauseTriggersStartingWith(java.lang.String triggerGroupPrefix)
throws java.lang.Exception
QuartzSchedulerMBean
pauseTriggersStartingWith in interface QuartzSchedulerMBeanjava.lang.Exception
public void pauseTriggersEndingWith(java.lang.String triggerGroupSuffix)
throws java.lang.Exception
QuartzSchedulerMBean
pauseTriggersEndingWith in interface QuartzSchedulerMBeanjava.lang.Exception
public void pauseTriggersContaining(java.lang.String triggerGroupToken)
throws java.lang.Exception
QuartzSchedulerMBean
pauseTriggersContaining in interface QuartzSchedulerMBeanjava.lang.Exception
public void pauseTrigger(java.lang.String triggerName,
java.lang.String triggerGroup)
throws java.lang.Exception
pauseTrigger in interface QuartzSchedulerMBeanjava.lang.Exception
public void resumeAllTriggers()
throws java.lang.Exception
resumeAllTriggers in interface QuartzSchedulerMBeanjava.lang.Exception
public void resumeJob(java.lang.String jobName,
java.lang.String jobGroup)
throws java.lang.Exception
resumeJob in interface QuartzSchedulerMBeanjava.lang.Exception
public void resumeJobs(GroupMatcher matcher)
throws java.lang.Exception
java.lang.Exception
public void resumeJobGroup(java.lang.String jobGroup)
throws java.lang.Exception
resumeJobGroup in interface QuartzSchedulerMBeanjava.lang.Exception
public void resumeJobsStartingWith(java.lang.String jobGroupPrefix)
throws java.lang.Exception
QuartzSchedulerMBean
resumeJobsStartingWith in interface QuartzSchedulerMBeanjava.lang.Exception
public void resumeJobsEndingWith(java.lang.String jobGroupSuffix)
throws java.lang.Exception
QuartzSchedulerMBean
resumeJobsEndingWith in interface QuartzSchedulerMBeanjava.lang.Exception
public void resumeJobsContaining(java.lang.String jobGroupToken)
throws java.lang.Exception
QuartzSchedulerMBean
resumeJobsContaining in interface QuartzSchedulerMBeanjava.lang.Exception
public void resumeTrigger(java.lang.String triggerName,
java.lang.String triggerGroup)
throws java.lang.Exception
resumeTrigger in interface QuartzSchedulerMBeanjava.lang.Exception
public void resumeTriggerGroup(java.lang.String triggerGroup)
throws java.lang.Exception
resumeTriggerGroup in interface QuartzSchedulerMBeanjava.lang.Exception
public void resumeTriggersStartingWith(java.lang.String triggerGroupPrefix)
throws java.lang.Exception
QuartzSchedulerMBean
resumeTriggersStartingWith in interface QuartzSchedulerMBeanjava.lang.Exception
public void resumeTriggersEndingWith(java.lang.String triggerGroupSuffix)
throws java.lang.Exception
QuartzSchedulerMBean
resumeTriggersEndingWith in interface QuartzSchedulerMBeanjava.lang.Exception
public void resumeTriggersContaining(java.lang.String triggerGroupToken)
throws java.lang.Exception
QuartzSchedulerMBean
resumeTriggersContaining in interface QuartzSchedulerMBeanjava.lang.Exception
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
triggerJob in interface QuartzSchedulerMBeanjava.lang.Exception
public void triggerJob(javax.management.openmbean.CompositeData trigger)
throws java.lang.Exception
java.lang.Exceptionpublic void jobAdded(JobDetail jobDetail)
SchedulerListener
Called by the when a Scheduler
has been added.
JobDetail
jobAdded in interface SchedulerListenerpublic void jobDeleted(JobKey jobKey)
SchedulerListener
Called by the when a Scheduler
has been deleted.
JobDetail
jobDeleted in interface SchedulerListenerpublic void jobScheduled(Trigger trigger)
SchedulerListener
Called by the when a Scheduler
is scheduled.
JobDetail
jobScheduled in interface SchedulerListenerpublic void jobUnscheduled(TriggerKey triggerKey)
SchedulerListener
Called by the when a Scheduler
is unscheduled.
JobDetail
jobUnscheduled in interface SchedulerListenerSchedulerListener.schedulingDataCleared()public void schedulingDataCleared()
SchedulerListenerScheduler to inform the listener
that all jobs, triggers and calendars were deleted.
schedulingDataCleared in interface SchedulerListenerpublic void jobPaused(JobKey jobKey)
SchedulerListener
Called by the when a Scheduler
has been paused.
JobDetail
jobPaused in interface SchedulerListenerpublic void jobsPaused(java.lang.String jobGroup)
SchedulerListener
Called by the when a
group of Scheduler has been paused.
JobDetails
jobsPaused in interface SchedulerListenerjobGroup - the paused group, or null if all were pausedpublic void jobsResumed(java.lang.String jobGroup)
SchedulerListener
Called by the when a
group of Scheduler has been un-paused.
JobDetails
jobsResumed in interface SchedulerListenerpublic void jobResumed(JobKey jobKey)
SchedulerListener
Called by the when a Scheduler
has been un-paused.
JobDetail
jobResumed in interface SchedulerListener
public void schedulerError(java.lang.String msg,
SchedulerException cause)
SchedulerListener
Called by the when a serious error has
occurred within the scheduler - such as repeated failures in the SchedulerJobStore,
or the inability to instantiate a Job instance when its
Trigger 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.
schedulerError in interface SchedulerListenerpublic void schedulerStarted()
SchedulerListener
Called by the to inform the listener
that it has started.
Scheduler
schedulerStarted in interface SchedulerListenerpublic void schedulerInStandbyMode()
SchedulerListener
Called by the to inform the listener
that it has move to standby mode.
Scheduler
schedulerInStandbyMode in interface SchedulerListenerpublic void schedulerShutdown()
SchedulerListener
Called by the to inform the listener
that it has shutdown.
Scheduler
schedulerShutdown in interface SchedulerListenerpublic void schedulerShuttingdown()
SchedulerListener
Called by the to inform the listener
that it has begun the shutdown sequence.
Scheduler
schedulerShuttingdown in interface SchedulerListenerpublic void triggerFinalized(Trigger trigger)
SchedulerListener
Called by the when a Scheduler
has reached the condition in which it will never fire again.
Trigger
triggerFinalized in interface SchedulerListenerpublic void triggersPaused(java.lang.String triggerGroup)
SchedulerListener
Called by the when a
group of Scheduler has been paused.
Triggers
If all groups were paused then triggerGroup will be null
triggersPaused in interface SchedulerListenertriggerGroup - the paused group, or null if all were pausedpublic void triggerPaused(TriggerKey triggerKey)
SchedulerListener
Called by the when a Scheduler
has been paused.
Trigger
triggerPaused in interface SchedulerListenerpublic void triggersResumed(java.lang.String triggerGroup)
SchedulerListener
Called by the when a
group of Scheduler has been un-paused.
Triggers
triggersResumed in interface SchedulerListenerpublic void triggerResumed(TriggerKey triggerKey)
SchedulerListener
Called by the when a Scheduler
has been un-paused.
Trigger
triggerResumed in interface SchedulerListenerpublic java.lang.String getName()
JobListener
Get the name of the JobListener.
getName in interface JobListenerpublic void jobExecutionVetoed(JobExecutionContext context)
JobListener
Called by the when a Scheduler
was about to be executed (an associated JobDetail
has occurred), but a Trigger vetoed it's
execution.
TriggerListener
jobExecutionVetoed in interface JobListenerJobListener.jobToBeExecuted(JobExecutionContext)public void jobToBeExecuted(JobExecutionContext context)
JobListener
Called by the when a Scheduler
is about to be executed (an associated JobDetail
has occurred).
Trigger
This method will not be invoked if the execution of the Job was vetoed
by a .
TriggerListener
jobToBeExecuted in interface JobListenerJobListener.jobExecutionVetoed(JobExecutionContext)
public void jobWasExecuted(JobExecutionContext context,
JobExecutionException jobException)
JobListener
Called by the after a Scheduler
has been executed, and be for the associated JobDetailTrigger's
triggered(xx) method has been called.
jobWasExecuted in interface JobListenerpublic void sendNotification(java.lang.String eventType)
eventType -
public void sendNotification(java.lang.String eventType,
java.lang.Object data)
eventType - data -
public void sendNotification(java.lang.String eventType,
java.lang.Object data,
java.lang.String msg)
eventType - data - msg -
public void addNotificationListener(javax.management.NotificationListener notif,
javax.management.NotificationFilter filter,
java.lang.Object callBack)
addNotificationListener in interface javax.management.NotificationBroadcasterNotificationBroadcaster.addNotificationListener(javax.management.NotificationListener,
javax.management.NotificationFilter, java.lang.Object)public javax.management.MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo in interface javax.management.NotificationBroadcasterNotificationBroadcaster.getNotificationInfo()
public void removeNotificationListener(javax.management.NotificationListener listener)
throws javax.management.ListenerNotFoundException
removeNotificationListener in interface javax.management.NotificationBroadcasterjavax.management.ListenerNotFoundExceptionNotificationBroadcaster.removeNotificationListener(javax.management.NotificationListener)
public void removeNotificationListener(javax.management.NotificationListener notif,
javax.management.NotificationFilter filter,
java.lang.Object callBack)
throws javax.management.ListenerNotFoundException
removeNotificationListener in interface javax.management.NotificationEmitterjavax.management.ListenerNotFoundExceptionNotificationEmitter.removeNotificationListener(javax.management.NotificationListener,
javax.management.NotificationFilter, java.lang.Object)public boolean isSampledStatisticsEnabled()
isSampledStatisticsEnabled in interface QuartzSchedulerMBeanpublic void setSampledStatisticsEnabled(boolean enabled)
setSampledStatisticsEnabled in interface QuartzSchedulerMBeanpublic long getJobsCompletedMostRecentSample()
getJobsCompletedMostRecentSample in interface QuartzSchedulerMBeanpublic long getJobsExecutedMostRecentSample()
getJobsExecutedMostRecentSample in interface QuartzSchedulerMBeanpublic long getJobsScheduledMostRecentSample()
getJobsScheduledMostRecentSample in interface QuartzSchedulerMBeanpublic java.util.Map<java.lang.String,java.lang.Long> getPerformanceMetrics()
getPerformanceMetrics in interface QuartzSchedulerMBean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||