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

#include <sandesh_map.h>

Inheritance diagram for VlanMplsBackUpResourceTable:
Collaboration diagram for VlanMplsBackUpResourceTable:

Public Types

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

Public Member Functions

 VlanMplsBackUpResourceTable (ResourceBackupManager *manager)
 
virtual ~VlanMplsBackUpResourceTable ()
 
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 83 of file sandesh_map.h.

Member Typedef Documentation

typedef std::map<uint32_t, VlanMplsResource> VlanMplsBackUpResourceTable::Map

Definition at line 85 of file sandesh_map.h.

typedef Map::iterator VlanMplsBackUpResourceTable::MapIter

Definition at line 86 of file sandesh_map.h.

Constructor & Destructor Documentation

VlanMplsBackUpResourceTable::VlanMplsBackUpResourceTable ( ResourceBackupManager manager)

Definition at line 319 of file sandesh_map.cc.

VlanMplsBackUpResourceTable::~VlanMplsBackUpResourceTable ( )
virtual

Definition at line 324 of file sandesh_map.cc.

Member Function Documentation

Map& VlanMplsBackUpResourceTable::map ( )
inline

Definition at line 93 of file sandesh_map.h.

void VlanMplsBackUpResourceTable::ReadFromFile ( )
virtual

Implements BackUpResourceTable.

Definition at line 333 of file sandesh_map.cc.

Here is the call graph for this function:

void VlanMplsBackUpResourceTable::RestoreResource ( )
virtual

Implements BackUpResourceTable.

Definition at line 340 of file sandesh_map.cc.

Here is the call graph for this function:

bool VlanMplsBackUpResourceTable::WriteToFile ( )
virtual

Implements BackUpResourceTable.

Definition at line 327 of file sandesh_map.cc.

Member Data Documentation

Map VlanMplsBackUpResourceTable::map_
private

Definition at line 95 of file sandesh_map.h.


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