Class: IceGrid::NodeDescriptor

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(variables = nil, serverInstances = nil, servers = nil, loadFactor = '', description = '', propertySets = nil) ⇒ NodeDescriptor

Returns a new instance of NodeDescriptor.



754
755
756
757
758
759
760
761
# File 'lib/IceGrid/Descriptor.rb', line 754

def initialize(variables=nil, serverInstances=nil, servers=nil, loadFactor='', description='', propertySets=nil)
    @variables = variables
    @serverInstances = serverInstances
    @servers = servers
    @loadFactor = loadFactor
    @description = description
    @propertySets = propertySets
end

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



793
794
795
# File 'lib/IceGrid/Descriptor.rb', line 793

def description
  @description
end

#loadFactorObject

Returns the value of attribute loadFactor.



793
794
795
# File 'lib/IceGrid/Descriptor.rb', line 793

def loadFactor
  @loadFactor
end

#propertySetsObject

Returns the value of attribute propertySets.



793
794
795
# File 'lib/IceGrid/Descriptor.rb', line 793

def propertySets
  @propertySets
end

#serverInstancesObject

Returns the value of attribute serverInstances.



793
794
795
# File 'lib/IceGrid/Descriptor.rb', line 793

def serverInstances
  @serverInstances
end

#serversObject

Returns the value of attribute servers.



793
794
795
# File 'lib/IceGrid/Descriptor.rb', line 793

def servers
  @servers
end

#variablesObject

Returns the value of attribute variables.



793
794
795
# File 'lib/IceGrid/Descriptor.rb', line 793

def variables
  @variables
end

Instance Method Details

#==(other) ⇒ Object



774
775
776
777
778
779
780
781
782
783
# File 'lib/IceGrid/Descriptor.rb', line 774

def ==(other)
    return false if !other.is_a? ::IceGrid::NodeDescriptor or
        @variables != other.variables or
        @serverInstances != other.serverInstances or
        @servers != other.servers or
        @loadFactor != other.loadFactor or
        @description != other.description or
        @propertySets != other.propertySets
    true
end

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


785
786
787
# File 'lib/IceGrid/Descriptor.rb', line 785

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

#hashObject



763
764
765
766
767
768
769
770
771
772
# File 'lib/IceGrid/Descriptor.rb', line 763

def hash
    _h = 0
    _h = 5 * _h + @variables.hash
    _h = 5 * _h + @serverInstances.hash
    _h = 5 * _h + @servers.hash
    _h = 5 * _h + @loadFactor.hash
    _h = 5 * _h + @description.hash
    _h = 5 * _h + @propertySets.hash
    _h % 0x7fffffff
end

#inspectObject



789
790
791
# File 'lib/IceGrid/Descriptor.rb', line 789

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