Examples of ExecCommandConfig


Examples of lcmc.cluster.service.ssh.ExecCommandConfig

                }
            });
            allDone(null);
            return;
        }
        final ExecCommandThread t = getHost().execCommand(new ExecCommandConfig()
                .commandString("DrbdAvailArchs")
                .convertCmdCallback(getDrbdInstallationConvertCmdCallback())
                .execCallback(new ExecCallback() {
                    @Override
                    public void done(String answer) {
View Full Code Here

Examples of lcmc.cluster.service.ssh.ExecCommandConfig

                }));
        setCommandThread(t);
    }

    protected final void availVersionsForDist() {
        final ExecCommandThread t = getHost().execCommand(new ExecCommandConfig()
                .commandString("DrbdAvailVersionsForDist")
                .execCallback(new ExecCallback() {
                            @Override
                            public void done(final String answer) {
                                allDone(answer);
View Full Code Here

Examples of lcmc.cluster.service.ssh.ExecCommandConfig

    }

    private void initResourceAgentsWithoutMetaData() {
        final String command = host.getDistCommand("Heartbeat.getOCFParametersQuick", (ConvertCmdCallback) null);
        final SshOutput ret = host.captureCommandProgressIndicator(Tools.getString("CRMXML.GetRAMetaData"),
                                                                   new ExecCommandConfig().command(command)
                                                                                          .silentCommand()
                                                                                          .silentOutput()
                                                                                          .sshCommandTimeout(60000));
        boolean linbitDrbdPresent0 = false;
        boolean drbddiskPresent0 = false;
View Full Code Here

Examples of lcmc.cluster.service.ssh.ExecCommandConfig

        initOCFResourceAgentsWithMetaData(host.getDistCommand("Heartbeat.getOCFParameters",
                                          (ConvertCmdCallback) null));
    }

    private void initOCFResourceAgentsWithMetaData(final String command) {
        final SshOutput ret = host.captureCommand(new ExecCommandConfig().command(command)
                                                                         .silentCommand()
                                                                         .silentOutput()
                                                                         .sshCommandTimeout(300000));
        if (ret.getExitCode() != 0) {
            return;
View Full Code Here

Examples of lcmc.cluster.service.ssh.ExecCommandConfig

                        errors[index] = errorCode;
                        LOG.sshError(host, "", answer, "", errorCode);
                    }

                };
            threads[i] = host.execCommand(new ExecCommandConfig().command(DistResource.SUDO + "cat " + fileToEdit)
                                                                 .execCallback(execCallback));
            i++;
        }
        for (final ExecCommandThread t : threads) {
            try {
View Full Code Here

Examples of lcmc.cluster.service.ssh.ExecCommandConfig

        removeXML(domainName, parametersMap, "devices/video", getVideoDataComparator(), virshOptions);
    }

    public boolean update() {
        final String command = definedOnHost.getDistCommand("VMSXML.GetData", (ConvertCmdCallback) null);
        final SshOutput ret = definedOnHost.captureCommand(new ExecCommandConfig().command(command)
                                                                                  .silentCommand()
                                                                                  .silentOutput());
        if (ret.getExitCode() != 0) {
            return false;
        }
View Full Code Here

Examples of lcmc.cluster.service.ssh.ExecCommandConfig

    private static SshOutput execCommand(final Host host, final String command) {
        return host.captureCommandProgressIndicator(Tools.getString("LVM.ExecutingCommand")
                                                    + ' '
                                                    + command.replaceAll(DistResource.SUDO, " ")
                                                    + "...",
                                                    new ExecCommandConfig().command(command));
    }
View Full Code Here

Examples of lcmc.cluster.service.ssh.ExecCommandConfig

        if (host.isConnected()) {
            final SshOutput ret = host.captureCommandProgressIndicator(Tools.getString("VIRSH.ExecutingCommand")
                                                                       + ' '
                                                                       + commands.replaceAll(DistResource.SUDO, " ")
                                                                       + "...",
                                                                       new ExecCommandConfig().command(commands));
            if (ret.getExitCode() != 0) {
                return false;
            }
        }
        return true;
View Full Code Here

Examples of lcmc.cluster.service.ssh.ExecCommandConfig

            return;
        }
        if (command != null && !command.isEmpty()) {
            guiData.startProgressIndicator(hostName, "Executing command");
        }
        host.execCommand(new ExecCommandConfig().command(command)
                                                .execCallback(new ExecCallback() {
                                                    @Override
                                                    public void done(final String answer) {
                                                        if (command != null && !command.isEmpty()) {
                                                            guiData.stopProgressIndicator(hostName, "Executing command");
View Full Code Here

Examples of lcmc.cluster.service.ssh.ExecCommandConfig

            installCommand = "HbPmInst.install." + installMethod;
        }
        application.setLastHbPmInstalledMethod(getHost().getDistString("HbPmInst.install.text." + installMethod));
        application.setLastInstalledClusterStack(Application.HEARTBEAT_NAME);

        getHost().execCommandInBash(new ExecCommandConfig()
                .commandString(installCommand)
                .progressBar(getProgressBar())
                .execCallback(new ExecCallback() {
                    @Override
                    public void done(final String answer) {
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.