Class: IceGrid::ServerInfo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(application = '', uuid = '', revision = 0, node = '', descriptor = nil, sessionId = '') ⇒ ServerInfo

Returns a new instance of ServerInfo.



185
186
187
188
189
190
191
192
# File 'lib/IceGrid/Admin.rb', line 185

def initialize(application='', uuid='', revision=0, node='', descriptor=nil, sessionId='')
    @application = application
    @uuid = uuid
    @revision = revision
    @node = node
    @descriptor = descriptor
    @sessionId = sessionId
end

Instance Attribute Details

#applicationObject

Returns the value of attribute application.



224
225
226
# File 'lib/IceGrid/Admin.rb', line 224

def application
  @application
end

#descriptorObject

Returns the value of attribute descriptor.



224
225
226
# File 'lib/IceGrid/Admin.rb', line 224

def descriptor
  @descriptor
end

#nodeObject

Returns the value of attribute node.



224
225
226
# File 'lib/IceGrid/Admin.rb', line 224

def node
  @node
end

#revisionObject

Returns the value of attribute revision.



224
225
226
# File 'lib/IceGrid/Admin.rb', line 224

def revision
  @revision
end

#sessionIdObject

Returns the value of attribute sessionId.



224
225
226
# File 'lib/IceGrid/Admin.rb', line 224

def sessionId
  @sessionId
end

#uuidObject

Returns the value of attribute uuid.



224
225
226
# File 'lib/IceGrid/Admin.rb', line 224

def uuid
  @uuid
end

Instance Method Details

#==(other) ⇒ Object



205
206
207
208
209
210
211
212
213
214
# File 'lib/IceGrid/Admin.rb', line 205

def ==(other)
    return false if !other.is_a? ::IceGrid::ServerInfo or
        @application != other.application or
        @uuid != other.uuid or
        @revision != other.revision or
        @node != other.node or
        @descriptor != other.descriptor or
        @sessionId != other.sessionId
    true
end

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


216
217
218
# File 'lib/IceGrid/Admin.rb', line 216

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

#hashObject



194
195
196
197
198
199
200
201
202
203
# File 'lib/IceGrid/Admin.rb', line 194

def hash
    _h = 0
    _h = 5 * _h + @application.hash
    _h = 5 * _h + @uuid.hash
    _h = 5 * _h + @revision.hash
    _h = 5 * _h + @node.hash
    _h = 5 * _h + @descriptor.hash
    _h = 5 * _h + @sessionId.hash
    _h % 0x7fffffff
end

#inspectObject



220
221
222
# File 'lib/IceGrid/Admin.rb', line 220

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