Class: Jobs::BaseJobDetail

Inherits:
Object
  • Object
show all
Defined in:
lib/jobs/base_job_detail.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, group, job) ⇒ BaseJobDetail

Returns a new instance of BaseJobDetail.



9
10
11
12
13
14
# File 'lib/jobs/base_job_detail.rb', line 9

def initialize(name, group, job)
  super()
  set_name name
  set_group group
  @job = job
end

Instance Attribute Details

#jobObject

Returns the value of attribute job.



7
8
9
# File 'lib/jobs/base_job_detail.rb', line 7

def job
  @job
end

Instance Method Details

#validateObject

Raises:

  • (org.quartz.SchedulerException)


16
17
18
19
20
21
# File 'lib/jobs/base_job_detail.rb', line 16

def validate
  raise org.quartz.SchedulerException.new("Job's name cannot be null",
    org.quartz.SchedulerException.ERR_CLIENT_ERROR) if get_name == nil
  raise org.quartz.SchedulerException.new("Job's group cannot be null",
    org.quartz.SchedulerException.ERR_CLIENT_ERROR) if get_group == nil
end