Examples of StartCommand


Examples of org.apache.oozie.command.wf.StartCommand

        try {
            if (useXCommand) {
                new StartXCommand(jobId).call();
            }
            else {
                new StartCommand(jobId).call();
            }
        }
        catch (CommandException e) {
            throw new DagEngineException(e);
        }
View Full Code Here

Examples of org.foo.shell.commands.StartCommand

    Map<String, Command> commands = new HashMap<String, Command>();

    commands.put("help", new HelpCommand(commands).setContext(context).setHelp("help - display commands."));
    commands.put("install", new InstallCommand().setContext(context).setHelp(
      "install <url> - Install the bundle jar at the given url."));
    commands.put("start", new StartCommand().setContext(context).setHelp(
      "start <id> - Start the bundle with the given bundle id."));
    commands.put("stop", new StopCommand().setContext(context).setHelp(
      "stop <id> - Stop the bundle with the given bundle id."));
    commands.put("uninstall", new UninstallCommand().setContext(context).setHelp(
      "uninstall <id> - Uninstall the bundle with the given bundle id."));
View Full Code Here

Examples of org.rhq.enterprise.communications.command.impl.start.StartCommand

    public StartCommandResponse execute(StartCommand command) {
        org.rhq.core.util.exec.ProcessExecutor exec = new org.rhq.core.util.exec.ProcessExecutor();
        StartCommandResponse response;

        try {
            StartCommand startCommand = new StartCommand(command);
            ProcessToStart process = new ProcessToStart();

            process.setArguments(command.getArguments());
            process.setBackupOutputFile(command.isBackupOutputFile());
            process.setCaptureOutput(command.isCaptureOutput());
View Full Code Here

Examples of org.rhq.enterprise.communications.command.impl.start.StartCommand

        // execute the keytool utility to create our key store
        String keytool_dir = System.getProperty("java.home") + File.separator + "bin";
        String keytool_exe = System.getProperty("os.name").toLowerCase().startsWith("windows") ? "keytool.exe"
            : "keytool";
        StartCommand keytool_cmd = new StartCommand();
        keytool_cmd.setProgramDirectory(keytool_dir);
        keytool_cmd.setProgramExecutable(keytool_exe);
        keytool_cmd.setWaitForExit(Long.valueOf(30000L));
        keytool_cmd.setCaptureOutput(Boolean.FALSE);
        keytool_cmd.setCommandInResponse(true);

        keytool_cmd.setArguments(new String[] { "-genkey", "-alias", key_alias, "-dname", domain_name, "-keystore",
            keystore.getAbsolutePath(), "-storepass", keystore_password, "-keypass", key_password, "-keyalg",
            key_algorithm, "-validity", Integer.toString(validity) });

        StartCommandResponse keytool_results = new ProcessExec().execute(keytool_cmd);

        if (!keytool_results.isSuccessful() || !keystore.exists()) {
            throw new RuntimeException(LOG.getMsgString(CommI18NResourceKeys.KEYSTORE_CREATION_FAILURE,
                keytool_results, Arrays.asList(keytool_cmd.getArguments()).toString()), keytool_results.getException());
        }

        LOG.debug(CommI18NResourceKeys.KEYSTORE_CREATED, keystore.getAbsolutePath());

        return;
View Full Code Here

Examples of org.xmatthew.spy2servers.command.StartCommand

        }
   
        Command command;
        if (START_C.equals(control)) {
            LOGGER.info("Server starting...");
            command = new StartCommand();
        } else {
            LOGGER.info("Stop server starting...");
            command = new ShutdownCommand();
        }
        command.execute(new ArrayList<String>());
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.