Class: IceMX::ConnectionMetrics

Inherits:
Metrics show all
Defined in:
ruby/Ice/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, receivedBytes = 0, sentBytes = 0) ⇒ ConnectionMetrics

Returns a new instance of ConnectionMetrics.



276
277
278
279
280
# File 'ruby/Ice/Metrics.rb', line 276

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

Instance Attribute Details

#receivedBytesObject

Returns the value of attribute receivedBytes.



282
283
284
# File 'ruby/Ice/Metrics.rb', line 282

def receivedBytes
  @receivedBytes
end

#sentBytesObject

Returns the value of attribute sentBytes.



282
283
284
# File 'ruby/Ice/Metrics.rb', line 282

def sentBytes
  @sentBytes
end