public class ProcFsReader extends Object
| Constructor and Description |
|---|
ProcFsReader(Path procFsRoot) |
| Modifier and Type | Method and Description |
|---|---|
UUID |
getBootId()
Reads the boot ID from the boot_id path, which is just a UUID.
|
long |
getProcessorCount()
Reads the cpuinfo path (example in src/test/resources/cpuinfo) and
counts the number of processors.
|
public ProcFsReader(Path procFsRoot)
public UUID getBootId()
public long getProcessorCount()
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.