Class: IceGrid::NodeDynamicInfo
- Inherits:
-
Object
- Object
- IceGrid::NodeDynamicInfo
- Includes:
- Ice::Inspect_mixin
- Defined in:
- lib/IceGrid/Admin.rb
Instance Attribute Summary collapse
-
#adapters ⇒ Object
Returns the value of attribute adapters.
-
#info ⇒ Object
Returns the value of attribute info.
-
#servers ⇒ Object
Returns the value of attribute servers.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(info = ::IceGrid::NodeInfo.new, servers = nil, adapters = nil) ⇒ NodeDynamicInfo
constructor
A new instance of NodeDynamicInfo.
Methods included from Ice::Inspect_mixin
Constructor Details
#initialize(info = ::IceGrid::NodeInfo.new, servers = nil, adapters = nil) ⇒ NodeDynamicInfo
Returns a new instance of NodeDynamicInfo.
843 844 845 846 847 |
# File 'lib/IceGrid/Admin.rb', line 843 def initialize(info=::IceGrid::NodeInfo.new, servers=nil, adapters=nil) @info = info @servers = servers @adapters = adapters end |
Instance Attribute Details
#adapters ⇒ Object
Returns the value of attribute adapters.
869 870 871 |
# File 'lib/IceGrid/Admin.rb', line 869 def adapters @adapters end |
#info ⇒ Object
Returns the value of attribute info.
869 870 871 |
# File 'lib/IceGrid/Admin.rb', line 869 def info @info end |
#servers ⇒ Object
Returns the value of attribute servers.
869 870 871 |
# File 'lib/IceGrid/Admin.rb', line 869 def servers @servers end |
Instance Method Details
#==(other) ⇒ Object
857 858 859 860 861 862 863 |
# File 'lib/IceGrid/Admin.rb', line 857 def ==(other) return false if !other.is_a? ::IceGrid::NodeDynamicInfo or @info != other.info or @servers != other.servers or @adapters != other.adapters true end |
#eql?(other) ⇒ Boolean
865 866 867 |
# File 'lib/IceGrid/Admin.rb', line 865 def eql?(other) return other.class == self.class && other == self end |
#hash ⇒ Object
849 850 851 852 853 854 855 |
# File 'lib/IceGrid/Admin.rb', line 849 def hash _h = 0 _h = 5 * _h + @info.hash _h = 5 * _h + @servers.hash _h = 5 * _h + @adapters.hash _h % 0x7fffffff end |