bamboo.db
Class RecoverFatal

java.lang.Object
  extended by bamboo.db.RecoverFatal

public class RecoverFatal
extends Object

An asynchronous interface to BerkeleyDB.

Data is stored on disk in a table with the following fields:

BytesData
0-7 put time since the epoch (microseconds)
8-11ttl interval after put time (seconds)
12-31guid
32-51data hash
52 whether this is a put (1) or remove (0)
53- data
The data hash is needed to guarentee a consistent scan order and for removes. The primary key is bytes 0-52, and the secondary key is the guid concatenated with the data hash.

Version:
$Id: RecoverFatal.java,v 1.1 2004/09/01 18:26:30 srhea Exp $
Author:
Sean C. Rhea

Field Summary
protected  com.sleepycat.db.Db by_guid
           
protected  com.sleepycat.db.Db by_guid_and_data_hash
           
protected  com.sleepycat.db.Db by_time
           
protected  com.sleepycat.db.Db client_counts
           
protected  com.sleepycat.db.DbEnv env
           
protected  com.sleepycat.db.DbSecondaryKeyCreate guid_key_creator
           
protected  com.sleepycat.db.Db recycling
           
 
Constructor Summary
RecoverFatal(String homedir)
           
 
Method Summary
static void main(String[] args)
           
protected  void primary_key_to_recycling_key(byte[] buf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

guid_key_creator

protected com.sleepycat.db.DbSecondaryKeyCreate guid_key_creator

client_counts

protected com.sleepycat.db.Db client_counts

by_time

protected com.sleepycat.db.Db by_time

by_guid

protected com.sleepycat.db.Db by_guid

by_guid_and_data_hash

protected com.sleepycat.db.Db by_guid_and_data_hash

recycling

protected com.sleepycat.db.Db recycling

env

protected com.sleepycat.db.DbEnv env
Constructor Detail

RecoverFatal

public RecoverFatal(String homedir)
             throws Exception
Throws:
Exception
Method Detail

primary_key_to_recycling_key

protected void primary_key_to_recycling_key(byte[] buf)

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception