Class: IceGrid::AdapterDescriptor
- Inherits:
-
Object
- Object
- IceGrid::AdapterDescriptor
- Defined in:
- lib/IceGrid/Descriptor.rb
Instance Attribute Summary collapse
-
#allocatables ⇒ Object
Returns the value of attribute allocatables.
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#objects ⇒ Object
Returns the value of attribute objects.
-
#priority ⇒ Object
Returns the value of attribute priority.
-
#registerProcess ⇒ Object
Returns the value of attribute registerProcess.
-
#replicaGroupId ⇒ Object
Returns the value of attribute replicaGroupId.
-
#serverLifetime ⇒ Object
Returns the value of attribute serverLifetime.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(name = '', description = '', id = '', replicaGroupId = '', priority = '', registerProcess = false, serverLifetime = false, objects = nil, allocatables = nil) ⇒ AdapterDescriptor
constructor
A new instance of AdapterDescriptor.
- #inspect ⇒ Object
Constructor Details
#initialize(name = '', description = '', id = '', replicaGroupId = '', priority = '', registerProcess = false, serverLifetime = false, objects = nil, allocatables = nil) ⇒ AdapterDescriptor
Returns a new instance of AdapterDescriptor.
164 165 166 167 168 169 170 171 172 173 174 |
# File 'lib/IceGrid/Descriptor.rb', line 164 def initialize(name='', description='', id='', replicaGroupId='', priority='', registerProcess=false, serverLifetime=false, objects=nil, allocatables=nil) @name = name @description = description @id = id @replicaGroupId = replicaGroupId @priority = priority @registerProcess = registerProcess @serverLifetime = serverLifetime @objects = objects @allocatables = allocatables end |
Instance Attribute Details
#allocatables ⇒ Object
Returns the value of attribute allocatables.
212 213 214 |
# File 'lib/IceGrid/Descriptor.rb', line 212 def allocatables @allocatables end |
#description ⇒ Object
Returns the value of attribute description.
212 213 214 |
# File 'lib/IceGrid/Descriptor.rb', line 212 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
212 213 214 |
# File 'lib/IceGrid/Descriptor.rb', line 212 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
212 213 214 |
# File 'lib/IceGrid/Descriptor.rb', line 212 def name @name end |
#objects ⇒ Object
Returns the value of attribute objects.
212 213 214 |
# File 'lib/IceGrid/Descriptor.rb', line 212 def objects @objects end |
#priority ⇒ Object
Returns the value of attribute priority.
212 213 214 |
# File 'lib/IceGrid/Descriptor.rb', line 212 def priority @priority end |
#registerProcess ⇒ Object
Returns the value of attribute registerProcess.
212 213 214 |
# File 'lib/IceGrid/Descriptor.rb', line 212 def registerProcess @registerProcess end |
#replicaGroupId ⇒ Object
Returns the value of attribute replicaGroupId.
212 213 214 |
# File 'lib/IceGrid/Descriptor.rb', line 212 def replicaGroupId @replicaGroupId end |
#serverLifetime ⇒ Object
Returns the value of attribute serverLifetime.
212 213 214 |
# File 'lib/IceGrid/Descriptor.rb', line 212 def serverLifetime @serverLifetime end |
Instance Method Details
#==(other) ⇒ Object
190 191 192 193 194 195 196 197 198 199 200 201 202 |
# File 'lib/IceGrid/Descriptor.rb', line 190 def ==(other) return false if !other.is_a? ::IceGrid::AdapterDescriptor or @name != other.name or @description != other.description or @id != other.id or @replicaGroupId != other.replicaGroupId or @priority != other.priority or @registerProcess != other.registerProcess or @serverLifetime != other.serverLifetime or @objects != other.objects or @allocatables != other.allocatables true end |
#eql?(other) ⇒ Boolean
204 205 206 |
# File 'lib/IceGrid/Descriptor.rb', line 204 def eql?(other) return other.class == self.class && other == self end |
#hash ⇒ Object
176 177 178 179 180 181 182 183 184 185 186 187 188 |
# File 'lib/IceGrid/Descriptor.rb', line 176 def hash _h = 0 _h = 5 * _h + @name.hash _h = 5 * _h + @description.hash _h = 5 * _h + @id.hash _h = 5 * _h + @replicaGroupId.hash _h = 5 * _h + @priority.hash _h = 5 * _h + @registerProcess.hash _h = 5 * _h + @serverLifetime.hash _h = 5 * _h + @objects.hash _h = 5 * _h + @allocatables.hash _h % 0x7fffffff end |
#inspect ⇒ Object
208 209 210 |
# File 'lib/IceGrid/Descriptor.rb', line 208 def inspect ::Ice::__stringify(self, T_AdapterDescriptor) end |