#include <System.h>
|
static void | _init (const String &install_directory) |
| Internal initialization helper. More...
|
|
Definition at line 60 of file System.h.
void System::_init |
( |
const String & |
install_directory | ) |
|
|
staticprivate |
Internal initialization helper.
Definition at line 73 of file System.cc.
String System::_locate_install_dir |
( |
const char * |
argv0 | ) |
|
|
static |
Returns the installation directory; same as locate_install_dir but does not lock ms_mutex.
- Parameters
-
argv0 | argv[0] of the main method |
- Returns
- The (presumed) installation directory
Definition at line 55 of file System.cc.
const CpuInfo & Hypertable::System::cpu_info |
( |
| ) |
|
|
static |
const CpuStat & Hypertable::System::cpu_stat |
( |
| ) |
|
|
static |
const DiskStat & Hypertable::System::disk_stat |
( |
| ) |
|
|
static |
const FsStat & Hypertable::System::fs_stat |
( |
| ) |
|
|
static |
int32_t System::get_drive_count |
( |
| ) |
|
|
static |
Returns the number of drives.
Definition at line 111 of file System.cc.
int32_t System::get_pid |
( |
| ) |
|
|
static |
The pid of the current process.
Definition at line 132 of file System.cc.
int32_t System::get_processor_count |
( |
| ) |
|
|
static |
The processor count.
Definition at line 103 of file System.cc.
static void Hypertable::System::initialize |
( |
const String & |
install_directory = String() | ) |
|
|
inlinestatic |
Initializes the static class members; checks header version vs.
library version, initializes Logging and other stuff.
Must be inlined to do proper version check
- Parameters
-
install_directory | Path of the installation directory. If empty then will try to find the installation directory by using argv[0] in combination with some heuristics |
Definition at line 72 of file System.h.
void System::initialize_tm |
( |
struct tm * |
tmval | ) |
|
|
static |
Initialize struct tm.
Definition at line 94 of file System.cc.
const LoadAvgStat & Hypertable::System::loadavg_stat |
( |
| ) |
|
|
static |
String System::locate_install_dir |
( |
const char * |
argv0 | ) |
|
|
static |
Returns the installation directory.
- Parameters
-
argv0 | argv[0] of the main method |
- Returns
- The (presumed) installation directory
Definition at line 50 of file System.cc.
const MemStat & Hypertable::System::mem_stat |
( |
| ) |
|
|
static |
const NetInfo & Hypertable::System::net_info |
( |
| ) |
|
|
static |
const NetStat & Hypertable::System::net_stat |
( |
| ) |
|
|
static |
const OsInfo & Hypertable::System::os_info |
( |
| ) |
|
|
static |
const ProcInfo & Hypertable::System::proc_info |
( |
| ) |
|
|
static |
const ProcStat & Hypertable::System::proc_stat |
( |
| ) |
|
|
static |
const SwapStat & Hypertable::System::swap_stat |
( |
| ) |
|
|
static |
const TermInfo & Hypertable::System::term_info |
( |
| ) |
|
|
static |
Cluster definition.
Definition at line 117 of file System.h.
The exe file name.
Definition at line 120 of file System.h.
string System::install_dir |
|
static |
The installation directory.
Definition at line 114 of file System.h.
bool System::ms_initialized = false |
|
staticprivate |
true if initialize was already called
Definition at line 184 of file System.h.
a Mutex to protect the static members
Definition at line 187 of file System.h.
Seconds east of UTC.
Definition at line 123 of file System.h.
Timezone abbreviation.
Definition at line 126 of file System.h.
The documentation for this class was generated from the following files:
- /home/doug/src/hypertable/src/cc/Common/System.h
- /home/doug/src/hypertable/src/cc/Common/System.cc
- /home/doug/src/hypertable/src/cc/Common/SystemInfo.cc