|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.faban.harness.tools.Mysqlstats
@Deprecated public class Mysqlstats
MysqlStats is a class for mysql stats collection.
It simply collects "show global status" at the start and end of a
run and diffs them.
The tool needs to be specified as follows:
mysqlstats
GenericTool
Field Summary | |
---|---|
protected Timer |
timer
Deprecated. The timer to be used by this tool. |
Constructor Summary | |
---|---|
Mysqlstats()
Deprecated. Constructs the Mysqlstats. |
Method Summary | |
---|---|
void |
configure(String tool,
List<String> argList,
String path,
String outDir,
String host,
String masterhost,
CmdAgentImpl cmdAgent,
CountDownLatch latch)
Deprecated. Configures Mysqlstats. |
protected void |
finish()
Deprecated. Finishes up mysqlstats. |
protected String |
getLogFile()
Deprecated. Obtains the temporary log file name. |
protected String |
getOutputFile(String outDir,
String host)
Deprecated. Obtains the final output file name. |
protected void |
getReport(String log1,
String log2,
String outFile)
Deprecated. Get final report by diffing the two logfiles. |
void |
kill()
Deprecated. This method is required by the Tool API. |
protected void |
start()
Deprecated. Starts the mysqlstat tool. |
boolean |
start(int delay)
Deprecated. This method is responsible for starting up the tool utility. |
boolean |
start(int delay,
int duration)
Deprecated. This method is responsible for starting up the tool and stopping it after the duration specified. |
void |
stop()
Deprecated. This method is responsible for stopping the tool. |
protected void |
stop(boolean warn)
Deprecated. This method is responsible for stopping the tool utility. |
protected void |
xferLog()
Deprecated. Transfers the log files to the output file in the results directory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Timer timer
Constructor Detail |
---|
public Mysqlstats()
Method Detail |
---|
public void configure(String tool, List<String> argList, String path, String outDir, String host, String masterhost, CmdAgentImpl cmdAgent, CountDownLatch latch)
configure
in interface Tool
tool
- name of the tool (Executable)argList
- list containing arguments to toolpath
- The path to run mysqlstatsoutDir
- The output directoryhost
- name of machine the tool is running onmasterhost
- name of master machinecmdAgent
- agent The command agent used for executing toolslatch
- The latch the tool uses to identify it's completion.protected String getLogFile()
protected String getOutputFile(String outDir, String host)
outDir
- The output or run directoryhost
- The host name running the tool
public void kill()
kill
in interface Tool
public boolean start(int delay, int duration)
start
in interface Tool
delay
- int delay (sec) after which start should be calledduration
- int duration for which the tool needs to be run
public boolean start(int delay)
start
in interface Tool
delay
- int delay (sec) after which start should be called
protected void start()
public void stop()
stop
in interface Tool
protected void stop(boolean warn)
warn
- Whether to warn if tool is not running.protected void getReport(String log1, String log2, String outFile)
log1
- The first logfilelog2
- The second logfileoutFile
- The output fileprotected void xferLog()
protected void finish()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |