Class: IceGrid::ApplicationDescriptor
- Inherits:
-
Object
- Object
- IceGrid::ApplicationDescriptor
- 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.
- #inspect ⇒ Object
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
#description ⇒ Object
Returns the value of attribute description.
1207 1208 1209 |
# File 'lib/IceGrid/Descriptor.rb', line 1207 def description @description end |
#distrib ⇒ Object
Returns the value of attribute distrib.
1207 1208 1209 |
# File 'lib/IceGrid/Descriptor.rb', line 1207 def distrib @distrib end |
#name ⇒ Object
Returns the value of attribute name.
1207 1208 1209 |
# File 'lib/IceGrid/Descriptor.rb', line 1207 def name @name end |
#nodes ⇒ Object
Returns the value of attribute nodes.
1207 1208 1209 |
# File 'lib/IceGrid/Descriptor.rb', line 1207 def nodes @nodes end |
#propertySets ⇒ Object
Returns the value of attribute propertySets.
1207 1208 1209 |
# File 'lib/IceGrid/Descriptor.rb', line 1207 def propertySets @propertySets end |
#replicaGroups ⇒ Object
Returns the value of attribute replicaGroups.
1207 1208 1209 |
# File 'lib/IceGrid/Descriptor.rb', line 1207 def replicaGroups @replicaGroups end |
#serverTemplates ⇒ Object
Returns the value of attribute serverTemplates.
1207 1208 1209 |
# File 'lib/IceGrid/Descriptor.rb', line 1207 def serverTemplates @serverTemplates end |
#serviceTemplates ⇒ Object
Returns the value of attribute serviceTemplates.
1207 1208 1209 |
# File 'lib/IceGrid/Descriptor.rb', line 1207 def serviceTemplates @serviceTemplates end |
#variables ⇒ Object
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
1199 1200 1201 |
# File 'lib/IceGrid/Descriptor.rb', line 1199 def eql?(other) return other.class == self.class && other == self end |
#hash ⇒ Object
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 |
#inspect ⇒ Object
1203 1204 1205 |
# File 'lib/IceGrid/Descriptor.rb', line 1203 def inspect ::Ice::__stringify(self, T_ApplicationDescriptor) end |