|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jezhumble.javasysmon.OsProcess
public class OsProcess
This object represents a node in the process tree. It knows information about the process it represents, and also what its children are.
Method Summary | |
---|---|
void |
accept(ProcessVisitor processVisitor,
int level)
Method to allow visiting the process tree. |
java.util.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static OsProcess createTree(ProcessInfo[] processTable)
processTable
- An array of objects representing the processes in the system.
public java.util.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 ProcessVisitor
level
- The level currently being visited
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |