public final class HardwareDescription extends Object implements Serializable
| 限定符和类型 | 字段和说明 |
|---|---|
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 |
| 构造器和说明 |
|---|
HardwareDescription(int numberOfCPUCores,
long sizeOfPhysicalMemory,
long sizeOfJvmHeap,
long sizeOfManagedMemory)
Constructs a new hardware description object.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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_SIZE_PHYSICAL_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–2022 The Apache Software Foundation. All rights reserved.