@InterfaceAudience.Private public class WindowsResourceCalculatorPlugin extends ResourceCalculatorPlugin
processPid
Constructor and Description |
---|
WindowsResourceCalculatorPlugin() |
Modifier and Type | Method and Description |
---|---|
long |
getAvailablePhysicalMemorySize()
Obtain the total size of the available physical memory present
in the system.
|
long |
getAvailableVirtualMemorySize()
Obtain the total size of the available virtual memory present
in the system.
|
long |
getCpuFrequency()
Obtain the CPU frequency of on the system.
|
float |
getCpuUsage()
Obtain the CPU usage % of the machine.
|
long |
getCumulativeCpuTime()
Obtain the cumulative CPU time since the system is on.
|
int |
getNumProcessors()
Obtain the total number of processors present on the system.
|
long |
getPhysicalMemorySize()
Obtain the total size of the physical memory present in the system.
|
long |
getVirtualMemorySize()
Obtain the total size of the virtual memory present in the system.
|
getResourceCalculatorPlugin, setProcessPid
getConf, setConf
public long getVirtualMemorySize()
getVirtualMemorySize
in class ResourceCalculatorPlugin
public long getPhysicalMemorySize()
getPhysicalMemorySize
in class ResourceCalculatorPlugin
public long getAvailableVirtualMemorySize()
getAvailableVirtualMemorySize
in class ResourceCalculatorPlugin
public long getAvailablePhysicalMemorySize()
getAvailablePhysicalMemorySize
in class ResourceCalculatorPlugin
public int getNumProcessors()
getNumProcessors
in class ResourceCalculatorPlugin
public long getCpuFrequency()
getCpuFrequency
in class ResourceCalculatorPlugin
public long getCumulativeCpuTime()
getCumulativeCpuTime
in class ResourceCalculatorPlugin
public float getCpuUsage()
getCpuUsage
in class ResourceCalculatorPlugin
Copyright © 2013 Apache Software Foundation. All rights reserved.