AWS SDK for C++  1.9.129
AWS SDK for C++
Public Member Functions | List of all members
Aws::GreengrassV2::Model::SystemResourceLimits Class Reference

#include <SystemResourceLimits.h>

Public Member Functions

 SystemResourceLimits ()
 
 SystemResourceLimits (Aws::Utils::Json::JsonView jsonValue)
 
SystemResourceLimitsoperator= (Aws::Utils::Json::JsonView jsonValue)
 
Aws::Utils::Json::JsonValue Jsonize () const
 
long long GetMemory () const
 
bool MemoryHasBeenSet () const
 
void SetMemory (long long value)
 
SystemResourceLimitsWithMemory (long long value)
 
double GetCpus () const
 
bool CpusHasBeenSet () const
 
void SetCpus (double value)
 
SystemResourceLimitsWithCpus (double value)
 

Detailed Description

Contains information about system resource limits that the IoT Greengrass Core software applies to a component's processes. For more information, see Configure system resource limits for components.

See Also:

AWS API Reference

Definition at line 32 of file SystemResourceLimits.h.

Constructor & Destructor Documentation

◆ SystemResourceLimits() [1/2]

Aws::GreengrassV2::Model::SystemResourceLimits::SystemResourceLimits ( )

◆ SystemResourceLimits() [2/2]

Aws::GreengrassV2::Model::SystemResourceLimits::SystemResourceLimits ( Aws::Utils::Json::JsonView  jsonValue)

Member Function Documentation

◆ CpusHasBeenSet()

bool Aws::GreengrassV2::Model::SystemResourceLimits::CpusHasBeenSet ( ) const
inline

The maximum amount of CPU time that a component's processes can use on the core device. A core device's total CPU time is equivalent to the device's number of CPU cores. For example, on a core device with 4 CPU cores, you can set this value to 2 to limit the component's processes to 50 percent usage of each CPU core. On a device with 1 CPU core, you can set this value to 0.25 to limit the component's processes to 25 percent usage of the CPU. If you set this value to a number greater than the number of CPU cores, the IoT Greengrass Core software doesn't limit the component's CPU usage.

Definition at line 88 of file SystemResourceLimits.h.

◆ GetCpus()

double Aws::GreengrassV2::Model::SystemResourceLimits::GetCpus ( ) const
inline

The maximum amount of CPU time that a component's processes can use on the core device. A core device's total CPU time is equivalent to the device's number of CPU cores. For example, on a core device with 4 CPU cores, you can set this value to 2 to limit the component's processes to 50 percent usage of each CPU core. On a device with 1 CPU core, you can set this value to 0.25 to limit the component's processes to 25 percent usage of the CPU. If you set this value to a number greater than the number of CPU cores, the IoT Greengrass Core software doesn't limit the component's CPU usage.

Definition at line 76 of file SystemResourceLimits.h.

◆ GetMemory()

long long Aws::GreengrassV2::Model::SystemResourceLimits::GetMemory ( ) const
inline

The maximum amount of RAM, expressed in kilobytes, that a component's processes can use on the core device.

Definition at line 45 of file SystemResourceLimits.h.

◆ Jsonize()

Aws::Utils::Json::JsonValue Aws::GreengrassV2::Model::SystemResourceLimits::Jsonize ( ) const

◆ MemoryHasBeenSet()

bool Aws::GreengrassV2::Model::SystemResourceLimits::MemoryHasBeenSet ( ) const
inline

The maximum amount of RAM, expressed in kilobytes, that a component's processes can use on the core device.

Definition at line 51 of file SystemResourceLimits.h.

◆ operator=()

SystemResourceLimits& Aws::GreengrassV2::Model::SystemResourceLimits::operator= ( Aws::Utils::Json::JsonView  jsonValue)

◆ SetCpus()

void Aws::GreengrassV2::Model::SystemResourceLimits::SetCpus ( double  value)
inline

The maximum amount of CPU time that a component's processes can use on the core device. A core device's total CPU time is equivalent to the device's number of CPU cores. For example, on a core device with 4 CPU cores, you can set this value to 2 to limit the component's processes to 50 percent usage of each CPU core. On a device with 1 CPU core, you can set this value to 0.25 to limit the component's processes to 25 percent usage of the CPU. If you set this value to a number greater than the number of CPU cores, the IoT Greengrass Core software doesn't limit the component's CPU usage.

Definition at line 100 of file SystemResourceLimits.h.

◆ SetMemory()

void Aws::GreengrassV2::Model::SystemResourceLimits::SetMemory ( long long  value)
inline

The maximum amount of RAM, expressed in kilobytes, that a component's processes can use on the core device.

Definition at line 57 of file SystemResourceLimits.h.

◆ WithCpus()

SystemResourceLimits& Aws::GreengrassV2::Model::SystemResourceLimits::WithCpus ( double  value)
inline

The maximum amount of CPU time that a component's processes can use on the core device. A core device's total CPU time is equivalent to the device's number of CPU cores. For example, on a core device with 4 CPU cores, you can set this value to 2 to limit the component's processes to 50 percent usage of each CPU core. On a device with 1 CPU core, you can set this value to 0.25 to limit the component's processes to 25 percent usage of the CPU. If you set this value to a number greater than the number of CPU cores, the IoT Greengrass Core software doesn't limit the component's CPU usage.

Definition at line 112 of file SystemResourceLimits.h.

◆ WithMemory()

SystemResourceLimits& Aws::GreengrassV2::Model::SystemResourceLimits::WithMemory ( long long  value)
inline

The maximum amount of RAM, expressed in kilobytes, that a component's processes can use on the core device.

Definition at line 63 of file SystemResourceLimits.h.


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