Class: IceGrid::ApplicationDescriptor
- Inherits:
-
Object
- Object
- IceGrid::ApplicationDescriptor
- Includes:
- Ice::Inspect_mixin
- Defined in:
- ruby/IceGrid/Descriptor.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#distrib ⇒ Object
Returns the value of attribute distrib.
-
#name ⇒ Object
Returns the value of attribute name.
-
#nodes ⇒ Object
Returns the value of attribute nodes.
-
#propertySets ⇒ Object
Returns the value of attribute propertySets.
-
#replicaGroups ⇒ Object
Returns the value of attribute replicaGroups.
-
#serverTemplates ⇒ Object
Returns the value of attribute serverTemplates.
-
#serviceTemplates ⇒ Object
Returns the value of attribute serviceTemplates.
-
#variables ⇒ Object
Returns the value of attribute variables.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(name = '', variables = nil, replicaGroups = nil, serverTemplates = nil, serviceTemplates = nil, nodes = nil, distrib = ::IceGrid::DistributionDescriptor.new, description = '', propertySets = nil) ⇒ ApplicationDescriptor
constructor
A new instance of ApplicationDescriptor.
Methods included from Ice::Inspect_mixin
Constructor Details
#initialize(name = '', variables = nil, replicaGroups = nil, serverTemplates = nil, serviceTemplates = nil, nodes = nil, distrib = ::IceGrid::DistributionDescriptor.new, description = '', propertySets = nil) ⇒ ApplicationDescriptor
Returns a new instance of ApplicationDescriptor.
734 735 736 737 738 739 740 741 742 743 744 |
# File 'ruby/IceGrid/Descriptor.rb', line 734 def initialize(name='', variables=nil, replicaGroups=nil, serverTemplates=nil, serviceTemplates=nil, nodes=nil, distrib=::IceGrid::DistributionDescriptor.new, description='', propertySets=nil) @name = name @variables = variables @replicaGroups = replicaGroups @serverTemplates = serverTemplates @serviceTemplates = serviceTemplates @nodes = nodes @distrib = distrib @description = description @propertySets = propertySets end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
778 779 780 |
# File 'ruby/IceGrid/Descriptor.rb', line 778 def description @description end |
#distrib ⇒ Object
Returns the value of attribute distrib.
778 779 780 |
# File 'ruby/IceGrid/Descriptor.rb', line 778 def distrib @distrib end |
#name ⇒ Object
Returns the value of attribute name.
778 779 780 |
# File 'ruby/IceGrid/Descriptor.rb', line 778 def name @name end |
#nodes ⇒ Object
Returns the value of attribute nodes.
778 779 780 |
# File 'ruby/IceGrid/Descriptor.rb', line 778 def nodes @nodes end |
#propertySets ⇒ Object
Returns the value of attribute propertySets.
778 779 780 |
# File 'ruby/IceGrid/Descriptor.rb', line 778 def propertySets @propertySets end |
#replicaGroups ⇒ Object
Returns the value of attribute replicaGroups.
778 779 780 |
# File 'ruby/IceGrid/Descriptor.rb', line 778 def replicaGroups @replicaGroups end |
#serverTemplates ⇒ Object
Returns the value of attribute serverTemplates.
778 779 780 |
# File 'ruby/IceGrid/Descriptor.rb', line 778 def serverTemplates @serverTemplates end |
#serviceTemplates ⇒ Object
Returns the value of attribute serviceTemplates.
778 779 780 |
# File 'ruby/IceGrid/Descriptor.rb', line 778 def serviceTemplates @serviceTemplates end |
#variables ⇒ Object
Returns the value of attribute variables.
778 779 780 |
# File 'ruby/IceGrid/Descriptor.rb', line 778 def variables @variables end |
Instance Method Details
#==(other) ⇒ Object
760 761 762 763 764 765 766 767 768 769 770 771 772 |
# File 'ruby/IceGrid/Descriptor.rb', line 760 def ==(other) return false if !other.is_a? ::IceGrid::ApplicationDescriptor or @name != other.name or @variables != other.variables or @replicaGroups != other.replicaGroups or @serverTemplates != other.serverTemplates or @serviceTemplates != other.serviceTemplates or @nodes != other.nodes or @distrib != other.distrib or @description != other.description or @propertySets != other.propertySets true end |
#eql?(other) ⇒ Boolean
774 775 776 |
# File 'ruby/IceGrid/Descriptor.rb', line 774 def eql?(other) return other.class == self.class && other == self end |
#hash ⇒ Object
746 747 748 749 750 751 752 753 754 755 756 757 758 |
# File 'ruby/IceGrid/Descriptor.rb', line 746 def hash _h = 0 _h = 5 * _h + @name.hash _h = 5 * _h + @variables.hash _h = 5 * _h + @replicaGroups.hash _h = 5 * _h + @serverTemplates.hash _h = 5 * _h + @serviceTemplates.hash _h = 5 * _h + @nodes.hash _h = 5 * _h + @distrib.hash _h = 5 * _h + @description.hash _h = 5 * _h + @propertySets.hash _h % 0x7fffffff end |