public interface Tool
Modifier and Type | Method and Description |
---|---|
void |
configure(String toolName,
List<String> args,
String path,
String outDir,
String host,
String masterhost,
CmdAgentImpl cmdAgent,
CountDownLatch latch)
This method is called to configure the tool.
|
void |
kill()
Abort any running tools and exit.
|
boolean |
start(int delay)
This method is responsible for starting the tool .
|
boolean |
start(int delay,
int duration)
This method is responsible for starting the tool after delay
and stopping it after duration.
|
void |
stop()
This method is responsible for stopping the tool.
|
void configure(String toolName, List<String> args, String path, String outDir, String host, String masterhost, CmdAgentImpl cmdAgent, CountDownLatch latch)
toolName
- name of the tool (Executable)args
- list containing arguments to toolpath
- The path, if any, to find the tooloutDir
- The output directoryhost
- name of machine the tool is running onmasterhost
- name of master machinecmdAgent
- agent The command agent used for executing toolslatch
- The latch the tool uses to identify it's completion.void kill()
boolean start(int delay, int duration)
delay
- - time (sec) to delay before startingduration
- for which the tool should be runboolean start(int delay)
delay
- - time (sec) to delay before startingvoid stop()