Class: Java::OrgQuartzImpl::StdScheduler

Inherits:
Object
  • Object
show all
Defined in:
lib/secondhand/scheduler.rb

Overview

Add some sugar on StdScheduler

Instance Method Summary collapse

Instance Method Details

#paused?Boolean Also known as: standing_by?

Returns:

  • (Boolean)


39
40
41
# File 'lib/secondhand/scheduler.rb', line 39

def paused?
  is_in_standby_mode
end

#runObject



23
24
25
# File 'lib/secondhand/scheduler.rb', line 23

def run
  start
end

#running?Boolean

Returns:

  • (Boolean)


35
36
37
# File 'lib/secondhand/scheduler.rb', line 35

def running?
  is_started
end

#stopObject



31
32
33
# File 'lib/secondhand/scheduler.rb', line 31

def stop
  shutdown(true) # waits for all jobs to finish
end

#stop_nowObject



27
28
29
# File 'lib/secondhand/scheduler.rb', line 27

def stop_now
  shutdown
end

#stopped?Boolean

Returns:

  • (Boolean)


44
45
46
# File 'lib/secondhand/scheduler.rb', line 44

def stopped?
  is_shutdown
end