Examples of execute()


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

        try {
            // Call the 'fstype' script of the proper architecture
            String fstypeScript = sge_root + "/utilbin/" + arch + "/fstype";
            FsTypeCommand fstypeCmd = new FsTypeCommand(host, DEF_CONNECT_USER, shell, IS_MODE_WINDOWS, fstypeScript, dir);
            fstypeCmd.execute();

            if (fstypeCmd.getExitValue() == EXIT_VAL_SUCCESS) {
                result = fstypeCmd.getOutput().firstElement().trim();
                Debug.trace("FSType of '" + dir + "' is '" + result +"'.");
            } else {
View Full Code Here

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

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

            String remHost = (isQmasterInst) ? idata.getVariable(VAR_QMASTER_HOST) : Host.localHostName;
            String libjvm="";

            //TODO: Verify behavior of delay and when connection is not possible via rsh
            GetJvmLibCommand cmd = new GetJvmLibCommand(remHost, Util.DEF_CONNECT_USER, idata.getVariable(VAR_SHELL_NAME), Util.IS_MODE_WINDOWS, sgeRoot);
            cmd.execute();
            if (cmd.getOutput() != null && cmd.getOutput().size() > 0) {
                libjvm = cmd.getOutput().get(0);
            }
            idata.setVariable(VAR_JVM_LIB_PATH, libjvm);
        }
View Full Code Here

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

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

            int exitValue = getTestExitValue();
            Vector<String> output = getTestOutput();

            if (!isIsTestMode()) {
                ResolveHostCommand resolveHostCommand = new ResolveHostCommand(host.getResolveTimeout());
                resolveHostCommand.execute(value);
                exitValue = resolveHostCommand.getExitValue();

                name = resolveHostCommand.getHostName(); //If IP can't be resolved takes took long on windows
                ip = resolveHostCommand.getHostAddress();
View Full Code Here

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

            return null;
        }

        // call 'ls -la' command...
        SimpleLocalCommand cmd = new SimpleLocalCommand("ls -la " + filePath);
        cmd.execute();

        // in case of failure try /usr/bin/ls -la...
        if (cmd.getExitValue() != Config.EXIT_VAL_SUCCESS) {
            cmd = new SimpleLocalCommand("/usr/bin/ls -la " + filePath);
            cmd.execute();
View Full Code Here

Examples of com.sun.grizzly.Context.execute()

                invokeAsyncQueueReader(context);
            } else if (attach instanceof CallbackHandler) {
                invokeCallbackHandler((CallbackHandler) attach, context);
            } else {
                try {
                    context.execute(ProtocolChainContextTask.poll());
                } catch (Exception r) {
                    ctx.getController().returnContext(context);

                    releaseBuffer(buff);
View Full Code Here

Examples of com.sun.jini.thread.Executor.execute()

                login.getSubject(),
                new GetThreadPoolAction(false),
                null);
      }
    });
      systemThreadPool.execute(action, "UnexportGroup");
  }
    }

    /**
     * Marks the object as active in this virtual machine, and calls the
View Full Code Here

Examples of com.sun.org.apache.xpath.internal.Expression.execute()

    for (int i = 0; i < nArgs; i++)
    {
      Expression arg = (Expression) m_argVec.elementAt(i);
     
      XObject xobj = arg.execute(xctxt);
      /*
       * Should cache the arguments for func:function
       */
      xobj.allowDetachToRelease(false);
      argVec.addElement(xobj);
View Full Code Here

Examples of com.sun.org.apache.xpath.internal.XPath.execute()

      try
      {
        XPath dynamicXPath = new XPath(expr, xctxt.getSAXLocator(),
                                       xctxt.getNamespaceContext(),
                                       XPath.SELECT);
        result = dynamicXPath.execute(xctxt, contextNode, xctxt.getNamespaceContext()).num();
      }
      catch (TransformerException e)
      {
        xctxt.popCurrentNode();
        xctxt.popContextNodeList();
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.