public final class HardwareDescription extends Object implements IOReadableWritable, 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.
|
void |
read(DataInputView in) |
String |
toString() |
void |
write(DataOutputView out) |
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 void write(DataOutputView out) throws IOException
write in interface IOReadableWritableIOExceptionpublic void read(DataInputView in) throws IOException
read in interface IOReadableWritableIOExceptionpublic static HardwareDescription extractFromSystem(long managedMemory)
Copyright © 2015 The Apache Software Foundation. All rights reserved.