Package com.sun.faban.harness.agent

Examples of com.sun.faban.harness.agent.OracleAgent


     * Kills all Oracle instances managed by this service.
     */
    public void kill () {
        if((serverMachines != null) &&(serverMachines.length > 0)) {
            for (int i = 0; i < serverMachines.length; i++) {
                OracleAgent oracleAgent = (OracleAgent) allAgents.get(serverMachines[i]);
                try {
                    if(oracleAgent != null) {
                        oracleAgent.kill();
                        logger.fine("killed OracleAgent on " + serverMachines[i] );
                    }
                    else {
                        logger.severe("Unable to kill OracleAgent on " + serverMachines[i] + " OracleAgent is null");
                    }
View Full Code Here


     */
    public void cmdServer(String command, int priority) {

        for (int i = 0; i < serverMachines.length; i++) {

            OracleAgent oracleAgent = (OracleAgent) allAgents.get(serverMachines[i]);
            try {
                if(!oracleAgent.execSQL(command))
                    logger.severe("Failed to exec SQL " + command + " on " + serverMachines[i]);
            } catch (Exception ex) {
                try {
                    logger.severe("Failed to exec SQL " + command + " on " + serverMachines[i] + " " + ex);
                    logger.log(Level.FINE, "Exception", ex);
View Full Code Here

TOP

Related Classes of com.sun.faban.harness.agent.OracleAgent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.