Class: IceGrid::ApplicationDescriptor

Inherits:
Object
  • Object
show all
Includes:
Ice::Inspect_mixin
Defined in:
ruby/IceGrid/Descriptor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Ice::Inspect_mixin

#inspect

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

#descriptionObject

Returns the value of attribute description.



778
779
780
# File 'ruby/IceGrid/Descriptor.rb', line 778

def description
  @description
end

#distribObject

Returns the value of attribute distrib.



778
779
780
# File 'ruby/IceGrid/Descriptor.rb', line 778

def distrib
  @distrib
end

#nameObject

Returns the value of attribute name.



778
779
780
# File 'ruby/IceGrid/Descriptor.rb', line 778

def name
  @name
end

#nodesObject

Returns the value of attribute nodes.



778
779
780
# File 'ruby/IceGrid/Descriptor.rb', line 778

def nodes
  @nodes
end

#propertySetsObject

Returns the value of attribute propertySets.



778
779
780
# File 'ruby/IceGrid/Descriptor.rb', line 778

def propertySets
  @propertySets
end

#replicaGroupsObject

Returns the value of attribute replicaGroups.



778
779
780
# File 'ruby/IceGrid/Descriptor.rb', line 778

def replicaGroups
  @replicaGroups
end

#serverTemplatesObject

Returns the value of attribute serverTemplates.



778
779
780
# File 'ruby/IceGrid/Descriptor.rb', line 778

def serverTemplates
  @serverTemplates
end

#serviceTemplatesObject

Returns the value of attribute serviceTemplates.



778
779
780
# File 'ruby/IceGrid/Descriptor.rb', line 778

def serviceTemplates
  @serviceTemplates
end

#variablesObject

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

Returns:

  • (Boolean)


774
775
776
# File 'ruby/IceGrid/Descriptor.rb', line 774

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

#hashObject



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