HWRF  trunk@4391
Public Member Functions | Public Attributes | List of all members
produtil.datastore.DatumLockHeld Class Reference

Raised when a LockDatum is held by another Worker. More...

Detailed Description

Raised when a LockDatum is held by another Worker.

Definition at line 27 of file datastore.py.

Inheritance diagram for produtil.datastore.DatumLockHeld:

Public Member Functions

def __init__ (self, did, owner, owninfo, ownseen, ownlegacy, checktime)
 DatumLockHeld constructor. More...
 
def __str__ (self)
 Human-readable representation of this exception. More...
 
def __repr__ (self)
 String representation of this object. More...
 

Public Attributes

 did
 The database ID of the datum whose lock is held.
 
 owner
 The owner of the lock.
 
 owninfo
 implementation-defined information about the owner
 
 ownseen
 last time the owner checked in
 
 ownlegacy
 length of time the lock is valid
 
 checktime
 suggestion of how often to check the lock
 

Constructor & Destructor Documentation

def produtil.datastore.DatumLockHeld.__init__ (   self,
  did,
  owner,
  owninfo,
  ownseen,
  ownlegacy,
  checktime 
)

DatumLockHeld constructor.

Parameters
didthe database ID of the datum whose lock is held
ownerthe owner of the lock
owninfoimplementation-defined information about the owner
ownseenlast time the owner checked in
ownlegacylength of time the lock is valid
checktimesuggestion of how often to check the lock

Definition at line 29 of file datastore.py.

Member Function Documentation

def produtil.datastore.DatumLockHeld.__repr__ (   self)

String representation of this object.

Definition at line 72 of file datastore.py.

Referenced by produtil.prog.Runner.__str__().

def produtil.datastore.DatumLockHeld.__str__ (   self)

Human-readable representation of this exception.

Definition at line 61 of file datastore.py.


The documentation for this class was generated from the following file: