Class: IceGrid::ApplicationDescriptor
- Inherits:
-
Object
- Object
- IceGrid::ApplicationDescriptor
- Includes:
- Ice::Inspect_mixin
- Defined in:
- lib/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.
773 774 775 776 777 778 779 780 781 782 783 |
# File 'lib/IceGrid/Descriptor.rb', line 773 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.
817 818 819 |
# File 'lib/IceGrid/Descriptor.rb', line 817 def description @description end |
#distrib ⇒ Object
Returns the value of attribute distrib.
817 818 819 |
# File 'lib/IceGrid/Descriptor.rb', line 817 def distrib @distrib end |
#name ⇒ Object
Returns the value of attribute name.
817 818 819 |
# File 'lib/IceGrid/Descriptor.rb', line 817 def name @name end |
#nodes ⇒ Object
Returns the value of attribute nodes.
817 818 819 |
# File 'lib/IceGrid/Descriptor.rb', line 817 def nodes @nodes end |
#propertySets ⇒ Object
Returns the value of attribute propertySets.
817 818 819 |
# File 'lib/IceGrid/Descriptor.rb', line 817 def propertySets @propertySets end |
#replicaGroups ⇒ Object
Returns the value of attribute replicaGroups.
817 818 819 |
# File 'lib/IceGrid/Descriptor.rb', line 817 def replicaGroups @replicaGroups end |
#serverTemplates ⇒ Object
Returns the value of attribute serverTemplates.
817 818 819 |
# File 'lib/IceGrid/Descriptor.rb', line 817 def serverTemplates @serverTemplates end |
#serviceTemplates ⇒ Object
Returns the value of attribute serviceTemplates.
817 818 819 |
# File 'lib/IceGrid/Descriptor.rb', line 817 def serviceTemplates @serviceTemplates end |
#variables ⇒ Object
Returns the value of attribute variables.
817 818 819 |
# File 'lib/IceGrid/Descriptor.rb', line 817 def variables @variables end |
Instance Method Details
#==(other) ⇒ Object
799 800 801 802 803 804 805 806 807 808 809 810 811 |
# File 'lib/IceGrid/Descriptor.rb', line 799 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
813 814 815 |
# File 'lib/IceGrid/Descriptor.rb', line 813 def eql?(other) return other.class == self.class && other == self end |
#hash ⇒ Object
785 786 787 788 789 790 791 792 793 794 795 796 797 |
# File 'lib/IceGrid/Descriptor.rb', line 785 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 |