#include <dtn/VolatileBundleStore.h>


Public Member Functions | |
| VolatileBundleStore (Node *owner) | |
| Constructor. | |
| virtual | ~VolatileBundleStore () |
| Virtual destructor. | |
Protected Member Functions | |
| virtual BundlePointer | p_addBundle (Bundle *b)=0 |
| Protected implementation of addBundle(). | |
| virtual void | p_deleteBundle (Bundle *b)=0 |
| Protected implementation of deleteBundle(). | |
| virtual BundlePointer | p_getPointer (const BundlePointer &p)=0 |
| Protected implementation of getPointer(). | |
| virtual BundlePointer | p_getPointer (const ByteString &sender, uint32_t seqNum)=0 |
| Protected implementation of getPointer(). | |
| virtual bool | p_validatePointer (const BundlePointer &p)=0 |
| Protected implementation of validatePointer(). | |
| virtual size_t | p_bytesUsed ()=0 |
| Protected implementation of bytesUsed(). | |
| virtual size_t | p_bundles ()=0 |
| Protected implementation of bundles(). | |
| virtual void | p_shrinkStore (size_t s)=0 |
| Protected implementation of shrinkStore(). | |
| virtual void | clean () |
| Remove expired Bundles from the store. | |
A concrete subclass will need to be implemented in the wrapper. The interface is exactly that of the base BundleStore, but this version enforces clean-up of expired Bundles, recording them appropriately as drops.
Definition at line 45 of file VolatileBundleStore.h.
| void VolatileBundleStore::clean | ( | ) | [protected, virtual] |
Remove expired Bundles from the store.
This is virtual so that derived types can alter the behavior if they really want to.
Definition at line 37 of file VolatileBundleStore.cc.
References DTN::BundlePointerRepr::bundle(), DTN::Node::drop(), DTN::Bundle::expired(), DTN::ExpiryDrop::inst, DTN::BundlePointer::isNull(), DTN::BundleStore::m_owner, DTN::BundlePointer::next(), p_deleteBundle(), p_getPointer(), and DTN::BundlePointer::repr().
1.5.4