HEX
Server: Apache
System: Linux msm5694.mjhst.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: camjab_ssh (1000)
PHP: 5.3.29
Disabled: NONE
Upload Files
File: //lib/python2.7/site-packages/vdo/vdomgmnt/CommandLock.pyo
ó
.Åt_c@sRdZddlmZmZmZdefd„ƒYZdefd„ƒYZdS(sy
  CommandLock - simple process locking

  $Id: //eng/vdo-releases/magnesium/src/python/vdo/vdomgmnt/CommandLock.py#1 $

iÿÿÿÿ(tCommandtFileLocktLoggertCommandLockErrorcBs eZdZd„Zd„ZRS(s>Exception raised to indicate an error acquiring a CommandLock.cGs)tt|ƒjƒ|j|Œ|_dS(N(tsuperRt__init__tformatt_message(tselftmessagetargs((s</usr/lib/python2.7/site-packages/vdo/vdomgmnt/CommandLock.pyR!scCs|jS(N(R(R((s</usr/lib/python2.7/site-packages/vdo/vdomgmnt/CommandLock.pyt__str__&s(t__name__t
__module__t__doc__RR(((s</usr/lib/python2.7/site-packages/vdo/vdomgmnt/CommandLock.pyRs	tCommandLockcBsTeZdZejejdƒZd„Zed„Z	d„Z
d„Zd„ZRS(sSimple process locking.
  s.CommandLockcCs7ytt|ƒjƒWntd|jƒ‚nX|S(NsCould not lock file {0}(RRt	__enter__Rtpath(R((s</usr/lib/python2.7/site-packages/vdo/vdomgmnt/CommandLock.pyR2s
cCs/tt|ƒj||rdndddƒdS(Ntrsr+ttimeouti(RRR(RtfilePathtreadonly((s</usr/lib/python2.7/site-packages/vdo/vdomgmnt/CommandLock.pyR:scsUtˆƒdg}|jdj‡fd†ˆjDƒƒƒ|jdƒdj|ƒS(Nt[t,c3s3|])}dj|ttˆ|ƒƒgƒVqdS(t=N(tjointstrtgetattr(t.0tkey(R(s</usr/lib/python2.7/site-packages/vdo/vdomgmnt/CommandLock.pys	<genexpr>Bst]t(RtappendRt__dict__(Rtlst((Rs</usr/lib/python2.7/site-packages/vdo/vdomgmnt/CommandLock.pyt__repr__@s

cCsdjt|ƒj|jƒS(Ns{0}({1})(RttypeRR(R((s</usr/lib/python2.7/site-packages/vdo/vdomgmnt/CommandLock.pyRHscCs9tt|ƒjƒtdd|jgƒ}|jƒdS(Ntchmodt644(RRt_createFileRRtrun(Rtcmd((s</usr/lib/python2.7/site-packages/vdo/vdomgmnt/CommandLock.pyR'Ls(
RR
RRt	getLoggertmynametlogRtTrueRR#RR'(((s</usr/lib/python2.7/site-packages/vdo/vdomgmnt/CommandLock.pyR*s			N(RtutilsRRRt	ExceptionRR(((s</usr/lib/python2.7/site-packages/vdo/vdomgmnt/CommandLock.pyt<module>s