/usr/lib/ruby/vendor_ruby/IceStorm/Metrics.rb is in ruby-zeroc-ice 3.5.1-6.4ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 | # **********************************************************************
#
# Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
#
# This copy of Ice is licensed to you under the terms described in the
# ICE_LICENSE file included in this distribution.
#
# **********************************************************************
#
# Ice version 3.5.1
#
# <auto-generated>
#
# Generated from file `Metrics.ice'
#
# Warning: do not edit this file.
#
# </auto-generated>
#
require 'Ice'
require 'Ice/Metrics.rb'
module IceMX
if not defined?(::IceMX::TopicMetrics_mixin)
module TopicMetrics_mixin
include ::IceMX::Metrics_mixin
def ice_ids(current=nil)
['::Ice::Object', '::IceMX::Metrics', '::IceMX::TopicMetrics']
end
def ice_id(current=nil)
'::IceMX::TopicMetrics'
end
def inspect
::Ice::__stringify(self, T_TopicMetrics)
end
attr_accessor :published, :forwarded
end
class TopicMetrics < ::IceMX::Metrics
include TopicMetrics_mixin
def TopicMetrics.ice_staticId()
'::IceMX::TopicMetrics'
end
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
end
module TopicMetricsPrx_mixin
include ::IceMX::MetricsPrx_mixin
end
class TopicMetricsPrx < ::Ice::ObjectPrx
include TopicMetricsPrx_mixin
def TopicMetricsPrx.checkedCast(proxy, facetOrCtx=nil, _ctx=nil)
ice_checkedCast(proxy, '::IceMX::TopicMetrics', facetOrCtx, _ctx)
end
def TopicMetricsPrx.uncheckedCast(proxy, facet=nil)
ice_uncheckedCast(proxy, facet)
end
end
if not defined?(::IceMX::T_TopicMetrics)
T_TopicMetrics = ::Ice::__declareClass('::IceMX::TopicMetrics')
T_TopicMetricsPrx = ::Ice::__declareProxy('::IceMX::TopicMetrics')
end
T_TopicMetrics.defineClass(TopicMetrics, -1, false, false, ::IceMX::T_Metrics, [], [
['published', ::Ice::T_long, false, 0],
['forwarded', ::Ice::T_long, false, 0]
])
TopicMetrics_mixin::ICE_TYPE = T_TopicMetrics
T_TopicMetricsPrx.defineProxy(TopicMetricsPrx, T_TopicMetrics)
TopicMetricsPrx::ICE_TYPE = T_TopicMetricsPrx
end
if not defined?(::IceMX::SubscriberMetrics_mixin)
module SubscriberMetrics_mixin
include ::IceMX::Metrics_mixin
def ice_ids(current=nil)
['::Ice::Object', '::IceMX::Metrics', '::IceMX::SubscriberMetrics']
end
def ice_id(current=nil)
'::IceMX::SubscriberMetrics'
end
def inspect
::Ice::__stringify(self, T_SubscriberMetrics)
end
attr_accessor :queued, :outstanding, :delivered
end
class SubscriberMetrics < ::IceMX::Metrics
include SubscriberMetrics_mixin
def SubscriberMetrics.ice_staticId()
'::IceMX::SubscriberMetrics'
end
def initialize(id='', total=0, current=0, totalLifetime=0, failures=0, queued=0, outstanding=0, delivered=0)
super(id, total, current, totalLifetime, failures)
@queued = queued
@outstanding = outstanding
@delivered = delivered
end
end
module SubscriberMetricsPrx_mixin
include ::IceMX::MetricsPrx_mixin
end
class SubscriberMetricsPrx < ::Ice::ObjectPrx
include SubscriberMetricsPrx_mixin
def SubscriberMetricsPrx.checkedCast(proxy, facetOrCtx=nil, _ctx=nil)
ice_checkedCast(proxy, '::IceMX::SubscriberMetrics', facetOrCtx, _ctx)
end
def SubscriberMetricsPrx.uncheckedCast(proxy, facet=nil)
ice_uncheckedCast(proxy, facet)
end
end
if not defined?(::IceMX::T_SubscriberMetrics)
T_SubscriberMetrics = ::Ice::__declareClass('::IceMX::SubscriberMetrics')
T_SubscriberMetricsPrx = ::Ice::__declareProxy('::IceMX::SubscriberMetrics')
end
T_SubscriberMetrics.defineClass(SubscriberMetrics, -1, false, false, ::IceMX::T_Metrics, [], [
['queued', ::Ice::T_int, false, 0],
['outstanding', ::Ice::T_int, false, 0],
['delivered', ::Ice::T_long, false, 0]
])
SubscriberMetrics_mixin::ICE_TYPE = T_SubscriberMetrics
T_SubscriberMetricsPrx.defineProxy(SubscriberMetricsPrx, T_SubscriberMetrics)
SubscriberMetricsPrx::ICE_TYPE = T_SubscriberMetricsPrx
end
end
|