Package com.sun.grid.installer.util.cmd

Examples of com.sun.grid.installer.util.cmd.GetArchCommand.execute()


            handler.setHostState(host, Host.State.CONTACTING);

            if (!isIsTestMode()) {
                GetArchCommand cmd = new GetArchCommand(host.getResolveTimeout(), host.getHostname(), host.getConnectUser(),
                        shell, (Util.IS_MODE_WINDOWS && host.getArchitecture().startsWith("win")), sge_root);
                cmd.execute();
                exitValue = cmd.getExitValue();
                output = cmd.getOutput();
            }

            if (exitValue == 0 && output.size() > 0) {
View Full Code Here


        if (getNumOfExecution() == 0) {
            // Localhost arch
            Properties variables = idata.getVariables();
            GetArchCommand archCmd = new GetArchCommand(Host.localHostName, Util.DEF_CONNECT_USER,
                    variables.getProperty(VAR_SHELL_NAME, ""), (Util.IS_MODE_WINDOWS && Host.localHostArch.startsWith("win")), variables.getProperty(VAR_SGE_ROOT, ""));
            archCmd.execute();
            if (archCmd.getExitValue() == 0 && archCmd.getOutput().size() > 0) {
                Host.localHostArch = archCmd.getOutput().get(0).trim();
                idata.setVariable(VAR_LOCALHOST_ARCH, Host.localHostArch);
                Debug.trace("localhost.arch='" + idata.getVariable(VAR_LOCALHOST_ARCH) + "'");
            }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.