Class: IceGrid::NodeUpdateDescriptor

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(name = '', description = nil, variables = nil, removeVariables = nil, propertySets = nil, removePropertySets = nil, serverInstances = nil, servers = nil, removeServers = nil, loadFactor = nil) ⇒ NodeUpdateDescriptor

Returns a new instance of NodeUpdateDescriptor.



860
861
862
863
864
865
866
867
868
869
870
871
# File 'lib/IceGrid/Descriptor.rb', line 860

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

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



907
908
909
# File 'lib/IceGrid/Descriptor.rb', line 907

def description
  @description
end

#loadFactorObject

Returns the value of attribute loadFactor.



907
908
909
# File 'lib/IceGrid/Descriptor.rb', line 907

def loadFactor
  @loadFactor
end

#nameObject

Returns the value of attribute name.



907
908
909
# File 'lib/IceGrid/Descriptor.rb', line 907

def name
  @name
end

#propertySetsObject

Returns the value of attribute propertySets.



907
908
909
# File 'lib/IceGrid/Descriptor.rb', line 907

def propertySets
  @propertySets
end

#removePropertySetsObject

Returns the value of attribute removePropertySets.



907
908
909
# File 'lib/IceGrid/Descriptor.rb', line 907

def removePropertySets
  @removePropertySets
end

#removeServersObject

Returns the value of attribute removeServers.



907
908
909
# File 'lib/IceGrid/Descriptor.rb', line 907

def removeServers
  @removeServers
end

#removeVariablesObject

Returns the value of attribute removeVariables.



907
908
909
# File 'lib/IceGrid/Descriptor.rb', line 907

def removeVariables
  @removeVariables
end

#serverInstancesObject

Returns the value of attribute serverInstances.



907
908
909
# File 'lib/IceGrid/Descriptor.rb', line 907

def serverInstances
  @serverInstances
end

#serversObject

Returns the value of attribute servers.



907
908
909
# File 'lib/IceGrid/Descriptor.rb', line 907

def servers
  @servers
end

#variablesObject

Returns the value of attribute variables.



907
908
909
# File 'lib/IceGrid/Descriptor.rb', line 907

def variables
  @variables
end

Instance Method Details

#==(other) ⇒ Object



888
889
890
891
892
893
894
895
896
897
898
899
900
901
# File 'lib/IceGrid/Descriptor.rb', line 888

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

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


903
904
905
# File 'lib/IceGrid/Descriptor.rb', line 903

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

#hashObject



873
874
875
876
877
878
879
880
881
882
883
884
885
886
# File 'lib/IceGrid/Descriptor.rb', line 873

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