com.sun.faban.harness.engine
Interface WebServerService

All Known Implementing Classes:
ApacheHttpdService, GlassfishService, LighttpdService

Deprecated.

@Deprecated
public interface WebServerService

This is the interface implemented by all webserver services.

Author:
Shanti Subramanyam

Method Summary
 boolean clearLogs()
          Deprecated. Clear webserver logs.
 void kill()
          Deprecated. Kill all web 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 web servers on configured hosts.
 boolean stopServers()
          Deprecated. Stop servers.
 void xferLogs(int totalRunTime)
          Deprecated. Transfer log files.
 

Method Detail

setup

void setup(String[] serverMachines,
           String binDir,
           String logsDir,
           String confDir,
           String pidDir)
Deprecated. 
The setup method is called to set up a benchmark run. It is assumed that all servers have the same installation directory

Parameters:
serverMachines - - array specifying the web server machines.
binDir - - webserver binary location
logsDir - - webserver logs location
confDir - - webserver configuration file location
pidDir - - webserver pidfile location

startServers

boolean startServers()
Deprecated. 
Start all web servers on configured hosts.

Returns:
boolean true if start succeeded on all machines, else false

restartServers

boolean restartServers()
Deprecated. 
Restart all servers. It first stops servers, clear logs and then attempts to start them up again. If startup fails on any server, it will stop all servers and cleanup.

Returns:
boolean true if all servers restarted successfully, otherwise false

stopServers

boolean stopServers()
Deprecated. 
Stop servers.

Returns:
boolean true if stop succeeded on all machines, else false

clearLogs

boolean clearLogs()
Deprecated. 
Clear webserver logs.

Returns:
boolean true if operation succeeded, else fail

xferLogs

void xferLogs(int totalRunTime)
Deprecated. 
Transfer log files. This method copies over the error_log to the run output directory and keeps only the portion of the log relevant for this run.

Parameters:
totalRunTime - - the time in seconds for this run

kill

void kill()
Deprecated. 
Kill all web servers.