class
LavinMQ::DataDirLock
- LavinMQ::DataDirLock
- Reference
- Object
Overview
Make sure that only one instance is using the data directory Can work as a poor mans cluster where the master nodes acquires a file lock on a shared file system like NFS
Defined in:
lavinmq/data_dir_lock.crConstant Summary
-
Log =
LavinMQ::Log.for("data_dir_lock")
Constructors
Instance Method Summary
-
#acquire
See
man 2 flock
-
#poll
Read from the lock file to detect lost lock on networked filesystems (NFS/SMB) See "Lost locks" in
man 2 fcntl
- #release
Constructor Detail
Instance Method Detail
def poll
#
Read from the lock file to detect lost lock on networked filesystems (NFS/SMB)
See "Lost locks" in man 2 fcntl