Package lcmc.cluster.service.ssh

Examples of lcmc.cluster.service.ssh.ExecCommandThread


        });
        t.start();
    }

    protected final void getAllInfo() {
        final ExecCommandThread t = getHost().execCommand(
                         new ExecCommandConfig().commandString("GetHostAllInfo")
                         .progressBar(getProgressBar())
                         .execCallback(new ExecCallback() {
                             @Override
                             public void done(final String answer) {
View Full Code Here


        }
    }

    /** Stops server (hw) status background process. */
    public void stopServerStatus() {
        final ExecCommandThread sst = serverStatusThread;
        if (sst == null) {
            LOG.appWarning("trying to stop stopped server status");
            return;
        }
        sst.cancelTheSession();
        serverStatusThread = null;
    }
View Full Code Here

        serverStatusThread = null;
    }

    /** Stops drbd status background process. */
    public void stopDrbdStatus() {
        final ExecCommandThread dst = drbdStatusThread;
        if (dst == null) {
            LOG.appWarning("execDrbdStatusCommand: trying to stop stopped drbd status");
            return;
        }
        dst.cancelTheSession();
        drbdStatusThread = null;
    }
View Full Code Here

        dst.cancelTheSession();
        drbdStatusThread = null;
    }

    public void waitForDrbdStatusFinish() {
        final ExecCommandThread dst = drbdStatusThread;
        if (dst != null) {
            try {
                /* it probably hangs after this timeout, so it will be
                 * killed. */
                dst.join();
            } catch (final InterruptedException e) {
                Thread.currentThread().interrupt();
            }
            stopDrbdStatus();
        }
View Full Code Here

            LOG.appWarning("execClStatusCommand: trying to start started status");
        }
    }

    public void waitForCrmStatusFinish() {
        final ExecCommandThread cst = crmStatusThread;
        if (cst == null) {
            return;
        }
        try {
            cst.join();
        } catch (final InterruptedException e) {
            Thread.currentThread().interrupt();
        }
        crmStatusThread = null;
    }
View Full Code Here

        }
        crmStatusThread = null;
    }

    public void stopCrmStatus() {
        final ExecCommandThread cst = crmStatusThread;
        if (cst == null) {
            LOG.appWarning("stopClStatus: trying to stop stopped status");
            return;
        }
        cst.cancelTheSession();
    }
View Full Code Here

         * are first directory part in the download area.*/
        drbdDistributionWidget.setEnabled(false);
        drbdKernelDirWidget.setEnabled(false);
        drbdArchWidget.setEnabled(false);
        getProgressBar().start(20000);
        final ExecCommandThread t = getHost().execCommand(new ExecCommandConfig()
                .commandString("DrbdAvailVersions")
                .convertCmdCallback(getDrbdInstallationConvertCmdCallback())
                .execCallback(new ExecCallback() {
                    @Override
                    public void done(final String answer) {
View Full Code Here

            public void run() {
                drbdKernelDirWidget.setEnabled(false);
                drbdArchWidget.setEnabled(false);
            }
        });
        final ExecCommandThread t = getHost().execCommand(new ExecCommandConfig()
                .commandString("DrbdAvailDistributions")
                .convertCmdCallback(getDrbdInstallationConvertCmdCallback())
                .execCallback(new ExecCallback() {
                    @Override
                    public void done(String answer) {
View Full Code Here

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

                }
            });
            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

TOP

Related Classes of lcmc.cluster.service.ssh.ExecCommandThread

Copyright © 2018 www.massapicom. 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.