Class: Opee::SocketInspector::ActorStat

Inherits:
Object
  • Object
show all
Defined in:
lib/opee/inspector.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (ActorStat) initialize(a)

Returns a new instance of ActorStat



342
343
344
345
346
347
# File 'lib/opee/inspector.rb', line 342

def initialize(a)
  @actor = a
  @proc_cnt = a.proc_count()
  @activity = 0
  @queued = a.queue_count()
end

Instance Attribute Details

- (Object) activity (readonly)

Returns the value of attribute activity



340
341
342
# File 'lib/opee/inspector.rb', line 340

def activity
  @activity
end

- (Object) actor (readonly)

Returns the value of attribute actor



338
339
340
# File 'lib/opee/inspector.rb', line 338

def actor
  @actor
end

- (Object) queued (readonly)

Returns the value of attribute queued



339
340
341
# File 'lib/opee/inspector.rb', line 339

def queued
  @queued
end

Instance Method Details

- (Object) name



356
357
358
# File 'lib/opee/inspector.rb', line 356

def name()
  @actor.name
end

- (Object) refresh



349
350
351
352
353
354
# File 'lib/opee/inspector.rb', line 349

def refresh()
  cnt = @actor.proc_count()
  @activity = cnt - @proc_cnt
  @proc_cnt = cnt
  @queued = @actor.queue_count()
end