public final class HardwareDescription extends Object implements Serializable
Constructor and Description |
---|
HardwareDescription()
Public default constructor used for serialization process.
|
HardwareDescription(int numberOfCPUCores,
long sizeOfPhysicalMemory,
long sizeOfJvmHeap,
long sizeOfManagedMemory)
Constructs a new hardware description object.
|
Modifier and Type | Method and Description |
---|---|
static HardwareDescription |
extractFromSystem(long managedMemory) |
int |
getNumberOfCPUCores()
Returns the number of CPU cores available to the JVM on the compute node.
|
long |
getSizeOfJvmHeap()
Returns the size of the JVM heap memory
|
long |
getSizeOfManagedMemory()
Returns the size of the memory managed by the system for caching, hashing, sorting, ...
|
long |
getSizeOfPhysicalMemory()
Returns the size of physical memory in bytes available on the compute node.
|
String |
toString() |
public HardwareDescription()
public HardwareDescription(int numberOfCPUCores, long sizeOfPhysicalMemory, long sizeOfJvmHeap, long sizeOfManagedMemory)
numberOfCPUCores
- The number of CPU cores available to the JVM on the compute node.sizeOfPhysicalMemory
- The size of physical memory in bytes available on the compute node.sizeOfJvmHeap
- The size of the JVM heap memory.sizeOfManagedMemory
- The size of the memory managed by the system for caching, hashing, sorting, ...public int getNumberOfCPUCores()
public long getSizeOfPhysicalMemory()
public long getSizeOfJvmHeap()
public long getSizeOfManagedMemory()
public static HardwareDescription extractFromSystem(long managedMemory)
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.