class OFlow::Inspector::TaskStat
Constants
- STATE_MAP
Attributes
activity[R]
count[R]
name[R]
proc_cnt[R]
queued[R]
state[R]
task[R]
Public Class Methods
new(t)
click to toggle source
# File lib/oflow/inspector.rb, line 480 def initialize(t) @task = t @proc_cnt = t.proc_count() @activity = 0 @queued = t.queue_count() @name = t.full_name @count = @proc_cnt.to_s @state = STATE_MAP.fetch(t.state, '?') end
Public Instance Methods
refresh()
click to toggle source
# File lib/oflow/inspector.rb, line 490 def refresh() cnt = @task.proc_count() @activity = cnt - @proc_cnt @proc_cnt = cnt @queued = @task.queue_count() @count = cnt.to_s @state = STATE_MAP.fetch(@task.state, '?') end