Class: IceGrid::ApplicationDescriptor

Inherits:
Object
  • Object
show all
Defined in:
lib/IceGrid/Descriptor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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.



1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
# File 'lib/IceGrid/Descriptor.rb', line 1159

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.



1207
1208
1209
# File 'lib/IceGrid/Descriptor.rb', line 1207

def description
  @description
end

#distribObject

Returns the value of attribute distrib.



1207
1208
1209
# File 'lib/IceGrid/Descriptor.rb', line 1207

def distrib
  @distrib
end

#nameObject

Returns the value of attribute name.



1207
1208
1209
# File 'lib/IceGrid/Descriptor.rb', line 1207

def name
  @name
end

#nodesObject

Returns the value of attribute nodes.



1207
1208
1209
# File 'lib/IceGrid/Descriptor.rb', line 1207

def nodes
  @nodes
end

#propertySetsObject

Returns the value of attribute propertySets.



1207
1208
1209
# File 'lib/IceGrid/Descriptor.rb', line 1207

def propertySets
  @propertySets
end

#replicaGroupsObject

Returns the value of attribute replicaGroups.



1207
1208
1209
# File 'lib/IceGrid/Descriptor.rb', line 1207

def replicaGroups
  @replicaGroups
end

#serverTemplatesObject

Returns the value of attribute serverTemplates.



1207
1208
1209
# File 'lib/IceGrid/Descriptor.rb', line 1207

def serverTemplates
  @serverTemplates
end

#serviceTemplatesObject

Returns the value of attribute serviceTemplates.



1207
1208
1209
# File 'lib/IceGrid/Descriptor.rb', line 1207

def serviceTemplates
  @serviceTemplates
end

#variablesObject

Returns the value of attribute variables.



1207
1208
1209
# File 'lib/IceGrid/Descriptor.rb', line 1207

def variables
  @variables
end

Instance Method Details

#==(other) ⇒ Object



1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
# File 'lib/IceGrid/Descriptor.rb', line 1185

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)


1199
1200
1201
# File 'lib/IceGrid/Descriptor.rb', line 1199

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

#hashObject



1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
# File 'lib/IceGrid/Descriptor.rb', line 1171

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

#inspectObject



1203
1204
1205
# File 'lib/IceGrid/Descriptor.rb', line 1203

def inspect
    ::Ice::__stringify(self, T_ApplicationDescriptor)
end