@Deprecated public final class MysqlService extends Object
Modifier and Type | Method and Description |
---|---|
static GregorianCalendar |
getGregorianCalendar(String hostName)
Deprecated.
Obtains the gregorian calendar representing the current time.
|
static MysqlService |
getHandle()
Deprecated.
Get the reference to the singleton object.
|
void |
kill()
Deprecated.
Kill the MySQL server.
|
boolean |
restartServer()
Deprecated.
Restart the MySQL server.
|
void |
setup(String serverMachine,
String dbDir)
Deprecated.
The setup method is called to set up a benchmark run.
|
boolean |
startServer()
Deprecated.
Start the mysql server on the configured host.
|
boolean |
stopServer()
Deprecated.
Stop server.
|
void |
xferLogs(int totalRunTime)
Deprecated.
Transfer log files to the master.
|
public static MysqlService getHandle()
public void setup(String serverMachine, String dbDir)
serverMachine
- - the name of the mysql server machine.dbDir
- - MySQL installation directorypublic boolean startServer()
public boolean restartServer()
public boolean stopServer()
public void xferLogs(int totalRunTime)
totalRunTime
- - the time in seconds for this run
TODO: Modify code for mysql date/time formatpublic static GregorianCalendar getGregorianCalendar(String hostName) throws Exception
hostName
- The host name to get the calendar fromException
- Error obtaining calendarpublic void kill()