|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.faban.harness.engine.ToolService
public final class ToolService
This file contains the class that implements the Tool service API. The Tool Service object is created by the Engine at the start of a run. The Tool Service will interpret the Tools specific parameters in the ParamRepository and start up the ToolAgents on all the machines on which the user requested that tools be run. It then connects to the ToolAgents via RMI. In the API implementation, it identifies the particular ToolAgent and passes the call along. IMPORTANT: There should be a single ToolService object in the entire framework or else multiple copies of the ToolAgent application will be spawned on the target machines. For this reason, this class is a Singleton.
Method Summary | |
---|---|
static ToolService |
getHandle()
This method is the only way that an external object can get a reference to the singleton ToolService. |
void |
init()
Intializes logger. |
void |
kill()
Kill all tools and ToolAgents. |
boolean |
setup(ParamRepository par,
String outDir,
ServiceManager serviceMgr)
This method initializes the ToolAgent RMI server processes on the specified set of machines. |
void |
start(int delay)
Start all tools on all machines. |
void |
start(int delay,
int duration)
Start all tools on all machines. |
void |
stop()
Stop all tools on all machines. |
void |
waitFor()
Wait for all tools. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ToolService getHandle()
public void init()
public boolean setup(ParamRepository par, String outDir, ServiceManager serviceMgr)
par
- The parameter repositoryoutDir
- The run output directory, relative to Config.OUT_DIRserviceMgr
- The service manager instance
public void start(int delay)
delay
- after which tools should startpublic void start(int delay, int duration)
delay
- after which tools should startduration
- after which tools must be stoppedpublic void stop()
public void kill()
public void waitFor()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |