org.apache.hadoop.io.Writable, DeepComparepublic class ResourceUsageMetrics extends java.lang.Object implements org.apache.hadoop.io.Writable, DeepCompare
| Constructor | Description |
|---|---|
ResourceUsageMetrics() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
deepCompare(DeepCompare other,
TreePath loc) |
|
long |
getCumulativeCpuUsage() |
Get the cumulative CPU usage.
|
long |
getHeapUsage() |
Get the total heap usage.
|
long |
getPhysicalMemoryUsage() |
Get the physical memory usage.
|
long |
getVirtualMemoryUsage() |
Get the virtual memory usage.
|
void |
readFields(java.io.DataInput in) |
|
void |
setCumulativeCpuUsage(long usage) |
Set the cumulative CPU usage.
|
void |
setHeapUsage(long usage) |
Set the total heap usage.
|
void |
setPhysicalMemoryUsage(long usage) |
Set the physical memory usage.
|
void |
setVirtualMemoryUsage(long usage) |
Set the virtual memory usage.
|
int |
size() |
Returns the size of the serialized data
|
void |
write(java.io.DataOutput out) |
public long getCumulativeCpuUsage()
public void setCumulativeCpuUsage(long usage)
public long getVirtualMemoryUsage()
public void setVirtualMemoryUsage(long usage)
public long getPhysicalMemoryUsage()
public void setPhysicalMemoryUsage(long usage)
public long getHeapUsage()
public void setHeapUsage(long usage)
public int size()
public void readFields(java.io.DataInput in)
throws java.io.IOException
readFields in interface org.apache.hadoop.io.Writablejava.io.IOExceptionpublic void write(java.io.DataOutput out)
throws java.io.IOException
write in interface org.apache.hadoop.io.Writablejava.io.IOExceptionpublic void deepCompare(DeepCompare other, TreePath loc) throws DeepInequalityException
deepCompare in interface DeepCompareother - the other comparand that's being compared to meloc - the path that got to me. In the root, myLocation is null. To
process the scalar foo field of the root we will make a
recursive call with a TreePath whose fieldName is
"bar" and whose index is -1 and whose
parent is null. To process the plural bar field
of the root we will make a recursive call with a TreePath
whose fieldName is "foo" and whose index is -1 and
whose parent is also null.DeepInequalityExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.