|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.faban.harness.engine.LighttpdService
@Deprecated public final class LighttpdService
This class implements the service to start/stop lighttpd instances. It also provides functionality to transfer the portion of the lighttpd error.log for a run to the run output directory. It can be used by any lighttpd benchmark to manage lighttpd servers and perform these operations remotely using this Service.
| Method Summary | |
|---|---|
boolean |
clearLogs()
Deprecated. Clear server logs and session files. |
static GregorianCalendar |
getGregorianCalendar(String hostName)
Deprecated. Obtains the gregorian calendar representing the current time. |
static LighttpdService |
getHandle()
Deprecated. Get the reference to the singleton object. |
void |
kill()
Deprecated. Kill all servers. |
boolean |
restartServers()
Deprecated. Restart all servers. |
void |
setup(String[] serverMachines,
String binDir,
String logsDir,
String confDir,
String pidDir)
Deprecated. The setup method is called to set up a benchmark run. |
boolean |
startServers()
Deprecated. Start all apache servers on configured hosts. |
boolean |
stopServers()
Deprecated. Stop Servers. |
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 LighttpdService getHandle()
public void setup(String[] serverMachines,
String binDir,
String logsDir,
String confDir,
String pidDir)
setup in interface WebServerServiceserverMachines - - array specifying the web server machines.binDir - - lighttpd binary locationlogsDir - - lighttpd logs locationconfDir - - lighttpd conf file locationpidDir - - lighttpd.pid file locationpublic boolean startServers()
startServers in interface WebServerServicepublic boolean restartServers()
restartServers in interface WebServerServicepublic boolean stopServers()
stopServers in interface WebServerServicepublic boolean clearLogs()
clearLogs in interface WebServerServicepublic void xferLogs(int totalRunTime)
xferLogs in interface WebServerServicetotalRunTime - - the time in seconds for this run
public static GregorianCalendar getGregorianCalendar(String hostName)
throws Exception
hostName - The host name to get the calendar from
Exception - Error obtaining calendarpublic void kill()
kill in interface WebServerService
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||