Package software.amazon.awssdk.crt
Class SystemInfo
- java.lang.Object
-
- software.amazon.awssdk.crt.SystemInfo
-
public class SystemInfo extends Object
Utility class for querying system hardware properties
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SystemInfo.CpuInfo
-
Constructor Summary
Constructors Constructor Description SystemInfo()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static short
getCpuGroupCount()
static SystemInfo.CpuInfo[]
getCpuInfoForGroup(short groupIdx)
Get info on all active Cpus in a Cpu group.static int
getProcessorCount()
-
-
-
Method Detail
-
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
public static SystemInfo.CpuInfo[] getCpuInfoForGroup(short groupIdx)
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.
-
-