@Deprecated public final class ApacheHttpdService extends Object implements WebServerService
Modifier and Type | Method and Description |
---|---|
boolean |
clearLogs()
Deprecated.
Clear apache logs and session files.
|
static GregorianCalendar |
getGregorianCalendar(String hostName)
Deprecated.
Obtains the gregorian calendar representing the current time.
|
static ApacheHttpdService |
getHandle()
Deprecated.
Get the reference to the singleton object.
|
void |
kill()
Deprecated.
Kill all ApacheHttpd 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 the log files.
|
public static ApacheHttpdService getHandle()
public void setup(String[] serverMachines, String binDir, String logsDir, String confDir, String pidDir)
setup
in interface WebServerService
serverMachines
- - array specifying the apache server machines.binDir
- - Apache binaries locationlogsDir
- - Apache logs locationconfDir
- - Apache httpd.conf file locationpidDir
- - Apache httpd.pid file locationpublic boolean startServers()
startServers
in interface WebServerService
public boolean restartServers()
restartServers
in interface WebServerService
public boolean stopServers()
stopServers
in interface WebServerService
public boolean clearLogs()
clearLogs
in interface WebServerService
public void xferLogs(int totalRunTime)
xferLogs
in interface WebServerService
totalRunTime
- - the time in seconds for this runpublic static GregorianCalendar getGregorianCalendar(String hostName) throws Exception
hostName
- The host name to get the calendar fromException
- Error obtaining calendarpublic void kill()
kill
in interface WebServerService