OpenSDN source code
|
#include <sandesh_map.h>
Public Types | |
typedef std::map< uint32_t, VrfIndexResource > | Map |
typedef Map::iterator | MapIter |
Public Member Functions | |
VrfBackUpResourceTable (ResourceBackupManager *manager) | |
virtual | ~VrfBackUpResourceTable () |
bool | WriteToFile () |
void | ReadFromFile () |
void | RestoreResource () |
Map & | map () |
![]() | |
BackUpResourceTable (ResourceBackupManager *manager, const std::string &name, const std::string &file_name) | |
virtual | ~BackUpResourceTable () |
bool | TimerExpiry () |
void | StartTimer () |
ResourceBackupManager * | backup_manager () |
Agent * | agent () |
void | TriggerBackup () |
bool | UpdateRequired () |
void | EnqueueRestore (ResourceManager::KeyPtr key, ResourceManager::DataPtr data) |
const std::string & | backup_dir () |
const std::string & | file_name_str () |
const std::string & | file_name_prefix () |
Private Attributes | |
Map | map_ |
Additional Inherited Members | |
![]() | |
static const std::string | FindFile (const std::string &root, const std::string &file_ext) |
static bool | CalculateHashSum (const std::string &file_name, uint32_t *hashsum) |
![]() | |
static const uint8_t | kFallBackCount = 6 |
![]() | |
template<typename T1 , typename T2 > | |
bool | WriteMapToFile (T1 *sandesh_data, const T2 &index_map) |
template<typename T > | |
void | ReadMapFromFile (T *sandesh_data, const std::string &root) |
![]() | |
std::string | backup_dir_ |
Definition at line 148 of file sandesh_map.h.
typedef std::map<uint32_t, VrfIndexResource> VrfBackUpResourceTable::Map |
Definition at line 150 of file sandesh_map.h.
typedef Map::iterator VrfBackUpResourceTable::MapIter |
Definition at line 151 of file sandesh_map.h.
VrfBackUpResourceTable::VrfBackUpResourceTable | ( | ResourceBackupManager * | manager | ) |
Definition at line 482 of file sandesh_map.cc.
|
virtual |
Definition at line 487 of file sandesh_map.cc.
|
inline |
Definition at line 158 of file sandesh_map.h.
|
virtual |
Implements BackUpResourceTable.
Definition at line 496 of file sandesh_map.cc.
|
virtual |
Implements BackUpResourceTable.
Definition at line 503 of file sandesh_map.cc.
|
virtual |
Implements BackUpResourceTable.
Definition at line 490 of file sandesh_map.cc.
|
private |
Definition at line 160 of file sandesh_map.h.