org.apache.hadoop.conf.Configurable@Private public class WindowsBasedProcessTree extends ResourceCalculatorProcessTree
UNAVAILABLE| Constructor | Description |
|---|---|
WindowsBasedProcessTree(java.lang.String pid) |
Create a monitor for a Windows process tree.
|
WindowsBasedProcessTree(java.lang.String pid,
Clock pClock) |
Create a monitor for a Windows process tree.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
checkPidPgrpidForMatch() |
Verify that the tree process id is same as its process group id.
|
float |
getCpuUsagePercent() |
Get the CPU usage by all the processes in the process-tree in Windows.
|
long |
getCumulativeCpuTime() |
Get the CPU time in millisecond used by all the processes in the
process-tree since the process-tree was created
|
java.lang.String |
getProcessTreeDump() |
Get a dump of the process-tree.
|
long |
getRssMemorySize(int olderThanAge) |
Get the resident set size (rss) memory used by all the processes
in the process-tree that are older than the passed in age.
|
long |
getVirtualMemorySize(int olderThanAge) |
Get the virtual memory used by all the processes in the
process-tree that are older than the passed in age.
|
static boolean |
isAvailable() |
|
void |
updateProcessTree() |
Update the process-tree with latest state.
|
getResourceCalculatorProcessTree, getRssMemorySize, getVirtualMemorySize, initializepublic WindowsBasedProcessTree(java.lang.String pid)
pid - Identifier of the job object.public WindowsBasedProcessTree(java.lang.String pid,
Clock pClock)
pid - Identifier of the job object.pClock - Clock to keep track of time for CPU utilization.public static boolean isAvailable()
public void updateProcessTree()
ResourceCalculatorProcessTreeupdateProcessTree in class ResourceCalculatorProcessTreepublic boolean checkPidPgrpidForMatch()
ResourceCalculatorProcessTreecheckPidPgrpidForMatch in class ResourceCalculatorProcessTreepublic java.lang.String getProcessTreeDump()
ResourceCalculatorProcessTreegetProcessTreeDump in class ResourceCalculatorProcessTreepublic long getVirtualMemorySize(int olderThanAge)
ResourceCalculatorProcessTreegetVirtualMemorySize in class ResourceCalculatorProcessTreeolderThanAge - processes above this age are included in the
memory additionResourceCalculatorProcessTree.UNAVAILABLE if it
cannot be calculated.public long getRssMemorySize(int olderThanAge)
ResourceCalculatorProcessTreegetRssMemorySize in class ResourceCalculatorProcessTreeolderThanAge - processes above this age are included in the
memory additionResourceCalculatorProcessTree.UNAVAILABLE if it cannot be
calculated.public long getCumulativeCpuTime()
ResourceCalculatorProcessTreegetCumulativeCpuTime in class ResourceCalculatorProcessTreeResourceCalculatorProcessTree.UNAVAILABLE if it cannot be calculated.public float getCpuUsagePercent()
getCpuUsagePercent in class ResourceCalculatorProcessTreeResourceCalculatorProcessTree.UNAVAILABLE if CPU usage cannot be calculated or not available.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.