|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.faban.harness.engine.MysqlService
@Deprecated public final class MysqlService
This class implements the service to start/stop the Mysql server. It also provides functionality to transfer the portion of the mysql errlog (host.err) for a run to the run output directory. It can be used by any MySQL benchmark to manage a mysql server and perform these operations remotely using this Service. NOTE: It is assumed that the pid and err file are in $DBHOME/data.
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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 from
Exception
- Error obtaining calendarpublic void kill()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |