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

Examples of com.sun.grid.installer.util.cmd.GetArchCommand


            }

            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) {
                host.setArchitecture(output.get(0));
                state = Host.State.REACHABLE;
View Full Code Here


        // Only once...
        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) + "'");
            }

            // Check user
View Full Code Here

TOP

Related Classes of com.sun.grid.installer.util.cmd.GetArchCommand

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.