com.sun.faban.harness.engine
Class OracleService

java.lang.Object
  extended by com.sun.faban.harness.engine.OracleService

Deprecated.

@Deprecated
public final class OracleService
extends Object

This class implements the service of configure/start/stop Oracle instances. it is used by the benchmark to start the OracleAgent on the server machine and perform these operations throught OracleAgent.

Author:
Ramesh Ramachandran

Field Summary
protected  String masterMachine
          Deprecated. The master host name.
 
Method Summary
 void clearLogs(String serverMachine)
          Deprecated. Clear log files.
 void cmdServer(String command, int priority)
          Deprecated. Execute an SQL command.
 List getConfig(String serverMachine)
          Deprecated. Get server configuration parameters from the configuration files.
static OracleService getHandle()
          Deprecated. Obtains an instance of the OracleService.
 void kill()
          Deprecated. Kills all Oracle instances managed by this service.
 boolean restartListener(String serverMachine)
          Deprecated. Restart listener.
 boolean restartServer(String serverMachine)
          Deprecated. Start/restart server.
 void setConfig(String serverMachine, List oracleParams)
          Deprecated. Set server configuration parameters: update the two conf files.
 void setup(Run r, CmdService c, String oracleHome, String oracleSid, String[] serverMachines, String[] allConfigs)
          Deprecated. Sets up the Oracle service.
 boolean startListener(String serverMachine)
          Deprecated. Start listener.
 void startStats(String serverMachine)
          Deprecated. Start statistics collection.
 boolean stopListener(String serverMachine)
          Deprecated. Stop the listener.
 boolean stopServer(String serverMachine)
          Deprecated. Stop server.
 void stopStats(String serverMachine)
          Deprecated. Stop statistics collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

masterMachine

protected String masterMachine
Deprecated. 
The master host name.

Method Detail

getHandle

public static OracleService getHandle()
Deprecated. 
Obtains an instance of the OracleService.

Returns:
An instance of the OracleService

setup

public void setup(Run r,
                  CmdService c,
                  String oracleHome,
                  String oracleSid,
                  String[] serverMachines,
                  String[] allConfigs)
Deprecated. 
Sets up the Oracle service.

Parameters:
r - The run
c - The command service
oracleHome - ORACLE_HOME
oracleSid - ORACLE_SID
serverMachines - The server systems to have this service
allConfigs - All the Oracle configuration parameters

getConfig

public List getConfig(String serverMachine)
Deprecated. 
Get server configuration parameters from the configuration files. If null is passed then the operation is applied to all servers.

Parameters:
serverMachine - The server to get the configuration files
Returns:
The list of configuration parameters

setConfig

public void setConfig(String serverMachine,
                      List oracleParams)
Deprecated. 
Set server configuration parameters: update the two conf files. If null is passed for the server machine, the operation is applied to all servers.

Parameters:
serverMachine - The server system
oracleParams - The Oracle parameters to use

restartServer

public boolean restartServer(String serverMachine)
Deprecated. 
Start/restart server. If null is passed then the operation is applied to all servers.

Parameters:
serverMachine - The server machine
Returns:
Whether the server restart succeeded

stopServer

public boolean stopServer(String serverMachine)
Deprecated. 
Stop server. If null is passed then the operation is applied to all servers.

Parameters:
serverMachine - The server machine
Returns:
Whether the server is successfully stopped

restartListener

public boolean restartListener(String serverMachine)
Deprecated. 
Restart listener. If null is passed then the operation is applied to all servers.

Parameters:
serverMachine - The server to restart the listener
Returns:
Whether the listener restarted successfully

startListener

public boolean startListener(String serverMachine)
Deprecated. 
Start listener. If null is passed then the operation is applied to all servers.

Parameters:
serverMachine - The server to start the listener
Returns:
Whether the listener started successfully

stopListener

public boolean stopListener(String serverMachine)
Deprecated. 
Stop the listener. If null is passed then the operation is applied to all servers.

Parameters:
serverMachine - The server machine
Returns:
Whether the listener has been successfully stopped

startStats

public void startStats(String serverMachine)
Deprecated. 
Start statistics collection.

Parameters:
serverMachine - The server to start the stats collection

stopStats

public void stopStats(String serverMachine)
Deprecated. 
Stop statistics collection.

Parameters:
serverMachine - The system to stop stats

clearLogs

public void clearLogs(String serverMachine)
Deprecated. 
Clear log files.

Parameters:
serverMachine - The system to call to clear the log file

kill

public void kill()
Deprecated. 
Kills all Oracle instances managed by this service.


cmdServer

public void cmdServer(String command,
                      int priority)
Deprecated. 
Execute an SQL command.

Parameters:
command - is a combination of user/passwd\ncommand to execute
priority - in which to run command (not used)