com.sun.faban.harness.agent
Class OracleAgentImpl

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by com.sun.faban.harness.agent.OracleAgentImpl
All Implemented Interfaces:
OracleAgent, Serializable, Remote, Unreferenced

Deprecated. Replaced by the services/tools infrastructure

@Deprecated
public class OracleAgentImpl
extends UnicastRemoteObject
implements OracleAgent, Unreferenced

This is the OracleAgent class to perform the OracleService remotely on the server machine(s).

Author:
Ramesh Ramachandran
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
OracleAgentImpl()
          Deprecated. Constructs an Oracle agent.
 
Method Summary
 boolean checkListenerStatus()
          Deprecated. Checks the listener status.
 void clearLogs()
          Deprecated. Clear oracle logs.
 void configure(Run run, String oracleHome, String oracleSid, String[] allConfigs)
          Deprecated. To configure the OracleAgent at the start of a run.
 boolean execSQL(String sql)
          Deprecated. Executes an SQL statement.
 List getConfig(String serverID)
          Deprecated. This method gets the configure parameters of the Oracle instance started on this machine.
 void kill()
          Deprecated. Kill this oracle instance.
 void setConfig(String serverID, List oracleParams)
          Deprecated. This method set the configure parameters of the Oracle instance on this machine.
 boolean start(String serverID)
          Deprecated. Start an Oracle instance.
 boolean startListener()
          Deprecated. Start the Oracle listener.
 void startStats()
          Deprecated. Start collection of Oracle stats.
 boolean stop(String serverID)
          Deprecated. Stop an Oracle instance.
 boolean stopListener()
          Deprecated. Start the Oracle listener.
 void stopStats()
          Deprecated. Stop collection of Oracle stats.
 void unreferenced()
          Deprecated. When this instance is unreferenced the application must exit.
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OracleAgentImpl

public OracleAgentImpl()
                throws RemoteException
Deprecated. 
Constructs an Oracle agent.

Throws:
RemoteException - A communication error occurred.
Method Detail

configure

public void configure(Run run,
                      String oracleHome,
                      String oracleSid,
                      String[] allConfigs)
Deprecated. 
To configure the OracleAgent at the start of a run.

Specified by:
configure in interface OracleAgent
Parameters:
run - - The run object.
oracleHome - - ORACLE_HOME
oracleSid - - ORACLE_SID
allConfigs - - Pathnames for all config files.

getConfig

public List getConfig(String serverID)
Deprecated. 
This method gets the configure parameters of the Oracle instance started on this machine.

Specified by:
getConfig in interface OracleAgent
Parameters:
serverID - - this variable is not used (can be null)
Returns:
- list array of parameters

setConfig

public void setConfig(String serverID,
                      List oracleParams)
Deprecated. 
This method set the configure parameters of the Oracle instance on this machine.

Specified by:
setConfig in interface OracleAgent
Parameters:
serverID - - not used (can be null)
oracleParams - - list of parameters

start

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

Specified by:
start in interface OracleAgent
Parameters:
serverID - Instance name
Returns:
Whether the server started successfully
Throws:
Exception - An error occurred in the process

stop

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

Specified by:
stop in interface OracleAgent
Parameters:
serverID - Instance name
Returns:
Whether the server stopped successfully
Throws:
Exception - An error occurred in the process

execSQL

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

Specified by:
execSQL in interface OracleAgent
Parameters:
sql - The statement
Returns:
Whether the SQL statement executed successfully
Throws:
Exception - An error occurred in the process

startListener

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

Specified by:
startListener in interface OracleAgent
Returns:
Whether the listener started successfully
Throws:
Exception - An error occurred in the process

stopListener

public boolean stopListener()
                     throws Exception
Deprecated. 
Start the Oracle listener.

Specified by:
stopListener in interface OracleAgent
Returns:
Whether the listener started successfully
Throws:
Exception - An error occurred in the process

checkListenerStatus

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

Specified by:
checkListenerStatus in interface OracleAgent
Returns:
Whether the listener is running
Throws:
Exception - An error occurred in the process

startStats

public void startStats()
Deprecated. 
Start collection of Oracle stats. This runs a script whose name is specified by the ServerNames class variable ORACLESTARTSTATS which does the work for it.

Specified by:
startStats in interface OracleAgent

stopStats

public void stopStats()
Deprecated. 
Stop collection of Oracle stats. This runs a script whose name is specified by the ServerNames class variable ORACLESTOPSTATS which does the work for it.

Specified by:
stopStats in interface OracleAgent

clearLogs

public void clearLogs()
Deprecated. 
Clear oracle logs. This runs a script whose name is specified by the ServerNames class variable ORACLECLEARLOGS which does the work for it.

Specified by:
clearLogs in interface OracleAgent

kill

public void kill()
Deprecated. 
Kill this oracle instance. This just calls the stop method.

Specified by:
kill in interface OracleAgent

unreferenced

public void unreferenced()
Deprecated. 
When this instance is unreferenced the application must exit.

Specified by:
unreferenced in interface Unreferenced
See Also:
Unreferenced