Package commons :: Module files :: Class disk_double_buffer
[hide private]
[frames] | no frames]

Class disk_double_buffer

source code

object --+
         |
        disk_double_buffer

A simple disk double-buffer. One file is for reading, the other is for writing, and a facility for swapping the two roles is provided.

Instance Methods [hide private]
 
__init__(self, path_base, do_persist=True)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
reload_files(self) source code
 
switch(self) source code
 
write(self, x) source code
 
read(self, len=8192) source code
 
close(self) source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, path_base, do_persist=True)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)