Class: IceGrid::NodeInfo
- Inherits:
-
Object
- Object
- IceGrid::NodeInfo
- Includes:
- Ice::Inspect_mixin
- Defined in:
- ruby/IceGrid/Admin.rb
Instance Attribute Summary collapse
-
#dataDir ⇒ Object
Returns the value of attribute dataDir.
-
#hostname ⇒ Object
Returns the value of attribute hostname.
-
#machine ⇒ Object
Returns the value of attribute machine.
-
#name ⇒ Object
Returns the value of attribute name.
-
#nProcessors ⇒ Object
Returns the value of attribute nProcessors.
-
#os ⇒ Object
Returns the value of attribute os.
-
#release ⇒ Object
Returns the value of attribute release.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(name = '', os = '', hostname = '', release = '', version = '', machine = '', nProcessors = 0, dataDir = '') ⇒ NodeInfo
constructor
A new instance of NodeInfo.
Methods included from Ice::Inspect_mixin
Constructor Details
#initialize(name = '', os = '', hostname = '', release = '', version = '', machine = '', nProcessors = 0, dataDir = '') ⇒ NodeInfo
Returns a new instance of NodeInfo.
210 211 212 213 214 215 216 217 218 219 |
# File 'ruby/IceGrid/Admin.rb', line 210 def initialize(name='', os='', hostname='', release='', version='', machine='', nProcessors=0, dataDir='') @name = name @os = os @hostname = hostname @release = release @version = version @machine = machine @nProcessors = nProcessors @dataDir = dataDir end |
Instance Attribute Details
#dataDir ⇒ Object
Returns the value of attribute dataDir.
251 252 253 |
# File 'ruby/IceGrid/Admin.rb', line 251 def dataDir @dataDir end |
#hostname ⇒ Object
Returns the value of attribute hostname.
251 252 253 |
# File 'ruby/IceGrid/Admin.rb', line 251 def hostname @hostname end |
#machine ⇒ Object
Returns the value of attribute machine.
251 252 253 |
# File 'ruby/IceGrid/Admin.rb', line 251 def machine @machine end |
#name ⇒ Object
Returns the value of attribute name.
251 252 253 |
# File 'ruby/IceGrid/Admin.rb', line 251 def name @name end |
#nProcessors ⇒ Object
Returns the value of attribute nProcessors.
251 252 253 |
# File 'ruby/IceGrid/Admin.rb', line 251 def nProcessors @nProcessors end |
#os ⇒ Object
Returns the value of attribute os.
251 252 253 |
# File 'ruby/IceGrid/Admin.rb', line 251 def os @os end |
#release ⇒ Object
Returns the value of attribute release.
251 252 253 |
# File 'ruby/IceGrid/Admin.rb', line 251 def release @release end |
#version ⇒ Object
Returns the value of attribute version.
251 252 253 |
# File 'ruby/IceGrid/Admin.rb', line 251 def version @version end |
Instance Method Details
#==(other) ⇒ Object
234 235 236 237 238 239 240 241 242 243 244 245 |
# File 'ruby/IceGrid/Admin.rb', line 234 def ==(other) return false if !other.is_a? ::IceGrid::NodeInfo or @name != other.name or @os != other.os or @hostname != other.hostname or @release != other.release or @version != other.version or @machine != other.machine or @nProcessors != other.nProcessors or @dataDir != other.dataDir true end |
#eql?(other) ⇒ Boolean
247 248 249 |
# File 'ruby/IceGrid/Admin.rb', line 247 def eql?(other) return other.class == self.class && other == self end |
#hash ⇒ Object
221 222 223 224 225 226 227 228 229 230 231 232 |
# File 'ruby/IceGrid/Admin.rb', line 221 def hash _h = 0 _h = 5 * _h + @name.hash _h = 5 * _h + @os.hash _h = 5 * _h + @hostname.hash _h = 5 * _h + @release.hash _h = 5 * _h + @version.hash _h = 5 * _h + @machine.hash _h = 5 * _h + @nProcessors.hash _h = 5 * _h + @dataDir.hash _h % 0x7fffffff end |