|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.conf.Configured
org.apache.hadoop.yarn.util.ResourceCalculatorProcessTree
@InterfaceAudience.Private public abstract class ResourceCalculatorProcessTree
Interface class to obtain process resource usage
| Constructor Summary | |
|---|---|
ResourceCalculatorProcessTree(String root)
Create process-tree instance with specified root process. |
|
| Method Summary | |
|---|---|
abstract boolean |
checkPidPgrpidForMatch()
Verify that the tree process id is same as its process group id. |
abstract long |
getCumulativeCpuTime()
Get the CPU time in millisecond used by all the processes in the process-tree since the process-tree created |
long |
getCumulativeRssmem()
Get the cumulative resident set size (rss) memory used by all the processes in the process-tree. |
abstract long |
getCumulativeRssmem(int olderThanAge)
Get the cumulative resident set size (rss) memory used by all the processes in the process-tree that are older than the passed in age. |
long |
getCumulativeVmem()
Get the cumulative virtual memory used by all the processes in the process-tree. |
abstract long |
getCumulativeVmem(int olderThanAge)
Get the cumulative virtual memory used by all the processes in the process-tree that are older than the passed in age. |
abstract String |
getProcessTreeDump()
Get a dump of the process-tree. |
static ResourceCalculatorProcessTree |
getResourceCalculatorProcessTree(String pid,
Class<? extends ResourceCalculatorProcessTree> clazz,
org.apache.hadoop.conf.Configuration conf)
Create the ResourceCalculatorProcessTree rooted to specified process from the class name and configure it. |
abstract void |
updateProcessTree()
Update the process-tree with latest state. |
| Methods inherited from class org.apache.hadoop.conf.Configured |
|---|
getConf, setConf |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceCalculatorProcessTree(String root)
root - process-tree root-process| Method Detail |
|---|
public abstract void updateProcessTree()
public abstract String getProcessTreeDump()
public long getCumulativeVmem()
public long getCumulativeRssmem()
public abstract long getCumulativeVmem(int olderThanAge)
olderThanAge - processes above this age are included in the
memory addition
public abstract long getCumulativeRssmem(int olderThanAge)
olderThanAge - processes above this age are included in the
memory addition
public abstract long getCumulativeCpuTime()
public abstract boolean checkPidPgrpidForMatch()
public static ResourceCalculatorProcessTree getResourceCalculatorProcessTree(String pid,
Class<? extends ResourceCalculatorProcessTree> clazz,
org.apache.hadoop.conf.Configuration conf)
pid - process pid of the root of the process treeclazz - class-nameconf - configure the plugin with this.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||