Package buildbot :: Package status :: Module persistent_queue :: Class PersistentQueue
[frames] | no frames]

Class PersistentQueue

source code

object --+
         |
        PersistentQueue

Keeps a list of abstract items and serializes it to the disk.

It has 2 layers of queue, normally an in-memory queue and an on-disk queue. When the number of items in the primary queue gets too large, the new items are automatically saved to the secondary queue. The older items are kept in the primary queue.

Instance Methods
 
__init__(self, primaryQueue=None, secondaryQueue=None, path=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
pushItem(self, item) source code
 
insertBackChunk(self, chunk) source code
 
popChunk(self, nbItems=None) source code
 
save(self) source code
 
items(self) source code
 
nbItems(self) source code
 
maxItems(self) source code
 
__providedBy__(...)
Object Specification Descriptor
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  __implemented__ = <implementedBy buildbot.status.persistent_qu...
  __provides__ = <zope.interface.declarations.ClassProvides obje...
Properties

Inherited from object: __class__

Method Details

__init__(self, primaryQueue=None, secondaryQueue=None, path=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__

Class Variable Details

__implemented__

Value:
<implementedBy buildbot.status.persistent_queue.PersistentQueue>

__provides__

Value:
<zope.interface.declarations.ClassProvides object at 0x4184210>