Class: IceMX::ConnectionMetrics

Inherits:
Metrics show all
Defined in:
lib/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.



319
320
321
322
323
# File 'lib/Ice/Metrics.rb', line 319

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.



325
326
327
# File 'lib/Ice/Metrics.rb', line 325

def receivedBytes
  @receivedBytes
end

#sentBytesObject

Returns the value of attribute sentBytes.



325
326
327
# File 'lib/Ice/Metrics.rb', line 325

def sentBytes
  @sentBytes
end