Package bw :: Package poseidon :: Module ioengine :: Class PersistenceEngine
[frames] | no frames]

Class PersistenceEngine

object --+
         |
        PersistenceEngine

Abstract class for ocean/sea object

Instance Methods
 
get_r_fp(self)
 
__init__(self, fn, options)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
__repr__(self)
repr(x)
 
get(self, key, failobj=None)
 
has_key(self, key)
 
close(self)
 
commit(self, current_tid, ttime, transaction_data)
 
create(self)
Create the data-file
 
flush_index(self)
 
get_options(self)
Returns the current options in use.
 
load_index(self)
 
load_cache(self)
 
mark_index_inconsistent(self, tf)
 
read(self, key, ttime)
Read the entry for ttime
 
read_disk(self, key, ttime)
 
read_header(self)
 
recreate_index(self)
Read the datafile and create the index file
 
rollback(self, current_tid, ttime, old_tid, old_ttime)
 
validate_transaction(self, ttime, transaction_data)
 
clean_index(self)
 
is_snaphot(self, name)
 
create_snapshot(self, name=str(time.time()))
Create a snapshot with name [name].
 
stats(self)
Return useful statistics on the store.
 
upgrade(self, source_header, to_version)

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Class Variables
  r_fp = property(fget= get_r_fp, fset= None, fdel= None, doc= "")
Properties

Inherited from object: __class__

Method Details

__init__(self, fn, options)
(Constructor)

 

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

Overrides: object.__init__
(inherited documentation)

__repr__(self)
(Representation operator)

 

repr(x)

Overrides: object.__repr__
(inherited documentation)

get_options(self)

 

Returns the current options in use. This is read-only

create_snapshot(self, name=str(time.time()))

 

Create a snapshot with name [name].

If name is None, the current timestamp is used

stats(self)

 

Return useful statistics on the store.

  • version
  • system endianness
  • storage engine
  • disk data size
  • index data size
  • created time
  • last modification
  • uptime (in seconds)
  • number of items
  • total reads operations
  • cache hits
  • total number of commits
  • tau
  • pack/flush/commit state