public class OsProcess extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ProcessVisitor processVisitor,
int level)
Method to allow visiting the process tree.
|
List |
children()
Gets the list of child processes of this object.
|
static OsProcess |
createTree(ProcessInfo[] processTable)
This method is the only way to create an OsProcess object.
|
OsProcess |
find(int pid)
Finds and returns a particular node in the process tree
by its id.
|
ProcessInfo |
processInfo()
Information about this process.
|
public static OsProcess createTree(ProcessInfo[] processTable)
processTable - An array of objects representing the processes in the system.public List children()
public ProcessInfo processInfo()
public OsProcess find(int pid)
pid - the id of the process to find.public void accept(ProcessVisitor processVisitor, int level)
JavaSysMon.visitProcessTree(int, com.jezhumble.javasysmon.ProcessVisitor)processVisitor - An instance of ProcessVisitorlevel - The level currently being visitedCopyright © 2009 ThoughtWorks. All Rights Reserved.