|
lintel 0.2.0
|
#include <ProcessInfo.h>
Public Member Functions | |
| ProcessInfo (std::shared_ptr< Process > process, lintel::ProcessId id, bool isRunning, int exitCode, std::string groupName, std::string groupId, bool exitCodeValid=true, const std::optional< ProcessResourceData > &resourceData=std::nullopt) | |
| const std::shared_ptr< Process > & | getProcess () const |
| lintel::ProcessId | getProcessId () const |
| constexpr bool | isRunning () const |
| constexpr int | getExitCode () const |
| constexpr bool | isExitCodeValid () const |
| std::string | getGroupName () const |
| std::string | getGroupId () const |
| const std::optional< ProcessResourceData > & | getResourceData () const |
Runtime information about a running process including its PID, status, group membership and (optional) resource usage.
| lintel::ProcessInfo::ProcessInfo | ( | std::shared_ptr< Process > | process, |
| lintel::ProcessId | id, | ||
| bool | isRunning, | ||
| int | exitCode, | ||
| std::string | groupName, | ||
| std::string | groupId, | ||
| bool | exitCodeValid = true, |
||
| const std::optional< ProcessResourceData > & | resourceData = std::nullopt |
||
| ) |
Constructor.
| process | the process definition |
| id | OS process ID |
| isRunning | whether the process is currently running |
| exitCode | process exit code |
| groupName | process group name |
| groupId | process group UUID |
| exitCodeValid | whether the exit code is meaningful (i.e. the child was waited on) |
| resourceData | optional resource snapshot |
| std::string lintel::ProcessInfo::getGroupId | ( | ) | const |
| std::string lintel::ProcessInfo::getGroupName | ( | ) | const |
| lintel::ProcessId lintel::ProcessInfo::getProcessId | ( | ) | const |
| const std::optional< ProcessResourceData > & lintel::ProcessInfo::getResourceData | ( | ) | const |