@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, getResourceCalculatorProcessTreepublic WindowsBasedProcessTree(String pid)
public static boolean isAvailable()
public void updateProcessTree()
ResourceCalculatorProcessTreeupdateProcessTree in class ResourceCalculatorProcessTreepublic boolean checkPidPgrpidForMatch()
ResourceCalculatorProcessTreecheckPidPgrpidForMatch in class ResourceCalculatorProcessTreepublic String getProcessTreeDump()
ResourceCalculatorProcessTreegetProcessTreeDump in class ResourceCalculatorProcessTreepublic long getCumulativeVmem(int olderThanAge)
ResourceCalculatorProcessTreegetCumulativeVmem in class ResourceCalculatorProcessTreeolderThanAge - processes above this age are included in the
memory additionpublic long getCumulativeRssmem(int olderThanAge)
ResourceCalculatorProcessTreegetCumulativeRssmem in class ResourceCalculatorProcessTreeolderThanAge - processes above this age are included in the
memory additionpublic long getCumulativeCpuTime()
ResourceCalculatorProcessTreegetCumulativeCpuTime in class ResourceCalculatorProcessTreeCopyright © 2014 Apache Software Foundation. All Rights Reserved.