Package software.amazon.awssdk.crt
Class SystemInfo
java.lang.Object
software.amazon.awssdk.crt.SystemInfo
Utility class for querying system hardware properties
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic shortstatic SystemInfo.CpuInfo[]getCpuInfoForGroup(short groupIdx) Get info on all active Cpus in a Cpu group.static int
-
Constructor Details
-
SystemInfo
public SystemInfo()
-
-
Method Details
-
getProcessorCount
public static int getProcessorCount()- Returns:
- active count of processors configured on this system.
-
getCpuGroupCount
public static short getCpuGroupCount()- Returns:
- number of active Cpu groupings on this system. This currently refers to NUMA nodes.
-
getCpuInfoForGroup
Get info on all active Cpus in a Cpu group.- Parameters:
groupIdx- group index to query.- Returns:
- Array of CpuInfo objects configured for this group. This value is never null even if groupIdx was invalid.
-