
public class Ps extends SigarCommandBase implements Closable
| Constructor and Description |
|---|
Ps() |
Ps(org.hyperic.sigar.cmd.Shell shell) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Perform some clean up rutine
|
long |
CurrentThreadCount() |
protected void |
finalize() |
int |
GetCPUCores() |
static String |
getCpuTime(long total) |
static String |
getCpuTime(org.hyperic.sigar.ProcTime time) |
double |
GetCurrentCPUUsage() |
static List |
getInfo(org.hyperic.sigar.SigarProxy sigar,
long pid) |
long |
GetSystemBootTimeInMS() |
boolean |
isPidCompleter() |
List<String> |
runningProcesses() |
complete, completePid, flush, getCompleter, getCompletions, getFormatter, printf, printf, printf, println, setOutputFormat, sprintf, validateArgspublic boolean isPidCompleter()
isPidCompleter in class SigarCommandBasepublic static List getInfo(org.hyperic.sigar.SigarProxy sigar, long pid) throws org.hyperic.sigar.SigarException
org.hyperic.sigar.SigarExceptionpublic List<String> runningProcesses() throws org.hyperic.sigar.SigarException
org.hyperic.sigar.SigarExceptionpublic static String getCpuTime(long total)
public static String getCpuTime(org.hyperic.sigar.ProcTime time)
public long GetSystemBootTimeInMS()
public double GetCurrentCPUUsage()
throws org.hyperic.sigar.SigarException
org.hyperic.sigar.SigarExceptionpublic long CurrentThreadCount()
throws org.hyperic.sigar.SigarException
org.hyperic.sigar.SigarExceptionpublic int GetCPUCores()
public void close()
throws Exception
ClosableCopyright © 2008–2017 MIL-OSS. All rights reserved.