com.sun.faban.harness.agent
Interface OracleAgent

All Superinterfaces:
Remote
All Known Implementing Classes:
OracleAgentImpl

Deprecated. Replaced by the services/tools infrastructure

@Deprecated
public interface OracleAgent
extends Remote

An agent for controlling the Oracle database.

Author:
Ramesh Ramachandran

Method Summary
 boolean checkListenerStatus()
          Deprecated. Checks the listener status.
 void clearLogs()
          Deprecated. Clear log files.
 void configure(Run run, String oracleHome, String oracleSid, String[] allConfigs)
          Deprecated. Configures the agent.
 boolean execSQL(String sql)
          Deprecated. Executes an SQL statement.
 List getConfig(String serverID)
          Deprecated. This method get the configure parameters of the oracle instance.
 void kill()
          Deprecated. Kills the Oracle instance.
 void setConfig(String serverID, List oracleParams)
          Deprecated. This method set the configure parameters of the oracle instance.
 boolean start(String serverID)
          Deprecated. Start an Oracle instance.
 boolean startListener()
          Deprecated. Start the Oracle listener.
 void startStats()
          Deprecated. Start gathering statistics for an instance.
 boolean stop(String serverID)
          Deprecated. Stop an Oracle instance.
 boolean stopListener()
          Deprecated. Stop an Oracle listener.
 void stopStats()
          Deprecated. Stop gathering statistics fpr an instance.
 

Method Detail

getConfig

List getConfig(String serverID)
               throws IOException
Deprecated. 
This method get the configure parameters of the oracle instance.

Parameters:
serverID - Instance name
Returns:
The list of configuration parameters
Throws:
IOException - An I/O error occurred

setConfig

void setConfig(String serverID,
               List oracleParams)
               throws IOException
Deprecated. 
This method set the configure parameters of the oracle instance.

Parameters:
serverID - Instance name
oracleParams - The parameter list
Throws:
IOException - An I/O error occurred

start

boolean start(String serverID)
              throws Exception
Deprecated. 
Start an Oracle instance.

Parameters:
serverID - Instance name
Returns:
Whether the server started successfully
Throws:
Exception - An error occurred in the process

stop

boolean stop(String serverID)
             throws Exception
Deprecated. 
Stop an Oracle instance.

Parameters:
serverID - Instance name
Returns:
Whether the server stopped successfully
Throws:
Exception - An error occurred in the process

startListener

boolean startListener()
                      throws Exception
Deprecated. 
Start the Oracle listener.

Returns:
Whether the listener started successfully
Throws:
Exception - An error occurred in the process

stopListener

boolean stopListener()
                     throws Exception
Deprecated. 
Stop an Oracle listener.

Returns:
Whether the listener stopped successfully
Throws:
Exception - An error occurred in the process

checkListenerStatus

boolean checkListenerStatus()
                            throws Exception
Deprecated. 
Checks the listener status.

Returns:
Whether the listener is running
Throws:
Exception - An error occurred in the process

startStats

void startStats()
                throws Exception
Deprecated. 
Start gathering statistics for an instance.

Throws:
Exception - An error occurred in the process

stopStats

void stopStats()
               throws Exception
Deprecated. 
Stop gathering statistics fpr an instance.

Throws:
Exception - An error occurred in the process

clearLogs

void clearLogs()
               throws Exception
Deprecated. 
Clear log files.

Throws:
Exception - An error occurred in the process

configure

void configure(Run run,
               String oracleHome,
               String oracleSid,
               String[] allConfigs)
               throws Exception
Deprecated. 
Configures the agent.

Parameters:
run - The benchmark run
oracleHome - ORACLE_HOME
oracleSid - ORACLE_SID
allConfigs - Pathnames to all config files
Throws:
Exception - An error occurred in the process

kill

void kill()
          throws Exception
Deprecated. 
Kills the Oracle instance.

Throws:
Exception - An error occurred in the process

execSQL

boolean execSQL(String sql)
                throws Exception
Deprecated. 
Executes an SQL statement.

Parameters:
sql - The statement
Returns:
Whether the SQL statement executed successfully
Throws:
Exception - An error occurred in the process