OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
BgpAsServiceBackUpResourceTable Class Reference

#include <sandesh_map.h>

Inheritance diagram for BgpAsServiceBackUpResourceTable:
Collaboration diagram for BgpAsServiceBackUpResourceTable:

Public Types

typedef std::map< uint32_t,
BgpAsServiceIndexResource > 
Map
 
typedef Map::iterator MapIter
 

Public Member Functions

 BgpAsServiceBackUpResourceTable (ResourceBackupManager *manager)
 
virtual ~BgpAsServiceBackUpResourceTable ()
 
bool WriteToFile ()
 
void ReadFromFile ()
 
void RestoreResource ()
 
Mapmap ()
 
- Public Member Functions inherited from BackUpResourceTable
 BackUpResourceTable (ResourceBackupManager *manager, const std::string &name, const std::string &file_name)
 
virtual ~BackUpResourceTable ()
 
bool TimerExpiry ()
 
void StartTimer ()
 
ResourceBackupManagerbackup_manager ()
 
Agentagent ()
 
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 Public Member Functions inherited from BackUpResourceTable
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 Public Attributes inherited from BackUpResourceTable
static const uint8_t kFallBackCount = 6
 
- Protected Member Functions inherited from BackUpResourceTable
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)
 
- Protected Attributes inherited from BackUpResourceTable
std::string backup_dir_
 

Detailed Description

Definition at line 181 of file sandesh_map.h.

Member Typedef Documentation

typedef std::map<uint32_t, BgpAsServiceIndexResource> BgpAsServiceBackUpResourceTable::Map

Definition at line 183 of file sandesh_map.h.

Definition at line 184 of file sandesh_map.h.

Constructor & Destructor Documentation

BgpAsServiceBackUpResourceTable::BgpAsServiceBackUpResourceTable ( ResourceBackupManager manager)

Definition at line 558 of file sandesh_map.cc.

BgpAsServiceBackUpResourceTable::~BgpAsServiceBackUpResourceTable ( )
virtual

Definition at line 563 of file sandesh_map.cc.

Member Function Documentation

Map& BgpAsServiceBackUpResourceTable::map ( )
inline

Definition at line 191 of file sandesh_map.h.

void BgpAsServiceBackUpResourceTable::ReadFromFile ( )
virtual

Implements BackUpResourceTable.

Definition at line 572 of file sandesh_map.cc.

Here is the call graph for this function:

void BgpAsServiceBackUpResourceTable::RestoreResource ( )
virtual

Implements BackUpResourceTable.

Definition at line 579 of file sandesh_map.cc.

Here is the call graph for this function:

bool BgpAsServiceBackUpResourceTable::WriteToFile ( )
virtual

Implements BackUpResourceTable.

Definition at line 566 of file sandesh_map.cc.

Member Data Documentation

Map BgpAsServiceBackUpResourceTable::map_
private

Definition at line 193 of file sandesh_map.h.


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