dtn::ProphetStore Class Reference

#include <ProphetStore.h>

List of all members.

Public Types

typedef
oasys::InternalKeyDurableTable
< EndpointIDShim, EndpointID,
ProphetNode
ProphetDurableTable
typedef
ProphetDurableTable::iterator 
iterator

Public Member Functions

 ProphetStore (const oasys::StorageConfig &cfg)
 Constructor.
bool add (ProphetNode *node)
 Add a new ProphetNode.
ProphetNodeget (const EndpointID &remote_eid)
 Retrieve a ProphetNode.
bool update (ProphetNode *node)
 Update the ProphetNode data.
bool del (ProphetNode *node)
 Delete the ProphetNode.
iteratornew_iterator ()
 Return a new iterator.
void close ()
 Close down the table.

Static Public Member Functions

static int init (const oasys::StorageConfig &cfg, oasys::DurableStore *store)
 Boot time initializer.

Protected Attributes

const oasys::StorageConfig & cfg_
 storage configuration
ProphetDurableTable nodes_
 ProphetNode information base.


Detailed Description

Definition at line 47 of file ProphetStore.h.


Member Typedef Documentation

typedef ProphetDurableTable::iterator dtn::ProphetStore::iterator

Definition at line 51 of file ProphetStore.h.

Definition at line 50 of file ProphetStore.h.


Constructor & Destructor Documentation

dtn::ProphetStore::ProphetStore ( const oasys::StorageConfig &  cfg  ) 

Constructor.

Definition at line 30 of file ProphetStore.cc.

Referenced by init().


Member Function Documentation

bool dtn::ProphetStore::add ( ProphetNode node  ) 

Add a new ProphetNode.

Definition at line 52 of file ProphetStore.cc.

References nodes_.

void dtn::ProphetStore::close (  ) 

Close down the table.

Definition at line 95 of file ProphetStore.cc.

References nodes_.

bool dtn::ProphetStore::del ( ProphetNode node  ) 

Delete the ProphetNode.

Definition at line 80 of file ProphetStore.cc.

References prophet::Node::dest_id(), and nodes_.

ProphetNode * dtn::ProphetStore::get ( const EndpointID remote_eid  ) 

Retrieve a ProphetNode.

Definition at line 62 of file ProphetStore.cc.

References dtn::EndpointID::c_str(), and nodes_.

Referenced by dtn::ProphetBundleCore::load_prophet_nodes().

int dtn::ProphetStore::init ( const oasys::StorageConfig &  cfg,
oasys::DurableStore *  store 
) [static]

Boot time initializer.

Definition at line 39 of file ProphetStore.cc.

References ProphetStore().

Referenced by dtn::DTNServer::init_datastore().

ProphetStore::iterator * dtn::ProphetStore::new_iterator (  ) 

Return a new iterator.

Definition at line 88 of file ProphetStore.cc.

References nodes_.

Referenced by dtn::ProphetBundleCore::load_prophet_nodes().

bool dtn::ProphetStore::update ( ProphetNode node  ) 

Update the ProphetNode data.

Definition at line 70 of file ProphetStore.cc.

References nodes_.


Member Data Documentation

const oasys::StorageConfig& dtn::ProphetStore::cfg_ [protected]

storage configuration

Definition at line 84 of file ProphetStore.h.

ProphetNode information base.

Definition at line 85 of file ProphetStore.h.

Referenced by add(), close(), del(), get(), new_iterator(), and update().


The documentation for this class was generated from the following files:

Generated on Fri Jan 30 09:27:05 2009 for DTN Reference Implementation by  doxygen 1.5.8