@InterfaceAudience.Private public abstract class ResourceCalculatorProcessTree extends Configured
Constructor and Description |
---|
ResourceCalculatorProcessTree(String root)
Create process-tree instance with specified root process.
|
Modifier and Type | Method and Description |
---|---|
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,
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.
|
getConf, setConf
public ResourceCalculatorProcessTree(String root)
root
- process-tree root-processpublic 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 additionpublic abstract long getCumulativeRssmem(int olderThanAge)
olderThanAge
- processes above this age are included in the
memory additionpublic abstract long getCumulativeCpuTime()
public abstract boolean checkPidPgrpidForMatch()
public static ResourceCalculatorProcessTree getResourceCalculatorProcessTree(String pid, Class<? extends ResourceCalculatorProcessTree> clazz, Configuration conf)
pid
- process pid of the root of the process treeclazz
- class-nameconf
- configure the plugin with this.Copyright © 2013 Apache Software Foundation. All rights reserved.