Class ProcessorsInfo
- java.lang.Object
-
- org.apache.bookkeeper.common.util.affinity.impl.ProcessorsInfo
-
class ProcessorsInfo extends java.lang.Object
Discover the list of processors from /proc/cpuinfo.
-
-
Constructor Summary
Constructors Constructor Description ProcessorsInfo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.lang.Integer>
getCpusOnSameCore(int targetCpu)
Given one cpu id, return all CPUs that are sharing the same core.(package private) static ProcessorsInfo
parseCpuInfo()
(package private) static ProcessorsInfo
parseCpuInfo(java.lang.String cpuInfoString)
-
-
-
Method Detail
-
getCpusOnSameCore
public java.util.Set<java.lang.Integer> getCpusOnSameCore(int targetCpu)
Given one cpu id, return all CPUs that are sharing the same core.
-
parseCpuInfo
static ProcessorsInfo parseCpuInfo(java.lang.String cpuInfoString)
-
parseCpuInfo
static ProcessorsInfo parseCpuInfo()
-
-