#include <misc_utils.h>
Definition at line 39 of file misc_utils.h.
◆ FileMMap
◆ BuildModule
Enumerator |
---|
Agent | |
Analytics | |
ControlNode | |
Dns | |
MaxModules | |
Definition at line 41 of file misc_utils.h.
◆ BaseName()
string MiscUtils::BaseName |
( |
std::string |
filename | ) |
|
|
staticprivate |
◆ GetBuildInfo()
bool MiscUtils::GetBuildInfo |
( |
BuildModule |
id, |
|
|
const std::string & |
build_info, |
|
|
std::string & |
result |
|
) |
| |
|
static |
◆ GetContrailVersionInfo()
bool MiscUtils::GetContrailVersionInfo |
( |
BuildModule |
id, |
|
|
std::string & |
rpm_version, |
|
|
std::string & |
build_num |
|
) |
| |
|
staticprivate |
◆ GetHostIp()
static void MiscUtils::GetHostIp |
( |
const std::string |
name, |
|
|
std::vector< std::string > & |
ip_list |
|
) |
| |
|
static |
◆ GetPlatformInfo()
bool MiscUtils::GetPlatformInfo |
( |
std::string & |
distro, |
|
|
std::string & |
code_name |
|
) |
| |
|
static |
◆ GetUpTimeSeconds()
time_t MiscUtils::GetUpTimeSeconds |
( |
| ) |
|
|
static |
◆ GetVersionInfoInternal()
bool MiscUtils::GetVersionInfoInternal |
( |
const std::string & |
cmd, |
|
|
std::string & |
rpm_version, |
|
|
std::string & |
build_num |
|
) |
| |
|
staticprivate |
◆ LogVersionInfo()
void MiscUtils::LogVersionInfo |
( |
const std::string |
str, |
|
|
Category::type |
categ |
|
) |
| |
|
static |
◆ MapInit()
static std::map<BuildModule, std::string> MiscUtils::MapInit |
( |
| ) |
|
|
inlinestatic |
◆ set_startup_time_secs()
time_t MiscUtils::set_startup_time_secs |
( |
| ) |
|
|
static |
◆ BuildModuleNames
Initial value:=
static std::map< BuildModule, std::string > MapInit()
Definition at line 56 of file misc_utils.h.
◆ ContrailVersionCmd
const std::string MiscUtils::ContrailVersionCmd = "/opt/contrail/utils/contrail-version" |
|
static |
◆ CoreFileDir
const std::string MiscUtils::CoreFileDir |
|
static |
◆ MaxCoreFiles
const int MiscUtils::MaxCoreFiles |
|
static |
◆ startup_time_secs_
The documentation for this class was generated from the following files: