com.sun.faban.harness.tools
Class Collector

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

public class Collector
extends CommandLineTool

Collector is a wrapper for the Collector. This will send the Config.PROFILE_SIGNAL to the processes started though collector.
Note: This class is Solaris-specific. It may work on Linux or other unix systems collector is supported. It should compile on all systems but cause a warning/exception at runtime when trying to invoke if collector is not available.

Author:
Ramesh Ramachandran
See Also:
GenericTool, Tool

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

Constructor Detail

Collector

public Collector()
Method Detail

configure

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


start

public void start()
           throws IOException,
                  InterruptedException
This method is responsible for starting the collector.

Overrides:
start in class CommandLineTool
Throws:
IOException - Error starting the collector
InterruptedException - Interrupted waiting for commands

stop

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

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