IBR-DTNSuite
0.12
|
#include <SQLiteBundleSet.h>
Classes | |
class | Factory |
Public Member Functions | |
SQLiteBundleSet (const size_t id, bool persistant, dtn::data::BundleSet::Listener *listener, dtn::data::Size bf_size, dtn::storage::SQLiteDatabase &database) | |
virtual | ~SQLiteBundleSet () |
virtual refcnt_ptr< BundleSetImpl > | copy () const |
virtual void | assign (const refcnt_ptr< BundleSetImpl > &) |
virtual void | add (const dtn::data::MetaBundle &bundle) throw () |
virtual void | clear () throw () |
virtual bool | has (const dtn::data::BundleID &bundle) const throw () |
virtual void | expire (const dtn::data::Timestamp timestamp) throw () |
virtual dtn::data::Size | size () const throw () |
dtn::data::Length | getLength () const throw () |
const ibrcommon::BloomFilter & | getBloomFilter () const throw () |
std::set< dtn::data::MetaBundle > | getNotIn (const ibrcommon::BloomFilter &filter) const throw () |
virtual std::ostream & | serialize (std::ostream &stream) const |
virtual std::istream & | deserialize (std::istream &stream) |
Public Member Functions inherited from dtn::data::BundleSetImpl | |
virtual | ~BundleSetImpl ()=0 |
virtual void | assign (const refcnt_ptr< BundleSetImpl > &)=0 |
virtual void | sync () throw () |
Definition at line 38 of file SQLiteBundleSet.h.
dtn::storage::SQLiteBundleSet::SQLiteBundleSet | ( | const size_t | id, |
bool | persistant, | ||
dtn::data::BundleSet::Listener * | listener, | ||
dtn::data::Size | bf_size, | ||
dtn::storage::SQLiteDatabase & | database | ||
) |
bf_size | Initial size fo the bloom-filter. |
Definition at line 109 of file SQLiteBundleSet.cpp.
References dtn::storage::SQLiteDatabase::Statement::step().
Referenced by copy(), and dtn::storage::SQLiteBundleSet::Factory::create().
|
virtual |
Definition at line 134 of file SQLiteBundleSet.cpp.
|
virtual |
Implements dtn::data::BundleSetImpl.
Definition at line 202 of file SQLiteBundleSet.cpp.
References dtn::storage::SQLiteDatabase::Statement::step().
|
virtual |
clears the bundle-set and copy all entries from the given one into this bundle-set
Definition at line 176 of file SQLiteBundleSet.cpp.
References clear(), refcnt_ptr< T >::getPointer(), and dtn::storage::SQLiteDatabase::Statement::step().
|
virtual |
Implements dtn::data::BundleSetImpl.
Definition at line 235 of file SQLiteBundleSet.cpp.
References ibrcommon::BloomFilter::clear(), and dtn::storage::SQLiteDatabase::Statement::step().
Referenced by assign(), and deserialize().
|
virtual |
copies the current bundle-set into a new temporary one
Implements dtn::data::BundleSetImpl.
Definition at line 154 of file SQLiteBundleSet.cpp.
References dtn::storage::SQLiteBundleSet::Factory::create(), SQLiteBundleSet(), and dtn::storage::SQLiteDatabase::Statement::step().
|
virtual |
Implements dtn::data::BundleSetImpl.
Definition at line 402 of file SQLiteBundleSet.cpp.
References clear(), and ibrcommon::BloomFilter::load().
|
virtual |
Implements dtn::data::BundleSetImpl.
Definition at line 284 of file SQLiteBundleSet.cpp.
References dtn::data::MetaBundle::create(), ibrcommon::LogLevel::error, IBRCOMMON_LOGGER_ENDL, IBRCOMMON_LOGGER_TAG, dtn::storage::SQLiteDatabase::Statement::step(), and ibrcommon::Exception::what().
|
virtual |
Implements dtn::data::BundleSetImpl.
Definition at line 357 of file SQLiteBundleSet.cpp.
|
virtual |
Returns the data length of the serialized BundleSet
Implements dtn::data::BundleSetImpl.
Definition at line 352 of file SQLiteBundleSet.cpp.
References ibrcommon::BloomFilter::size().
|
virtual |
Implements dtn::data::BundleSetImpl.
Definition at line 362 of file SQLiteBundleSet.cpp.
References dtn::data::MetaBundle::create(), and dtn::storage::SQLiteDatabase::Statement::step().
|
virtual |
Implements dtn::data::BundleSetImpl.
Definition at line 250 of file SQLiteBundleSet.cpp.
References dtn::storage::SQLiteDatabase::Statement::step().
|
virtual |
Implements dtn::data::BundleSetImpl.
Definition at line 391 of file SQLiteBundleSet.cpp.
References size(), ibrcommon::BloomFilter::size(), and ibrcommon::BloomFilter::table().
|
virtual |
Returns the number of elements in this set
Implements dtn::data::BundleSetImpl.
Definition at line 333 of file SQLiteBundleSet.cpp.
References dtn::storage::SQLiteDatabase::Statement::step().
Referenced by serialize().