@Deprecated public class GenericTool extends Object implements Tool
Tool
Modifier and Type | Field and Description |
---|---|
protected Timer |
timer
Deprecated.
The timer used for scheduling the start of the tool.
|
Constructor and Description |
---|
GenericTool()
Deprecated.
Constructs the GenericTool.
|
Modifier and Type | Method and Description |
---|---|
protected void |
buildCmd(List<String> argList)
Deprecated.
Builds the command from the path, tool name, and argument list.
|
void |
configure(String tool,
List<String> argList,
String path,
String outDir,
String host,
String masterhost,
CmdAgentImpl cmdAgent,
CountDownLatch latch)
Deprecated.
This is the method that should get the arguments to
call the tool with.
|
protected void |
finish()
Deprecated.
Finish up the tool.
|
void |
kill()
Deprecated.
This method is required by the Tool API.
|
protected void |
start()
Deprecated.
Starts the tool.
|
boolean |
start(int delay)
Deprecated.
This method is responsible for starting up the tool utility.
|
boolean |
start(int delay,
int duration)
Deprecated.
This method is responsible for starting up the tool and stopping it
after the duration specified.
|
void |
stop()
Deprecated.
This method is responsible for stopping the tool utility.
|
protected void |
stop(boolean warn)
Deprecated.
This method is responsible for stopping the tool utility.
|
protected void |
xferLog()
Deprecated.
Transfers the tool output back to the master.
|
protected Timer timer
public void configure(String tool, List<String> argList, String path, String outDir, String host, String masterhost, CmdAgentImpl cmdAgent, CountDownLatch latch)
configure
in interface Tool
tool
- The tool to startargList
- The tool argumentspath
- The path, if any, to find the tooloutDir
- The output directoryhost
- The host to run the toolmasterhost
- The Faban mastercmdAgent
- The command agent for running commandslatch
- Latch set when tool is doneprotected void buildCmd(List<String> argList)
argList
- The argument listpublic void kill()
public boolean start(int delay, int duration)
public boolean start(int delay)
protected void start()
public void stop()
protected void stop(boolean warn)
warn
- Whether to warn if the tool already ended.protected void xferLog()
protected void finish()