Module: AssMaintainer::InfoBase::FileIb
- Defined in:
- lib/ass_maintainer/info_base/file_ib.rb
Overview
Mixins for file deployed infobase
Defined Under Namespace
Classes: FileBaseDestroyer
Instance Method Summary collapse
-
#exists? ⇒ Object
True if infobase exists.
-
#lock(*_) ⇒ Object
Locking infobase if it possible.
-
#lock_schjobs ⇒ Object
Lock schedule jobs.
-
#locked? ⇒ Object
Return
trueif on server flagSessionsDenied == true. -
#sessions ⇒ Array <InfoBase::Session>
Returns array of infobase sessions exclude Session::EXCLUDE_APP_IDS application types.
-
#unlock ⇒ Object
Soft unlocking infobase if it possible.
-
#unlock! ⇒ Object
Force unlock infobase.
-
#unlock_schjobs ⇒ Object
Unlock schedule jobs.
Instance Method Details
#exists? ⇒ Object
True if infobase exists
46 47 48 |
# File 'lib/ass_maintainer/info_base/file_ib.rb', line 46 def exists? File.file?("#{connection_string.path}/1Cv8.1CD") end |
#lock(*_) ⇒ Object
It must work for ServerIb only. For AssMaintainer::InfoBase::FileIb it must do nothing
Locking infobase if it possible. Be careful it terminate all
sessions! Before do it should set InfoBase#unlock_code!
Schedule jobs will be locked to!
29 30 |
# File 'lib/ass_maintainer/info_base/file_ib.rb', line 29 def lock(*_) end |
#lock_schjobs ⇒ Object
It must work for ServerIb only. For AssMaintainer::InfoBase::FileIb it must do nothing
Lock schedule jobs
51 52 |
# File 'lib/ass_maintainer/info_base/file_ib.rb', line 51 def lock_schjobs end |
#locked? ⇒ Object
For AssMaintainer::InfoBase::FileIb it must always return false
It work for ServerIb only.
Return true if on server flag SessionsDenied == true
41 42 43 |
# File 'lib/ass_maintainer/info_base/file_ib.rb', line 41 def locked? false end |
#sessions ⇒ Array <InfoBase::Session>
For AssMaintainer::InfoBase::FileIb must returns empty array
Returns array of infobase sessions exclude Session::EXCLUDE_APP_IDS application types
24 25 26 |
# File 'lib/ass_maintainer/info_base/file_ib.rb', line 24 def sessions [] end |
#unlock ⇒ Object
It must work for ServerIb only. For AssMaintainer::InfoBase::FileIb it must do nothing
Soft unlocking infobase if it possible. For force unlocking exec ##unlock!
33 34 |
# File 'lib/ass_maintainer/info_base/file_ib.rb', line 33 def unlock end |
#unlock! ⇒ Object
It must work for ServerIb only. For AssMaintainer::InfoBase::FileIb it must do nothing
Force unlock infobase.
37 38 |
# File 'lib/ass_maintainer/info_base/file_ib.rb', line 37 def unlock! end |
#unlock_schjobs ⇒ Object
It must work for ServerIb only. For AssMaintainer::InfoBase::FileIb it must do nothing
Unlock schedule jobs
55 56 |
# File 'lib/ass_maintainer/info_base/file_ib.rb', line 55 def unlock_schjobs end |