#include <DurableStoreImpl.h>
Definition at line 27 of file DurableStoreImpl.h.
Public Types | |
| typedef std::map< std::string, int > | RefCountMap |
| Map used for ref counting tables. | |
| typedef std::vector< SerializableObject * > | PrototypeVector |
| Typedef for the list of objects passed to get_table. | |
Public Member Functions | |
| DurableStoreImpl (const char *classname, const char *logpath) | |
| Constructor (initializes the log path). | |
| virtual | ~DurableStoreImpl () |
| Destructor. | |
| virtual int | init (const StorageConfig &config)=0 |
| virtual int | get_table (DurableTableImpl **table, const std::string &db_name, int flags, PrototypeVector &prototypes)=0 |
| Hook to get or create the implementation-specific components of a durable table. | |
| virtual int | del_table (const std::string &db_name)=0 |
| Hook to remove a table (by name) from the data store. | |
| virtual int | get_table_names (StringVector *names)=0 |
| Hook to get all of the names of the tables in the store. | |
| virtual std::string | get_info () const=0 |
| |
Protected Member Functions | |
| int | check_db_dir (const char *db_dir, bool *dir_exists) |
| Check for the db directory. | |
| int | create_db_dir (const char *db_dir) |
| Create database directory. | |
| void | prune_db_dir (const char *db_dir, int tidy_wait) |
| Remove the given directory, after waiting the specified amount of time. | |
| typedef std::map<std::string, int> DurableStoreImpl::RefCountMap |
| typedef std::vector<SerializableObject*> DurableStoreImpl::PrototypeVector |
Typedef for the list of objects passed to get_table.
Definition at line 35 of file DurableStoreImpl.h.
| DurableStoreImpl::DurableStoreImpl | ( | const char * | classname, | |
| const char * | logpath | |||
| ) | [inline] |
| virtual DurableStoreImpl::~DurableStoreImpl | ( | ) | [inline, virtual] |
| virtual int DurableStoreImpl::init | ( | const StorageConfig & | config | ) | [pure virtual] |
Real initialization function.
| virtual int DurableStoreImpl::get_table | ( | DurableTableImpl ** | table, | |
| const std::string & | db_name, | |||
| int | flags, | |||
| PrototypeVector & | prototypes | |||
| ) | [pure virtual] |
Hook to get or create the implementation-specific components of a durable table.
| virtual int DurableStoreImpl::del_table | ( | const std::string & | db_name | ) | [pure virtual] |
Hook to remove a table (by name) from the data store.
| virtual int DurableStoreImpl::get_table_names | ( | StringVector * | names | ) | [pure virtual] |
Hook to get all of the names of the tables in the store.
| virtual std::string DurableStoreImpl::get_info | ( | ) | const [pure virtual] |
| int DurableStoreImpl::check_db_dir | ( | const char * | db_dir, | |
| bool * | dir_exists | |||
| ) | [protected] |
Check for the db directory.
| db_dir | Directory to check | |
| dir_exists | To be set if directory exists. |
| int DurableStoreImpl::create_db_dir | ( | const char * | db_dir | ) | [protected] |
Create database directory.
| void DurableStoreImpl::prune_db_dir | ( | const char * | db_dir, | |
| int | tidy_wait | |||
| ) | [protected] |
Remove the given directory, after waiting the specified amount of time.
1.5.1