Class Lockfile
In: lib/lockfile.rb
lib/lockfile-1.4.3.rb
Parent: Object

Methods

again!   again!   alive?   alive?   attempt   attempt   create   create   create   create   create_tmplock   create_tmplock   dump_lock_id   dump_lock_id   errmsg   errmsg   gen_lock_id   gen_lock_id   getopt   getopt   give_up!   give_up!   init   init   load_lock_id   load_lock_id   lock   lock   new   new   new_refresher   new_refresher   sweep   sweep   timestamp   timestamp   tmpnam   tmpnam   to_s   to_s   to_str   to_str   touch   touch   trace   trace   try_again!   try_again!   uncache   uncache   unlock   unlock   validlock?   validlock?   version   version  

Classes and Modules

Class Lockfile::LockError
Class Lockfile::MaxTriesLockError
Class Lockfile::NFSLockError
Class Lockfile::SleepCycle
Class Lockfile::StackingLockError
Class Lockfile::StatLockError
Class Lockfile::StolenLockError
Class Lockfile::TimeoutLockError
Class Lockfile::UnLockError

Constants

VERSION = '1.4.3'
HOSTNAME = Socket::gethostname
DEFAULT_RETRIES = nil
DEFAULT_TIMEOUT = nil
DEFAULT_MAX_AGE = 3600
DEFAULT_SLEEP_INC = 2
DEFAULT_MIN_SLEEP = 2
DEFAULT_MAX_SLEEP = 32
DEFAULT_SUSPEND = 1800
DEFAULT_REFRESH = 8
DEFAULT_DONT_CLEAN = false
DEFAULT_POLL_RETRIES = 16
DEFAULT_POLL_MAX_SLEEP = 0.08
DEFAULT_DONT_SWEEP = false
DEFAULT_DONT_USE_LOCK_ID = false
DEFAULT_DEBUG = ENV['LOCKFILE_DEBUG'] || false
VERSION = '1.4.3'
HOSTNAME = Socket::gethostname
DEFAULT_RETRIES = nil
DEFAULT_TIMEOUT = nil
DEFAULT_MAX_AGE = 3600
DEFAULT_SLEEP_INC = 2
DEFAULT_MIN_SLEEP = 2
DEFAULT_MAX_SLEEP = 32
DEFAULT_SUSPEND = 1800
DEFAULT_REFRESH = 8
DEFAULT_DONT_CLEAN = false
DEFAULT_POLL_RETRIES = 16
DEFAULT_POLL_MAX_SLEEP = 0.08
DEFAULT_DONT_SWEEP = false
DEFAULT_DONT_USE_LOCK_ID = false
DEFAULT_DEBUG = ENV['LOCKFILE_DEBUG'] || false

External Aliases

thief -> thief?
locked -> locked?
debug -> debug?
thief -> thief?
locked -> locked?
debug -> debug?

Attributes

basename  [R] 
basename  [R] 
clean  [R] 
clean  [R] 
debug  [RW] 
debug  [RW] 
debug  [RW] 
debug  [RW] 
dirname  [R] 
dirname  [R] 
dont_clean  [RW] 
dont_clean  [RW] 
dont_clean  [R] 
dont_clean  [R] 
dont_sweep  [R] 
dont_sweep  [RW] 
dont_sweep  [R] 
dont_sweep  [RW] 
dont_use_lock_id  [R] 
dont_use_lock_id  [R] 
dont_use_lock_id  [RW] 
dont_use_lock_id  [RW] 
klass  [R] 
klass  [R] 
locked  [R] 
locked  [R] 
max_age  [RW] 
max_age  [RW] 
max_age  [R] 
max_age  [R] 
max_sleep  [R] 
max_sleep  [RW] 
max_sleep  [RW] 
max_sleep  [R] 
min_sleep  [RW] 
min_sleep  [RW] 
min_sleep  [R] 
min_sleep  [R] 
opts  [R] 
opts  [R] 
path  [R] 
path  [R] 
poll_max_sleep  [R] 
poll_max_sleep  [RW] 
poll_max_sleep  [RW] 
poll_max_sleep  [R] 
poll_retries  [RW] 
poll_retries  [R] 
poll_retries  [RW] 
poll_retries  [R] 
refresh  [RW] 
refresh  [R] 
refresh  [RW] 
refresh  [R] 
retries  [RW] 
retries  [R] 
retries  [R] 
retries  [RW] 
sleep_inc  [RW] 
sleep_inc  [R] 
sleep_inc  [R] 
sleep_inc  [RW] 
suspend  [R] 
suspend  [RW] 
suspend  [R] 
suspend  [RW] 
thief  [R] 
thief  [R] 
timeout  [R] 
timeout  [RW] 
timeout  [R] 
timeout  [RW] 

Public Class methods

Public Instance methods

again!()

Alias for try_again!

again!()

Alias for try_again!

to_s()

Alias for to_str

to_s()

Alias for to_str

[Validate]