com.yahoo.ycsb
Class DataStore

java.lang.Object
  extended by com.yahoo.ycsb.DataStore
Direct Known Subclasses:
DB, Memcached

public abstract class DataStore
extends java.lang.Object


Constructor Summary
DataStore()
           
 
Method Summary
 void cleanup()
          Cleanup any state for this DB.
 java.util.Properties getProperties()
          Get the set of properties for this DB.
 void init()
          Initialize any state for this DB.
 void setProperties(java.util.Properties p)
          Set the properties for this DB.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataStore

public DataStore()
Method Detail

setProperties

public void setProperties(java.util.Properties p)
Set the properties for this DB.


getProperties

public java.util.Properties getProperties()
Get the set of properties for this DB.


init

public void init()
          throws DataStoreException
Initialize any state for this DB. Called once per DB instance; there is one DB instance per client thread.

Throws:
DataStoreException

cleanup

public void cleanup()
             throws DataStoreException
Cleanup any state for this DB. Called once per DB instance; there is one DB instance per client thread.

Throws:
DataStoreException