@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SystemResourceLimits extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
SystemResourceLimits() |
Modifier and Type | Method and Description |
---|---|
SystemResourceLimits |
clone() |
boolean |
equals(Object obj) |
Double |
getCpus()
The maximum amount of CPU time that a component's processes can use on the core device.
|
Long |
getMemory()
The maximum amount of RAM, expressed in kilobytes, that a component's processes can use on the core device.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCpus(Double cpus)
The maximum amount of CPU time that a component's processes can use on the core device.
|
void |
setMemory(Long memory)
The maximum amount of RAM, expressed in kilobytes, that a component's processes can use on the core device.
|
String |
toString()
Returns a string representation of this object.
|
SystemResourceLimits |
withCpus(Double cpus)
The maximum amount of CPU time that a component's processes can use on the core device.
|
SystemResourceLimits |
withMemory(Long memory)
The maximum amount of RAM, expressed in kilobytes, that a component's processes can use on the core device.
|
public void setMemory(Long memory)
The maximum amount of RAM, expressed in kilobytes, that a component's processes can use on the core device.
memory
- The maximum amount of RAM, expressed in kilobytes, that a component's processes can use on the core
device.public Long getMemory()
The maximum amount of RAM, expressed in kilobytes, that a component's processes can use on the core device.
public SystemResourceLimits withMemory(Long memory)
The maximum amount of RAM, expressed in kilobytes, that a component's processes can use on the core device.
memory
- The maximum amount of RAM, expressed in kilobytes, that a component's processes can use on the core
device.public void setCpus(Double cpus)
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.
cpus
- 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.public Double getCpus()
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.
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.public SystemResourceLimits withCpus(Double cpus)
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.
cpus
- 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.public String toString()
toString
in class Object
Object.toString()
public SystemResourceLimits clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.