Class: IceGrid::ReplicaGroupDescriptor

Inherits:
Object
  • Object
show all
Includes:
Ice::Inspect_mixin
Defined in:
ruby/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.



679
680
681
682
683
684
685
686
# File 'ruby/IceGrid/Descriptor.rb', line 679

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.



714
715
716
# File 'ruby/IceGrid/Descriptor.rb', line 714

def description
  @description
end

#filterObject

Returns the value of attribute filter.



714
715
716
# File 'ruby/IceGrid/Descriptor.rb', line 714

def filter
  @filter
end

#idObject

Returns the value of attribute id.



714
715
716
# File 'ruby/IceGrid/Descriptor.rb', line 714

def id
  @id
end

#loadBalancingObject

Returns the value of attribute loadBalancing.



714
715
716
# File 'ruby/IceGrid/Descriptor.rb', line 714

def loadBalancing
  @loadBalancing
end

#objectsObject

Returns the value of attribute objects.



714
715
716
# File 'ruby/IceGrid/Descriptor.rb', line 714

def objects
  @objects
end

#proxyOptionsObject

Returns the value of attribute proxyOptions.



714
715
716
# File 'ruby/IceGrid/Descriptor.rb', line 714

def proxyOptions
  @proxyOptions
end

Instance Method Details

#==(other) ⇒ Object



699
700
701
702
703
704
705
706
707
708
# File 'ruby/IceGrid/Descriptor.rb', line 699

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)


710
711
712
# File 'ruby/IceGrid/Descriptor.rb', line 710

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

#hashObject



688
689
690
691
692
693
694
695
696
697
# File 'ruby/IceGrid/Descriptor.rb', line 688

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