Class: IceMX::TopicMetrics

Inherits:
Metrics show all
Defined in:
lib/IceStorm/Metrics.rb

Instance Attribute Summary collapse

Attributes inherited from Metrics

#current, #failures, #id, #total, #totalLifetime

Attributes inherited from Ice::Value

#_ice_slicedData

Instance Method Summary collapse

Methods inherited from Ice::Value

#ice_getSlicedData, #ice_id, ice_staticId, #inspect

Constructor Details

#initialize(id = '', total = 0, current = 0, totalLifetime = 0, failures = 0, published = 0, forwarded = 0) ⇒ TopicMetrics

Returns a new instance of TopicMetrics.



28
29
30
31
32
# File 'lib/IceStorm/Metrics.rb', line 28

def initialize(id='', total=0, current=0, totalLifetime=0, failures=0, published=0, forwarded=0)
    super(id, total, current, totalLifetime, failures)
    @published = published
    @forwarded = forwarded
end

Instance Attribute Details

#forwardedObject

Returns the value of attribute forwarded.



34
35
36
# File 'lib/IceStorm/Metrics.rb', line 34

def forwarded
  @forwarded
end

#publishedObject

Returns the value of attribute published.



34
35
36
# File 'lib/IceStorm/Metrics.rb', line 34

def published
  @published
end