This file is indexed.

/usr/lib/ruby/vendor_ruby/IceGrid/Query.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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
# **********************************************************************
#
# 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 `Query.ice'
#
# Warning: do not edit this file.
#
# </auto-generated>
#

require 'Ice'
require 'Ice/Identity.rb'
require 'Ice/BuiltinSequences.rb'
require 'IceGrid/Exception.rb'

module IceGrid

    if not defined?(::IceGrid::LoadSample)
        class LoadSample
            include Comparable

            def initialize(name, value)
                @name = name
                @value = value
            end

            def LoadSample.from_int(val)
                @@_enumerators[val]
            end

            def to_s
                @name
            end

            def to_i
                @value
            end

            def <=>(other)
                other.is_a?(LoadSample) or raise ArgumentError, "value must be a LoadSample"
                @value <=> other.to_i
            end

            def hash
                @value.hash
            end

            def inspect
                @name + "(#{@value})"
            end

            def LoadSample.each(&block)
                @@_enumerators.each_value(&block)
            end

            LoadSample1 = LoadSample.new("LoadSample1", 0)
            LoadSample5 = LoadSample.new("LoadSample5", 1)
            LoadSample15 = LoadSample.new("LoadSample15", 2)

            @@_enumerators = {0=>LoadSample1, 1=>LoadSample5, 2=>LoadSample15}

            def LoadSample._enumerators
                @@_enumerators
            end

            private_class_method :new
        end

        T_LoadSample = ::Ice::__defineEnum('::IceGrid::LoadSample', LoadSample, LoadSample::_enumerators)
    end

    if not defined?(::IceGrid::Query_mixin)
        module Query_mixin
            include ::Ice::Object_mixin

            def ice_ids(current=nil)
                ['::Ice::Object', '::IceGrid::Query']
            end

            def ice_id(current=nil)
                '::IceGrid::Query'
            end

            #
            # Operation signatures.
            #
            # def findObjectById(id, current=nil)
            # def findObjectByType(type, current=nil)
            # def findObjectByTypeOnLeastLoadedNode(type, sample, current=nil)
            # def findAllObjectsByType(type, current=nil)
            # def findAllReplicas(proxy, current=nil)

            def inspect
                ::Ice::__stringify(self, T_Query)
            end
        end
        class Query
            include Query_mixin
            
            def Query.ice_staticId()
                '::IceGrid::Query'
            end
        end
        module QueryPrx_mixin

            def findObjectById(id, _ctx=nil)
                Query_mixin::OP_findObjectById.invoke(self, [id], _ctx)
            end

            def findObjectByType(type, _ctx=nil)
                Query_mixin::OP_findObjectByType.invoke(self, [type], _ctx)
            end

            def findObjectByTypeOnLeastLoadedNode(type, sample, _ctx=nil)
                Query_mixin::OP_findObjectByTypeOnLeastLoadedNode.invoke(self, [type, sample], _ctx)
            end

            def findAllObjectsByType(type, _ctx=nil)
                Query_mixin::OP_findAllObjectsByType.invoke(self, [type], _ctx)
            end

            def findAllReplicas(proxy, _ctx=nil)
                Query_mixin::OP_findAllReplicas.invoke(self, [proxy], _ctx)
            end
        end
        class QueryPrx < ::Ice::ObjectPrx
            include QueryPrx_mixin

            def QueryPrx.checkedCast(proxy, facetOrCtx=nil, _ctx=nil)
                ice_checkedCast(proxy, '::IceGrid::Query', facetOrCtx, _ctx)
            end

            def QueryPrx.uncheckedCast(proxy, facet=nil)
                ice_uncheckedCast(proxy, facet)
            end
        end

        if not defined?(::IceGrid::T_Query)
            T_Query = ::Ice::__declareClass('::IceGrid::Query')
            T_QueryPrx = ::Ice::__declareProxy('::IceGrid::Query')
        end

        T_Query.defineClass(Query, -1, true, false, nil, [], [])
        Query_mixin::ICE_TYPE = T_Query

        T_QueryPrx.defineProxy(QueryPrx, T_Query)
        QueryPrx::ICE_TYPE = T_QueryPrx

        Query_mixin::OP_findObjectById = ::Ice::__defineOperation('findObjectById', ::Ice::OperationMode::Idempotent, ::Ice::OperationMode::Nonmutating, false, nil, [[::Ice::T_Identity, false, 0]], [], [::Ice::T_ObjectPrx, false, 0], [])
        Query_mixin::OP_findObjectByType = ::Ice::__defineOperation('findObjectByType', ::Ice::OperationMode::Idempotent, ::Ice::OperationMode::Nonmutating, false, nil, [[::Ice::T_string, false, 0]], [], [::Ice::T_ObjectPrx, false, 0], [])
        Query_mixin::OP_findObjectByTypeOnLeastLoadedNode = ::Ice::__defineOperation('findObjectByTypeOnLeastLoadedNode', ::Ice::OperationMode::Idempotent, ::Ice::OperationMode::Nonmutating, false, nil, [[::Ice::T_string, false, 0], [::IceGrid::T_LoadSample, false, 0]], [], [::Ice::T_ObjectPrx, false, 0], [])
        Query_mixin::OP_findAllObjectsByType = ::Ice::__defineOperation('findAllObjectsByType', ::Ice::OperationMode::Idempotent, ::Ice::OperationMode::Nonmutating, false, nil, [[::Ice::T_string, false, 0]], [], [::Ice::T_ObjectProxySeq, false, 0], [])
        Query_mixin::OP_findAllReplicas = ::Ice::__defineOperation('findAllReplicas', ::Ice::OperationMode::Idempotent, ::Ice::OperationMode::Idempotent, false, nil, [[::Ice::T_ObjectPrx, false, 0]], [], [::Ice::T_ObjectProxySeq, false, 0], [])
    end
end