Solved

Quartz Scheduler - What is the difference between standby() and pauseAll()?

Posted on 2010-09-06
4
1,566 Views
Last Modified: 2012-06-27
I'm using Quartz Scheduler v.1.8.0.

What's the difference between scheduler.standby() and scheduler.pauseAll()?
   standby() - Temporarily halts the Scheduler's firing of Triggers.

    pauseAll() - Pause all triggers - similar to calling pauseTriggerGroup(group) on every group, however, after using this method resumeAll() must be called to clear the scheduler's state of 'remembering' that all new triggers will be paused as they are added.
Based on what I've understood from the API documentation, I'm not able to easily/clearly differentiate/distinguish from each one of them. I'm seeing both of them serving the same purpose - temporarily pause/halt all the triggers in the scheduler, and subsequently followed by a start() (for standby) or resumeAll() (for pauseAll) to clear the scheduler's state. Is there any other difference?

Hope community experts can help me in understanding any subtle difference.
0
Comment
Question by:Zoniac
  • 2
  • 2
4 Comments
 
LVL 26

Accepted Solution

by:
ksivananth earned 100 total points
ID: 33610234
the difference is in applying or not applying misfire instruction.
standBy - misfire instruction is not applied
pause - is applied

for more info on misfire, http://www.quartz-scheduler.org/docs/tutorial/TutorialLesson04.html - check for "Misfire Instructions"
0
 
LVL 1

Author Comment

by:Zoniac
ID: 33610438
Hi ksivananth,

Thanks.  But, I'm surprised that this important difference is not mentioned explicitly either in API documentation or in tutorials, which is worth it.

How could you able to make out/ find this difference?  Is there any documentation link on this or it's your experience?

Again, thanks for your comments.
0
 
LVL 26

Expert Comment

by:ksivananth
ID: 33611116
0
 
LVL 1

Author Closing Comment

by:Zoniac
ID: 33611135
Solution arrived.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
return in catch statement 1 40
strDist challenge 35 84
thymeleaf natural templating vs JSP 2 25
JList custom Cell Renderer refresh 15 41
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
The viewer will learn how to implement Singleton Design Pattern in Java.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now