|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Tool
The methods in this interface are the public face of all Tools configured. New tools that are dynamically added should implement this interface and belong to the tools package. Note that the GenericTool abstract class implements this interface and provides much of the functionality required by most tools. Tools can simply extend GenericTool.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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 run
boolean start(int delay)
delay
- - time (sec) to delay before starting
void stop()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |