public final class ToolService extends Object
Modifier and Type | Method and Description |
---|---|
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.
|
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 instancepublic 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()