Ruby bindings for GridEngine
Classes
- rsgehost
- rsgejobs < rsgereq
- rsgequeue
- rsgereq
globalHost = Rsgehost.new("global")
puts "Number of matlab licenses max for cluster: " + globalHost.complex_value(:matlab).to_s
- (array) complex_list
- (string) complex_value
- (array) load_list
- (string) load_value
jobs = Rsgejob.new
jobs.each do |job|
puts job.jobid + " " + job.owner + " " + job.state
end
...
1 user1 r
2 user2 r
3 user1 r
4 user3 w
- each
- list
- jobid
- slots
- subTime
- startTime
- queueName
- hardReqQueue
- state
- owner
- hardRequestList
- hardRequest
- softRequestList
- softRequest
require 'rsgequeue'
queues = Rsgequeue.new
queues.each do |queue|
puts queue.name.to_s + " " + queue.used.to_s + " " + queue.available.to_s + " " + queue.total.to_s
end
- list
- each
- name
- load
- used
- reserved
- available
- total
- disabled
Still under development... not expected to work.