public class ProcState
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static char |
IDLE |
static char |
RUN |
static char |
SLEEP |
static char |
STOP |
static char |
ZOMBIE |
| Constructor and Description |
|---|
ProcState() |
| Modifier and Type | Method and Description |
|---|---|
void |
gather(Sigar sigar,
long pid) |
java.lang.String |
getName()
Get the Name of the process program.
|
int |
getNice()
Get the Nice value of process.
|
long |
getPpid()
Get the Process parent process id.
|
int |
getPriority()
Get the Kernel scheduling priority of process.
|
int |
getProcessor()
Get the Processor number last run on.
|
char |
getState()
Get the Process state (Running, Zombie, etc.).
|
long |
getThreads()
Get the Number of active threads.
|
int |
getTty()
Get the Device number of rocess controling terminal.
|
java.util.Map |
toMap() |
java.lang.String |
toString() |
public static final char SLEEP
public static final char RUN
public static final char STOP
public static final char ZOMBIE
public static final char IDLE
public void gather(Sigar sigar, long pid) throws SigarException
SigarExceptionpublic char getState()
Supported Platforms: All.
System equivalent commands:
top, pstop, pstop, pstop, pstop, pstop, pstaskmanpublic java.lang.String getName()
Supported Platforms: All.
System equivalent commands:
top, pstop, pstop, pstop, pstop, pstop, pstaskmanpublic long getPpid()
Supported Platforms: All.
System equivalent commands:
top, pstop, pstop, pstop, pstop, pstop, pstaskmanpublic int getTty()
Supported Platforms: AIX, HPUX, Linux, Solaris.
System equivalent commands:
top, pstop, pstop, pstop, pstop, pstop, pstaskmanpublic int getNice()
Supported Platforms: AIX, Darwin, FreeBSD, HPUX, Linux, Solaris.
System equivalent commands:
top, pstop, pstop, pstop, pstop, pstop, pstaskmanpublic int getPriority()
Supported Platforms: Darwin, FreeBSD, HPUX, Linux, Solaris, Win32.
System equivalent commands:
top, pstop, pstop, pstop, pstop, pstop, pstaskmanpublic long getThreads()
Supported Platforms: AIX, Darwin, HPUX, Linux, Solaris, Win32.
System equivalent commands:
top, pstop, pstop, pstop, pstop, pstop, pstaskmanpublic int getProcessor()
Supported Platforms: AIX, HPUX, Linux, Solaris.
System equivalent commands:
top, pstop, pstop, pstop, pstop, pstop, pstaskmanpublic java.util.Map toMap()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright ? 2004-2011 Hyperic. All Rights Reserved.