|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.faban.harness.tools.OracleTool
@Deprecated public abstract class OracleTool
OracleTool is an abstract class for Oracle tools to extend. It provides the basic functionality typical Oracle tools.
Tool
Constructor Summary | |
---|---|
OracleTool()
Deprecated. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OracleTool()
Method Detail |
---|
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 tool
protected abstract String getSnapCommand()
protected String parseSnapId(byte[] output)
output
- The stdout from sqlplus where a snapshot has been taken
protected abstract String getReportCommand(String snapId, String snapId1, String outputFile)
snapId
- The id of the first snapsnapId1
- The id of the second snapoutputFile
- The output file
public void kill()
kill
in interface Tool
public boolean start(int delay, int duration)
start
in interface Tool
delay
- int delay (sec) after which start should be calledduration
- int duration for which the tool needs to be run
public boolean start(int delay)
start
in interface Tool
delay
- int delay (sec) after which start should be called
protected void start()
public void stop()
stop
in interface Tool
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |