linuxUtil Class Reference

#include <RobotAPI/libraries/armem_system_state/server/LightweightSystemMonitor/linux_systemutil.hpp>

Static Public Member Functions

static uint64_t getFreeDiskSpace (std::string absoluteFilePath)
 
static std::string getIFaceMacAddress (std::string deviceName)
 
static uint32_t getNumOfThreadsByPID (int Pid)
 
static uint32_t getNumOfThreadsByThisProcess ()
 
static std::string getOSVersion_Signature (void)
 
static std::string getOsVersionString (void)
 
static int getProcIdByName (const std::string &procName)
 
static uint64_t getSysUpTime ()
 
static int64_t getTemperature (const std::string &thermalZone="thermal_zone0")
 
static bool isDeviceOnline (std::string address)
 
static int killProcessById (int pid, const std::string &procName)
 
static bool startAppAsDaemon ()
 
static uint64_t userAvailableFreeSpace ()
 

Detailed Description

Author
: Daniel Fuchs @contact: fuxey.nosp@m.solu.nosp@m.tions.nosp@m.@gma.nosp@m.il.co.nosp@m.m

distributed under the MIT License (MIT). Copyright (c) Daniel Fuchs

Definition at line 16 of file linux_systemutil.hpp.

Member Function Documentation

◆ getFreeDiskSpace()

uint64_t getFreeDiskSpace ( std::string  absoluteFilePath)
static

Definition at line 139 of file linux_systemutil.cpp.

◆ getIFaceMacAddress()

std::string getIFaceMacAddress ( std::string  deviceName)
static

Definition at line 254 of file linux_systemutil.cpp.

◆ getNumOfThreadsByPID()

uint32_t getNumOfThreadsByPID ( int  Pid)
static

Definition at line 243 of file linux_systemutil.cpp.

+ Here is the call graph for this function:

◆ getNumOfThreadsByThisProcess()

uint32_t getNumOfThreadsByThisProcess ( )
static

Definition at line 232 of file linux_systemutil.cpp.

◆ getOSVersion_Signature()

std::string getOSVersion_Signature ( void  )
static

Definition at line 179 of file linux_systemutil.cpp.

◆ getOsVersionString()

std::string getOsVersionString ( void  )
static

Definition at line 193 of file linux_systemutil.cpp.

◆ getProcIdByName()

int getProcIdByName ( const std::string &  procName)
static

Definition at line 41 of file linux_systemutil.cpp.

◆ getSysUpTime()

uint64_t getSysUpTime ( )
static

Definition at line 85 of file linux_systemutil.cpp.

◆ getTemperature()

int64_t getTemperature ( const std::string &  thermalZone = "thermal_zone0")
static
Author
: Daniel Fuchs @contact: fuxey.nosp@m.solu.nosp@m.tions.nosp@m.@gma.nosp@m.il.co.nosp@m.m

distributed under the MIT License (MIT). Copyright (c) Daniel Fuchs

Definition at line 26 of file linux_systemutil.cpp.

◆ isDeviceOnline()

bool isDeviceOnline ( std::string  address)
static

Definition at line 207 of file linux_systemutil.cpp.

◆ killProcessById()

int killProcessById ( int  pid,
const std::string &  procName 
)
static

Definition at line 73 of file linux_systemutil.cpp.

+ Here is the call graph for this function:

◆ startAppAsDaemon()

bool startAppAsDaemon ( )
static

Definition at line 104 of file linux_systemutil.cpp.

◆ userAvailableFreeSpace()

uint64_t userAvailableFreeSpace ( )
static

Definition at line 168 of file linux_systemutil.cpp.


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