frysk.sys.proc
Class Status

java.lang.Object
  extended by frysk.sys.proc.Status

public class Status
extends Object

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

pid

public ProcessIdentifier pid

uid

public int uid
The UID from the /proc/$$/status file.


gid

public int gid
Return the GID from the /proc/$$/status file according to the PID passed.


state

public char state
The state from /proc/$$/status file.


stoppedState

public boolean stoppedState
True if the PID is in a stopped state.

Constructor Detail

Status

public Status()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

scan

public Status scan(ProcessIdentifier pid)

rescan

public Status rescan()
Re-scan /proc/$$/status using the previous pid.