Class: AssMaintainer::InfoBase::Session
- Inherits:
-
Object
- Object
- AssMaintainer::InfoBase::Session
- Defined in:
- lib/ass_maintainer/info_base/server_ib.rb
Constant Summary collapse
- EXCLUDE_APP_IDS =
AppID excluded from Interfaces::InfoBase#sessions array
- SrvrConsole - cluster console
- COMConsole - ole cluster console
- OpenIDProvider - OpenID provider
- RAS - administration server
%w{SrvrConsole COMConsole OpenIDProvider RAS}
Instance Attribute Summary collapse
-
#app_id ⇒ Object
readonly
see #initialize
app_id. -
#host ⇒ Object
readonly
see #initialize
host. -
#id ⇒ Object
readonly
see #initialize
id. -
#infobase ⇒ Object
readonly
see #initialize
infobase. -
#user ⇒ Object
readonly
see #initialize
user.
Instance Method Summary collapse
-
#initialize(id, app_id, host, user, infobase) ⇒ Session
constructor
private
A new instance of Session.
-
#terminate ⇒ Object
Terminate session.
-
#terminated? ⇒ Boolean
True if session is terminated.
Constructor Details
#initialize(id, app_id, host, user, infobase) ⇒ Session
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Session.
32 33 34 35 36 37 38 |
# File 'lib/ass_maintainer/info_base/server_ib.rb', line 32 def initialize(id, app_id, host, user, infobase) @id = id @app_id = app_id @host = host @user = user @infobase = infobase end |
Instance Attribute Details
#app_id ⇒ Object (readonly)
see #initialize app_id
12 13 14 |
# File 'lib/ass_maintainer/info_base/server_ib.rb', line 12 def app_id @app_id end |
#host ⇒ Object (readonly)
see #initialize host
15 16 17 |
# File 'lib/ass_maintainer/info_base/server_ib.rb', line 15 def host @host end |
#id ⇒ Object (readonly)
see #initialize id
18 19 20 |
# File 'lib/ass_maintainer/info_base/server_ib.rb', line 18 def id @id end |
#infobase ⇒ Object (readonly)
see #initialize infobase
24 25 26 |
# File 'lib/ass_maintainer/info_base/server_ib.rb', line 24 def infobase @infobase end |
#user ⇒ Object (readonly)
see #initialize user
21 22 23 |
# File 'lib/ass_maintainer/info_base/server_ib.rb', line 21 def user @user end |
Instance Method Details
#terminate ⇒ Object
Terminate session
41 42 43 |
# File 'lib/ass_maintainer/info_base/server_ib.rb', line 41 def terminate infobase.send(:infobase_wrapper).terminate(self) unless terminated? end |
#terminated? ⇒ Boolean
True if session is terminated
46 47 48 |
# File 'lib/ass_maintainer/info_base/server_ib.rb', line 46 def terminated? infobase.send(:infobase_wrapper).session_get(id).empty? end |