|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object frysk.sys.proc.Status
public class Status
Partial wrapper for /proc/$$/status. This class supplements frysk.sys.proc.Stat as that class does not contain GID and UID. This class extracts that information from either /proc/$$/status or from a buffer that has been been passed to it for parsing.
Field Summary | |
---|---|
int |
gid
Return the GID from the /proc/$$/status file according to the PID passed. |
ProcessIdentifier |
pid
|
char |
state
The state from /proc/$$/status file. |
boolean |
stoppedState
True if the PID is in a stopped state. |
int |
uid
The UID from the /proc/$$/status file. |
Constructor Summary | |
---|---|
Status()
|
Method Summary | |
---|---|
Status |
rescan()
Re-scan /proc/$$/status using the previous pid. |
Status |
scan(ProcessIdentifier pid)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public ProcessIdentifier pid
public int uid
public int gid
public char state
public boolean stoppedState
Constructor Detail |
---|
public Status()
Method Detail |
---|
public String toString()
toString
in class Object
public Status scan(ProcessIdentifier pid)
public Status rescan()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |