com.sun.faban.harness.tools
Class Cpustat

java.lang.Object
  extended by com.sun.faban.harness.tools.CommandLineTool
      extended by com.sun.faban.harness.tools.Cpustat

public class Cpustat
extends CommandLineTool

Cpustat starts the cpustat tool. Unlike GenericTool, cpustat needs some further postprocessing before the data is useful.

Author:
Akara Sucharitakul
See Also:
Tool

Field Summary
 
Fields inherited from class com.sun.faban.harness.tools.CommandLineTool
ctx
 
Constructor Summary
Cpustat()
           
 
Method Summary
 void configure()
          This method is responsible for configuring the tool utility.
 void postprocess()
          This method is responsible for postprocessing.
 void stop()
          This method is responsible for stopping the tool utility.
 
Methods inherited from class com.sun.faban.harness.tools.CommandLineTool
config, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Cpustat

public Cpustat()
Method Detail

configure

public void configure()
This method is responsible for configuring the tool utility.


stop

public void stop()
          throws IOException,
                 InterruptedException
This method is responsible for stopping the tool utility.

Overrides:
stop in class CommandLineTool
Throws:
IOException - Error stopping cpustat
InterruptedException - Interrupted waiting for commands

postprocess

public void postprocess()
                 throws IOException,
                        InterruptedException
This method is responsible for postprocessing.

Throws:
IOException - Error post-processing cpustat
InterruptedException - Interrupted waiting for commands