@Deprecated public abstract class OracleTool extends Object implements Tool
Tool
Constructor and Description |
---|
OracleTool()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
configure(String tool,
List<String> argList,
String path,
String outDir,
String host,
String masterhost,
CmdAgentImpl cmdAgent,
CountDownLatch latch)
Deprecated.
Configures the Oracle tool.
|
protected void |
finish()
Deprecated.
Finishes up the Oracle tool.
|
protected String |
getLogFile()
Deprecated.
Obtains the temporary log file name.
|
protected String |
getOutputFile(String outDir,
String host)
Deprecated.
Obtains the final output file name.
|
protected abstract String |
getReportCommand(String snapId,
String snapId1,
String outputFile)
Deprecated.
Creates a sqlplus command to create a tool report.
|
protected abstract String |
getSnapCommand()
Deprecated.
Creates a sqlplus command to create tool snapshot.
|
void |
kill()
Deprecated.
This method is required by the Tool API.
|
protected String |
parseSnapId(byte[] output)
Deprecated.
The parseSnapId method parses the sqlplus stdout and finds the
snapshot just taken.
|
protected void |
start()
Deprecated.
The Runnable.run() is used to really start the tool after the delay.
|
boolean |
start(int delay)
Deprecated.
This method is responsible for starting up the Oracle tool.
|
boolean |
start(int delay,
int duration)
Deprecated.
This method is responsible for starting up the Oracle tool and
stopping it after the duration specified.
|
void |
stop()
Deprecated.
This method is responsible for stopping the tool.
|
protected void |
stop(boolean warn)
Deprecated.
This method is responsible for stopping the tool utility.
|
protected static void |
xferFile(String srcFile,
String destFile)
Deprecated.
Transfers the tool output file back to the master.
|
protected void |
xferLog()
Deprecated.
Transfers the log files to the output file in the results directory.
|
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
- name of the tool (Executable)argList
- list containing arguments to toolpath
- The path to run 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.protected String getLogFile()
protected String getOutputFile(String outDir, String host)
outDir
- The output or run directoryhost
- The host name running the toolprotected abstract String getSnapCommand()
protected String parseSnapId(byte[] output)
output
- The stdout from sqlplus where a snapshot has been takenprotected abstract String getReportCommand(String snapId, String snapId1, String outputFile)
snapId
- The id of the first snapsnapId1
- The id of the second snapoutputFile
- The output filepublic 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 tool is not running.protected void xferLog()
protected static void xferFile(String srcFile, String destFile)
srcFile
- The source file of the tool outputdestFile
- The transfer destinationprotected void finish()