@InterfaceAudience.Private public class WindowsBasedProcessTree extends ResourceCalculatorProcessTree
Constructor and Description |
---|
WindowsBasedProcessTree(String pid) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkPidPgrpidForMatch()
Verify that the tree process id is same as its process group id.
|
long |
getCumulativeCpuTime()
Get the CPU time in millisecond used by all the processes in the
process-tree since the process-tree created
|
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(int olderThanAge)
Get the cumulative virtual memory used by all the processes in the
process-tree that are older than the passed in age.
|
String |
getProcessTreeDump()
Get a dump of the process-tree.
|
static boolean |
isAvailable() |
void |
updateProcessTree()
Update the process-tree with latest state.
|
getCumulativeRssmem, getCumulativeVmem, getResourceCalculatorProcessTree
getConf, setConf
public WindowsBasedProcessTree(String pid)
public static boolean isAvailable()
public void updateProcessTree()
ResourceCalculatorProcessTree
updateProcessTree
in class ResourceCalculatorProcessTree
public boolean checkPidPgrpidForMatch()
ResourceCalculatorProcessTree
checkPidPgrpidForMatch
in class ResourceCalculatorProcessTree
public String getProcessTreeDump()
ResourceCalculatorProcessTree
getProcessTreeDump
in class ResourceCalculatorProcessTree
public long getCumulativeVmem(int olderThanAge)
ResourceCalculatorProcessTree
getCumulativeVmem
in class ResourceCalculatorProcessTree
olderThanAge
- processes above this age are included in the
memory additionpublic long getCumulativeRssmem(int olderThanAge)
ResourceCalculatorProcessTree
getCumulativeRssmem
in class ResourceCalculatorProcessTree
olderThanAge
- processes above this age are included in the
memory additionpublic long getCumulativeCpuTime()
ResourceCalculatorProcessTree
getCumulativeCpuTime
in class ResourceCalculatorProcessTree
Copyright © 2013 Apache Software Foundation. All rights reserved.