Class: IceGrid::NodeDescriptor
- Inherits:
-
Object
- Object
- IceGrid::NodeDescriptor
- Defined in:
- lib/IceGrid/Descriptor.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#loadFactor ⇒ Object
Returns the value of attribute loadFactor.
-
#propertySets ⇒ Object
Returns the value of attribute propertySets.
-
#serverInstances ⇒ Object
Returns the value of attribute serverInstances.
-
#servers ⇒ Object
Returns the value of attribute servers.
-
#variables ⇒ Object
Returns the value of attribute variables.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(variables = nil, serverInstances = nil, servers = nil, loadFactor = '', description = '', propertySets = nil) ⇒ NodeDescriptor
constructor
A new instance of NodeDescriptor.
- #inspect ⇒ Object
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
#description ⇒ Object
Returns the value of attribute description.
793 794 795 |
# File 'lib/IceGrid/Descriptor.rb', line 793 def description @description end |
#loadFactor ⇒ Object
Returns the value of attribute loadFactor.
793 794 795 |
# File 'lib/IceGrid/Descriptor.rb', line 793 def loadFactor @loadFactor end |
#propertySets ⇒ Object
Returns the value of attribute propertySets.
793 794 795 |
# File 'lib/IceGrid/Descriptor.rb', line 793 def propertySets @propertySets end |
#serverInstances ⇒ Object
Returns the value of attribute serverInstances.
793 794 795 |
# File 'lib/IceGrid/Descriptor.rb', line 793 def serverInstances @serverInstances end |
#servers ⇒ Object
Returns the value of attribute servers.
793 794 795 |
# File 'lib/IceGrid/Descriptor.rb', line 793 def servers @servers end |
#variables ⇒ Object
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
785 786 787 |
# File 'lib/IceGrid/Descriptor.rb', line 785 def eql?(other) return other.class == self.class && other == self end |
#hash ⇒ Object
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 |
#inspect ⇒ Object
789 790 791 |
# File 'lib/IceGrid/Descriptor.rb', line 789 def inspect ::Ice::__stringify(self, T_NodeDescriptor) end |