public class HardwareDescriptionFactory extends Object
HardwareDescription objects. In particular,
the factory can automatically generate a HardwareDescription object
from the system it is executed on.
This class is thread-safe.
| Modifier and Type | Method and Description |
|---|---|
static HardwareDescription |
construct(int numberOfCPUCores,
long sizeOfPhysicalMemory,
long sizeOfFreeMemory)
Constructs a new hardware description object.
|
static HardwareDescription |
extractFromSystem()
Extracts a hardware description object from the system.
|
public static HardwareDescription extractFromSystem()
null if at least
one value for the hardware description cannot be determinedpublic static HardwareDescription construct(int numberOfCPUCores, long sizeOfPhysicalMemory, long sizeOfFreeMemory)
numberOfCPUCores - the number of CPU cores available to the JVM on the compute
nodesizeOfPhysicalMemory - the size of physical memory in bytes available on the compute
nodesizeOfFreeMemory - the size of free memory in bytes available to the JVM on the
compute nodeCopyright © 2014 The Apache Software Foundation. All rights reserved.