Class: Java::OrgQuartzImpl::StdScheduler
- Inherits:
-
Object
- Object
- Java::OrgQuartzImpl::StdScheduler
- Defined in:
- lib/secondhand/scheduler.rb
Overview
Add some sugar on StdScheduler
Instance Method Summary collapse
- #paused? ⇒ Boolean (also: #standing_by?)
- #run ⇒ Object
- #running? ⇒ Boolean
- #stop ⇒ Object
- #stop_now ⇒ Object
- #stopped? ⇒ Boolean
Instance Method Details
#paused? ⇒ Boolean Also known as: standing_by?
39 40 41 |
# File 'lib/secondhand/scheduler.rb', line 39 def paused? is_in_standby_mode end |
#run ⇒ Object
23 24 25 |
# File 'lib/secondhand/scheduler.rb', line 23 def run start end |
#running? ⇒ Boolean
35 36 37 |
# File 'lib/secondhand/scheduler.rb', line 35 def running? is_started end |
#stop ⇒ Object
31 32 33 |
# File 'lib/secondhand/scheduler.rb', line 31 def stop shutdown(true) # waits for all jobs to finish end |
#stop_now ⇒ Object
27 28 29 |
# File 'lib/secondhand/scheduler.rb', line 27 def stop_now shutdown end |
#stopped? ⇒ Boolean
44 45 46 |
# File 'lib/secondhand/scheduler.rb', line 44 def stopped? is_shutdown end |