Examples of executeCommand()


Examples of com.dtolabs.rundeck.core.execution.ExecutionService.executeCommand()

                                              final GeneratedScript script)
        throws NodeStepException {
        final ExecutionService executionService = context.getFramework().getExecutionService();
        if (null != script.getCommand()) {
            //execute the command
            return executionService.executeCommand(context, script.getCommand(), node);
        } else if (null != script.getScript()) {
            final String filepath; //result file path
            try {
                filepath = executionService.fileCopyScriptContent(context, script.getScript(), node);
            } catch (FileCopierException e) {
View Full Code Here

Examples of com.intellij.openapi.command.CommandProcessor.executeCommand()

    };

    String commandName = getTemplatePresentation().getText();
    if (commandName == null) commandName = "";
    // use new Ref() here to avoid merging two consequential commands, and, in the same time, pass along the Document
    commandProcessor.executeCommand(editor.getProject(), command, commandName, new Ref(editor.getDocument()));
  }

  public void update(Editor editor, Presentation presentation, DataContext dataContext) {
    presentation.setEnabled(getHandler().isEnabled(editor, dataContext));
  }
View Full Code Here

Examples of com.izforge.izpack.util.FileExecutor.executeCommand()

        }

        FileExecutor exec = new FileExecutor();
        String[] output = new String[2];
        String[] params = {"javac", "-help"};
        if (exec.executeCommand(params, output) != 0)
        {
            String[] message = {
                    "It looks like your system does not have a Java Development Kit (JDK) available.",
                    "The software that you plan to install requires a JDK for both its installation and execution.",
                    "\n",
View Full Code Here

Examples of com.shop.cache.api.commands.SCDataBuilder.executeCommand()

            break;
          }
        }
      }

      builder.executeCommand(fServer, this);
      fClient.flush();
    }

    fCurrentCommand = null;
  }
View Full Code Here

Examples of com.sonyericsson.hudson.plugins.gerrit.gerritevents.ssh.SshConnection.executeCommand()

      logger.info(String.format("Sending results to gerrit for %s: %s", commit, result));

      SshConnection ssh = SshConnectionFactory.getConnection(connection);
      String command = GerritCommand.createCodeReview(commit, result);
      ssh.executeCommand(command);

      logger.info("Results sent successfully");
    }
  }
View Full Code Here

Examples of com.splunk.shuttl.archiver.importexport.ShellExecutor.executeCommand()

    private void executeArchiveScript(LocalBucket bucket) {
      ShellExecutor shellExecutor = ShellExecutor.getInstance();
      Map<String, String> env = getSplunkHomeEnvironment();
      List<String> command = createCommand(bucket);
      int exit = shellExecutor.executeCommand(env, command);
      assertEquals(0, exit);
    }

    private Map<String, String> getSplunkHomeEnvironment() {
      Map<String, String> env = new HashMap<String, String>();
View Full Code Here

Examples of com.sshtools.j2ssh.session.SessionChannelClient.executeCommand()

    try
    {
      // The connection is authenticated we can now do some real work!
      SessionChannelClient session = ssh.openSessionChannel();

      if ( session.executeCommand(cmd)){
        IOStreamConnector output = new IOStreamConnector();
        java.io.ByteArrayOutputStream bos = new java.io.ByteArrayOutputStream();
        output.connect(session.getInputStream(), bos );
        session.getState().waitForState(ChannelState.CHANNEL_CLOSED);
        theOutput = bos.toString();
View Full Code Here

Examples of com.sun.enterprise.admin.remote.RemoteAdminCommand.executeCommand()

    protected int executeCommand() throws CommandException {
        RemoteAdminCommand rac = new RemoteAdminCommand(name,
            programOpts.getHost(), programOpts.getPort(),
            programOpts.isSecure(), programOpts.getUser(),
            programOpts.getPassword(), logger);
        rac.executeCommand(params);
        return SUCCESS;
    }

    /**
     * Prompt for all the passwords needed by this command.
View Full Code Here

Examples of com.sun.enterprise.admin.remote.RemoteRestAdminCommand.executeCommand()

           try {
                RemoteRestAdminCommand rac = new RemoteRestAdminCommand(name,
                    programOpts.getHost(), programOpts.getPort(),
                    programOpts.isSecure(), programOpts.getUser(),
                    programOpts.getPassword(), logger);
                rac.executeCommand(params);
                return SUCCESS;
           } catch(CommandException ce) {
               if ( ce.getCause() instanceof ConnectException) {
                   //Remote change failure - change password with default values of
                   // domaindir and domain name,if the --host option is not provided.
View Full Code Here

Examples of com.sun.enterprise.admin.remote.ServerRemoteAdminCommand.executeCommand()

                if(sessionId != null) {
                    params.set("session-id", sessionId);
                }

                report.setMessage(remote.executeCommand(params));
                report.setActionExitCode(ActionReport.ExitCode.SUCCESS);
                return;
            } catch(CommandException x) {
                report.setMessage("Remote execution failed: "
                        + x.getMessage());
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.