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

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


                }

                if (!isIsTestMode()) {
                    installCmd = new RemoteComponentScriptCommand(timeout, host, host.getConnectUser(),
                            variables.getProperty(VAR_SHELL_NAME, ""), (Util.IS_MODE_WINDOWS && host.getArchitecture().startsWith("win")), remoteFile);
                    installCmd.execute();
                    exitValue = installCmd.getExitValue();
                }

                if (exitValue == 0) {
                    state = Host.State.SUCCESS;
View Full Code Here


            } else if (exitValue != 0) {
                newState = Host.State.COPY_FAILED_CHECK_HOST;
            } else {
                RemoteComponentScriptCommand checkCmd = new RemoteComponentScriptCommand((2 * host.getResolveTimeout()), host, host.getConnectUser(),
                        variables.getProperty(VAR_SHELL_NAME, ""), (Util.IS_MODE_WINDOWS && host.getArchitecture().startsWith("win")), remoteFile);
                checkCmd.execute();
                exitValue = checkCmd.getExitValue();

                // Set the new state of the host depending on the return value of the script
                switch (exitValue) {
                    case EXIT_VAL_SUCCESS: newState = Host.State.REACHABLE; break;
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.