com.sun.faban.harness.tools
Class Awr

java.lang.Object
  extended by com.sun.faban.harness.tools.OracleTool
      extended by com.sun.faban.harness.tools.Awr
All Implemented Interfaces:
Tool

Deprecated.

@Deprecated
public class Awr
extends OracleTool

Runs Oracle's awr tool.


Constructor Summary
Awr()
          Deprecated.  
 
Method Summary
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  String getReportCommand(String snapId, String snapId1, String outputFile)
          Deprecated. Creates a sqlplus command to create awr reports.
protected  String getSnapCommand()
          Deprecated. Creates a sqlplus command to create an awr snapshot.
 
Methods inherited from class com.sun.faban.harness.tools.OracleTool
configure, finish, kill, parseSnapId, start, start, start, stop, stop, xferFile, xferLog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Awr

public Awr()
Deprecated. 
Method Detail

getOutputFile

protected String getOutputFile(String outDir,
                               String host)
Deprecated. 
Obtains the final output file name.

Overrides:
getOutputFile in class OracleTool
Parameters:
outDir - The output or run directory
host - The host name running the tool
Returns:
The output file name

getLogFile

protected String getLogFile()
Deprecated. 
Obtains the temporary log file name.

Overrides:
getLogFile in class OracleTool
Returns:
The log file name

getSnapCommand

protected String getSnapCommand()
Deprecated. 
Creates a sqlplus command to create an awr snapshot.

Specified by:
getSnapCommand in class OracleTool
Returns:
The sqlplus command string

getReportCommand

protected String getReportCommand(String snapId,
                                  String snapId1,
                                  String outputFile)
Deprecated. 
Creates a sqlplus command to create awr reports.

Specified by:
getReportCommand in class OracleTool
Parameters:
snapId - The id of the first snap
snapId1 - The id of the second snap
outputFile - The output file
Returns:
The sqlplus command string