frysk.sys.proc
Class ProcBuilder

java.lang.Object
  extended by frysk.sys.proc.ProcBuilder
Direct Known Subclasses:
TestProcBuilder.FindPid

public abstract class ProcBuilder
extends Object

Scan the /proc, or /proc/pid/task directory for process/task IDs building each ID as it is encountered.


Field Summary
private static Log warning
           
 
Constructor Summary
ProcBuilder()
           
 
Method Summary
abstract  void build(ProcessIdentifier pid)
          Called for each process or task ID in the /proc, or /proc/PID/task directory.
 void construct()
          Iterate over the /proc directory notifying TaskBuilder of each "interesting" entry.
private  void construct(int pid, Log warning)
          Iterate over /proc/PID/ finding all entries.
 void construct(ProcessIdentifier pid)
          Iterate over the /procpid/task directory notifying ProcBuilder of each "interesting" entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

warning

private static final Log warning
Constructor Detail

ProcBuilder

public ProcBuilder()
Method Detail

construct

public final void construct(ProcessIdentifier pid)
Iterate over the /procpid/task directory notifying ProcBuilder of each "interesting" entry. Use "finally" to ensure that the directory is always closed.


construct

public final void construct()
Iterate over the /proc directory notifying TaskBuilder of each "interesting" entry.


build

public abstract void build(ProcessIdentifier pid)
Called for each process or task ID in the /proc, or /proc/PID/task directory.


construct

private void construct(int pid,
                       Log warning)
Iterate over /proc/PID/ finding all entries.