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

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

Note:

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!

Raises:



29
30
# File 'lib/ass_maintainer/info_base/file_ib.rb', line 29

def lock(*_)
end

#lock_schjobsObject

Note:

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

Note:

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

#sessionsArray <InfoBase::Session>

Note:

For AssMaintainer::InfoBase::FileIb must returns empty array

Returns array of infobase sessions exclude Session::EXCLUDE_APP_IDS application types

Returns:



24
25
26
# File 'lib/ass_maintainer/info_base/file_ib.rb', line 24

def sessions
  []
end

#unlockObject

Note:

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!

Raises:



33
34
# File 'lib/ass_maintainer/info_base/file_ib.rb', line 33

def unlock
end

#unlock!Object

Note:

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_schjobsObject

Note:

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