com.jezhumble.javasysmon
Interface ProcessVisitor


public interface ProcessVisitor

Allows you to visit the process tree using JavaSysMon.visitProcessTree(int, com.jezhumble.javasysmon.ProcessVisitor)


Method Summary
 boolean visit(OsProcess process, int level)
          Called on every node.
 

Method Detail

visit

boolean visit(OsProcess process,
              int level)
Called on every node. The process tree is traversed depth-first

Parameters:
process - The current process being visited
level - How many levels beneath the initial node visited you are (0-indexed)
Returns:
Whether or not to kill the process being visited


Copyright © 2009 ThoughtWorks. All Rights Reserved.