Class: IceGrid::NodeUpdateDescriptor

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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.



1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
# File 'lib/IceGrid/Descriptor.rb', line 1287

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.



1338
1339
1340
# File 'lib/IceGrid/Descriptor.rb', line 1338

def description
  @description
end

#loadFactorObject

Returns the value of attribute loadFactor.



1338
1339
1340
# File 'lib/IceGrid/Descriptor.rb', line 1338

def loadFactor
  @loadFactor
end

#nameObject

Returns the value of attribute name.



1338
1339
1340
# File 'lib/IceGrid/Descriptor.rb', line 1338

def name
  @name
end

#propertySetsObject

Returns the value of attribute propertySets.



1338
1339
1340
# File 'lib/IceGrid/Descriptor.rb', line 1338

def propertySets
  @propertySets
end

#removePropertySetsObject

Returns the value of attribute removePropertySets.



1338
1339
1340
# File 'lib/IceGrid/Descriptor.rb', line 1338

def removePropertySets
  @removePropertySets
end

#removeServersObject

Returns the value of attribute removeServers.



1338
1339
1340
# File 'lib/IceGrid/Descriptor.rb', line 1338

def removeServers
  @removeServers
end

#removeVariablesObject

Returns the value of attribute removeVariables.



1338
1339
1340
# File 'lib/IceGrid/Descriptor.rb', line 1338

def removeVariables
  @removeVariables
end

#serverInstancesObject

Returns the value of attribute serverInstances.



1338
1339
1340
# File 'lib/IceGrid/Descriptor.rb', line 1338

def serverInstances
  @serverInstances
end

#serversObject

Returns the value of attribute servers.



1338
1339
1340
# File 'lib/IceGrid/Descriptor.rb', line 1338

def servers
  @servers
end

#variablesObject

Returns the value of attribute variables.



1338
1339
1340
# File 'lib/IceGrid/Descriptor.rb', line 1338

def variables
  @variables
end

Instance Method Details

#==(other) ⇒ Object



1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
# File 'lib/IceGrid/Descriptor.rb', line 1315

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)


1330
1331
1332
# File 'lib/IceGrid/Descriptor.rb', line 1330

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

#hashObject



1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
# File 'lib/IceGrid/Descriptor.rb', line 1300

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

#inspectObject



1334
1335
1336
# File 'lib/IceGrid/Descriptor.rb', line 1334

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