Class: IceGrid::ReplicaGroupDescriptor

Inherits:
Object
  • Object
show all
Defined in:
lib/IceGrid/Descriptor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id = '', loadBalancing = nil, proxyOptions = '', objects = nil, description = '', filter = '') ⇒ ReplicaGroupDescriptor

Returns a new instance of ReplicaGroupDescriptor.



1101
1102
1103
1104
1105
1106
1107
1108
# File 'lib/IceGrid/Descriptor.rb', line 1101

def initialize(id='', loadBalancing=nil, proxyOptions='', objects=nil, description='', filter='')
    @id = id
    @loadBalancing = loadBalancing
    @proxyOptions = proxyOptions
    @objects = objects
    @description = description
    @filter = filter
end

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



1140
1141
1142
# File 'lib/IceGrid/Descriptor.rb', line 1140

def description
  @description
end

#filterObject

Returns the value of attribute filter.



1140
1141
1142
# File 'lib/IceGrid/Descriptor.rb', line 1140

def filter
  @filter
end

#idObject

Returns the value of attribute id.



1140
1141
1142
# File 'lib/IceGrid/Descriptor.rb', line 1140

def id
  @id
end

#loadBalancingObject

Returns the value of attribute loadBalancing.



1140
1141
1142
# File 'lib/IceGrid/Descriptor.rb', line 1140

def loadBalancing
  @loadBalancing
end

#objectsObject

Returns the value of attribute objects.



1140
1141
1142
# File 'lib/IceGrid/Descriptor.rb', line 1140

def objects
  @objects
end

#proxyOptionsObject

Returns the value of attribute proxyOptions.



1140
1141
1142
# File 'lib/IceGrid/Descriptor.rb', line 1140

def proxyOptions
  @proxyOptions
end

Instance Method Details

#==(other) ⇒ Object



1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
# File 'lib/IceGrid/Descriptor.rb', line 1121

def ==(other)
    return false if !other.is_a? ::IceGrid::ReplicaGroupDescriptor or
        @id != other.id or
        @loadBalancing != other.loadBalancing or
        @proxyOptions != other.proxyOptions or
        @objects != other.objects or
        @description != other.description or
        @filter != other.filter
    true
end

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


1132
1133
1134
# File 'lib/IceGrid/Descriptor.rb', line 1132

def eql?(other)
    return other.class == self.class && other == self
end

#hashObject



1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
# File 'lib/IceGrid/Descriptor.rb', line 1110

def hash
    _h = 0
    _h = 5 * _h + @id.hash
    _h = 5 * _h + @loadBalancing.hash
    _h = 5 * _h + @proxyOptions.hash
    _h = 5 * _h + @objects.hash
    _h = 5 * _h + @description.hash
    _h = 5 * _h + @filter.hash
    _h % 0x7fffffff
end

#inspectObject



1136
1137
1138
# File 'lib/IceGrid/Descriptor.rb', line 1136

def inspect
    ::Ice::__stringify(self, T_ReplicaGroupDescriptor)
end