public final class HardwareDescription extends Object implements IOReadableWritable
InstanceType the hardware description is determined by the compute node itself and not
loaded from a predefined configuration profile. In particular, the hardware description includes the size of free
memory which is actually available to the JVM and can be used to allocate large memory portions.
This class is thread-safe.
| Constructor and Description |
|---|
HardwareDescription()
Public default constructor used for serialization process.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getNumberOfCPUCores()
Returns the number of CPU cores available to the JVM on the compute node.
|
long |
getSizeOfFreeMemory()
Returns the size of free memory in bytes available to the JVM on the compute node.
|
long |
getSizeOfPhysicalMemory()
Returns the size of physical memory in bytes available on the compute node.
|
void |
read(DataInputView in) |
void |
write(DataOutputView out) |
public HardwareDescription()
public void write(DataOutputView out) throws IOException
write in interface IOReadableWritableIOExceptionpublic void read(DataInputView in) throws IOException
read in interface IOReadableWritableIOExceptionpublic int getNumberOfCPUCores()
public long getSizeOfPhysicalMemory()
public long getSizeOfFreeMemory()
Copyright © 2014 The Apache Software Foundation. All rights reserved.