@Deprecated public class Mysqlstats extends Object implements Tool
GenericTool
Modifier and Type | Field and Description |
---|---|
protected Timer |
timer
Deprecated.
The timer to be used by this tool.
|
Constructor and Description |
---|
Mysqlstats()
Deprecated.
Constructs the Mysqlstats.
|
Modifier and Type | Method and Description |
---|---|
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.
|
protected Timer timer
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 toolpublic void kill()
public boolean start(int delay, int duration)
public boolean start(int delay)
protected void start()
public void stop()
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()