Package gofer :: Package agent :: Module main :: Class AgentLock
[hide private]
[frames] | no frames]

Class AgentLock

source code

lock.Lock --+
            |
           AgentLock

Agent lock ensure that agent only has single instance running.

Instance Methods [hide private]
 
__init__(self) source code

Inherited from lock.Lock: acquire, release, setpid

Class Variables [hide private]
str PATH = '/var/run/%sd.pid' % NAME
The lock file absolute path.
Method Details [hide private]

__init__(self)
(Constructor)

source code 
Overrides: lock.Lock.__init__