Class: IceGrid::ApplicationDescriptor

Inherits:
Object
  • Object
show all
Includes:
Ice::Inspect_mixin
Defined in:
lib/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.



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

#descriptionObject

Returns the value of attribute description.



817
818
819
# File 'lib/IceGrid/Descriptor.rb', line 817

def description
  @description
end

#distribObject

Returns the value of attribute distrib.



817
818
819
# File 'lib/IceGrid/Descriptor.rb', line 817

def distrib
  @distrib
end

#nameObject

Returns the value of attribute name.



817
818
819
# File 'lib/IceGrid/Descriptor.rb', line 817

def name
  @name
end

#nodesObject

Returns the value of attribute nodes.



817
818
819
# File 'lib/IceGrid/Descriptor.rb', line 817

def nodes
  @nodes
end

#propertySetsObject

Returns the value of attribute propertySets.



817
818
819
# File 'lib/IceGrid/Descriptor.rb', line 817

def propertySets
  @propertySets
end

#replicaGroupsObject

Returns the value of attribute replicaGroups.



817
818
819
# File 'lib/IceGrid/Descriptor.rb', line 817

def replicaGroups
  @replicaGroups
end

#serverTemplatesObject

Returns the value of attribute serverTemplates.



817
818
819
# File 'lib/IceGrid/Descriptor.rb', line 817

def serverTemplates
  @serverTemplates
end

#serviceTemplatesObject

Returns the value of attribute serviceTemplates.



817
818
819
# File 'lib/IceGrid/Descriptor.rb', line 817

def serviceTemplates
  @serviceTemplates
end

#variablesObject

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

Returns:

  • (Boolean)


813
814
815
# File 'lib/IceGrid/Descriptor.rb', line 813

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

#hashObject



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