public final class HardwareDescription extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
FIELD_NAME_CPU_CORES |
static String |
FIELD_NAME_SIZE_JVM_HEAP |
static String |
FIELD_NAME_SIZE_MANAGED_MEMORY |
static String |
FIELD_NAME_SIZE_PHYSICAL_MEMORY |
Constructor and Description |
---|
HardwareDescription(int numberOfCPUCores,
long sizeOfPhysicalMemory,
long sizeOfJvmHeap,
long sizeOfManagedMemory)
Constructs a new hardware description object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
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.
|
int |
hashCode() |
String |
toString() |
public static final String FIELD_NAME_CPU_CORES
public static final String FIELD_NAME_SIZE_PHYSICAL_MEMORY
public static final String FIELD_NAME_SIZE_JVM_HEAP
public static final String FIELD_NAME_SIZE_MANAGED_MEMORY
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–2020 The Apache Software Foundation. All rights reserved.