Class: Azkaban::JavaJob

Inherits:
JobFile show all
Defined in:
lib/azkaban-rb/tasks.rb

Instance Attribute Summary

Attributes inherited from JobFile

#read_locks, #task, #uses_arg, #write_locks

Instance Method Summary collapse

Methods inherited from JobFile

#[], #[]=, #reads, #set, #write, #writes

Constructor Details

#initialize(task, ext) ⇒ JavaJob

Returns a new instance of JavaJob.



172
173
174
175
# File 'lib/azkaban-rb/tasks.rb', line 172

def initialize(task, ext)
  super(task,ext)
  set "type"=>"java"
end

Instance Method Details

#uses(name) ⇒ Object



177
178
179
180
# File 'lib/azkaban-rb/tasks.rb', line 177

def uses(name)
  @uses_arg = name
  set "job.class"=>name
end