|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.tools.rumen.ResourceUsageMetrics
public class ResourceUsageMetrics
Captures the resource usage metrics.
| Constructor Summary | |
|---|---|
ResourceUsageMetrics()
|
|
| Method Summary | |
|---|---|
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(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(DataOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceUsageMetrics()
| Method Detail |
|---|
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(DataInput in)
throws IOException
readFields in interface org.apache.hadoop.io.WritableIOException
public void write(DataOutput out)
throws IOException
write in interface org.apache.hadoop.io.WritableIOException
public 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.
DeepInequalityException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||