Package com.sun.faban.common

Examples of com.sun.faban.common.Command


                    logger.log(Level.FINE, "Exception", ee);
                }
                if (pid <= 0)
                    continue;
                // Now kill the server
                Command cmd = new Command("kill", String.valueOf(pid));
                try {
                    RunContext.exec(hostName, cmd);
                    // Check if the server truly stopped
                    int attempts = 60;
                    boolean b = false;
View Full Code Here


     */
    @Start public void startup() {
        int i = 0;
        for (NameValuePair<Integer> myHostPort : myHostPorts) {
            logger.fine("Starting memcached on " + myHostPort.name);
            Command startCmd;
            if (myHostPort.value != null) {
                startCmd = new Command(memcachedStartCmd + " -p " +
                        myHostPort.value);
            } else {
                startCmd = new Command(memcachedStartCmd + " -p " +
                        DEFAULT_PORT);
            }
            startCmd.setLogLevel(Command.STDOUT, Level.INFO);
            startCmd.setLogLevel(Command.STDERR, Level.INFO);
            logger.fine("Starting memcached with: " + memcachedStartCmd);
            startCmd.setSynchronous(false); // to run in bg
            try {
                // Run the command in the background
               memcacheHandles[i] = RunContext.exec(myHostPort.name, startCmd);
               logger.fine("Completed memcached server startup successfully on "
                        + myHostPort.name);
View Full Code Here

TOP

Related Classes of com.sun.faban.common.Command

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.