|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.faban.harness.engine.GlassfishService
@Deprecated public final class GlassfishService
This class implements the service to start/stop GlassFish instances. It also provides functionality to transfer the portion of the glassfish error_log for a run to the run output directory. It can be used by any benchmark to GlassFish servers and perform these operations remotely using this Service.
Method Summary | |
---|---|
boolean |
clearLogs()
Deprecated. Clears glassfish logs and session files. |
static GregorianCalendar |
getGregorianCalendar(String hostName)
Deprecated. Obtains the gregorian calendar representing the current time. |
static GlassfishService |
getHandle()
Deprecated. Get the reference to the singleton object. |
void |
kill()
Deprecated. Kill all glassfish 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 glassfish servers on configured hosts. |
boolean |
stopServers()
Deprecated. Stop servers. |
void |
xferLogs(int totalRunTime)
Deprecated. Transfer log files. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static GlassfishService getHandle()
public void setup(String[] serverMachines, String binDir, String logsDir, String confDir, String pidDir)
setup
in interface WebServerService
serverMachines
- - array specifying the glassfish server machines.binDir
- - glassfish binaries locationlogsDir
- - glassfish logs locationconfDir
- - glassfish httpd.conf file locationpidDir
- - glassfish 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 void kill()
kill
in interface WebServerService
public static GregorianCalendar getGregorianCalendar(String hostName) throws Exception
hostName
- The host name to get the calendar from
Exception
- Error obtaining calendar
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |