Class: IceGrid::ReplicaGroupDescriptor

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Ice::Inspect_mixin

#inspect

Constructor Details

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

Returns a new instance of ReplicaGroupDescriptor.



718
719
720
721
722
723
724
725
# File 'lib/IceGrid/Descriptor.rb', line 718

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.



753
754
755
# File 'lib/IceGrid/Descriptor.rb', line 753

def description
  @description
end

#filterObject

Returns the value of attribute filter.



753
754
755
# File 'lib/IceGrid/Descriptor.rb', line 753

def filter
  @filter
end

#idObject

Returns the value of attribute id.



753
754
755
# File 'lib/IceGrid/Descriptor.rb', line 753

def id
  @id
end

#loadBalancingObject

Returns the value of attribute loadBalancing.



753
754
755
# File 'lib/IceGrid/Descriptor.rb', line 753

def loadBalancing
  @loadBalancing
end

#objectsObject

Returns the value of attribute objects.



753
754
755
# File 'lib/IceGrid/Descriptor.rb', line 753

def objects
  @objects
end

#proxyOptionsObject

Returns the value of attribute proxyOptions.



753
754
755
# File 'lib/IceGrid/Descriptor.rb', line 753

def proxyOptions
  @proxyOptions
end

Instance Method Details

#==(other) ⇒ Object



738
739
740
741
742
743
744
745
746
747
# File 'lib/IceGrid/Descriptor.rb', line 738

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)


749
750
751
# File 'lib/IceGrid/Descriptor.rb', line 749

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

#hashObject



727
728
729
730
731
732
733
734
735
736
# File 'lib/IceGrid/Descriptor.rb', line 727

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