Examples of DrbdInstallation


Examples of lcmc.drbd.domain.DrbdInstallation

        this.host = host;
        this.volumeInfo = volumeInfo;
    }

    public void showDialogs() {
        newProxyHostDialog.init(null, host, volumeInfo, null, new DrbdInstallation());
        WizardDialog dialog = newProxyHostDialog;
        guiData.expandTerminalSplitPane(GUIData.TerminalSize.EXPAND);
        while (true) {
            LOG.debug1("showDialogs: dialog: " + dialog.getClass().getName());
            final WizardDialog newdialog = (WizardDialog) dialog.showDialog();
View Full Code Here

Examples of lcmc.drbd.domain.DrbdInstallation

                               }
                          }));
    }

    final void installDrbd() {
        final DrbdInstallation drbdInstallation = getDrbdInstallation();
        drbdInstallation.setDrbdWasNewlyInstalled(true); /* even if we fail */
        application.setLastDrbdInstalledMethod(drbdInstallation.getDrbdInstallMethodIndex());
        application.setLastDrbdInstalledMethod(
                           getHost().getDistString("DrbdInst.install.text."
                                                   + drbdInstallation.getDrbdInstallMethodIndex()));
        answerPaneSetText(Tools.getString("Dialog.Host.DrbdLinbitInst.Installing"));
        getHost().execCommandInBash(new ExecCommandConfig().commandString("DrbdInst.install;;;DRBD.load")
                          .progressBar(getProgressBar())
                          .execCallback(new ExecCallback() {
                               @Override
View Full Code Here

Examples of lcmc.drbd.domain.DrbdInstallation

     * first time.
     */
    protected void allDone(final DrbdVersions drbdVersions) {
        if (drbdVersions != null) {
            answerPaneSetText("http://oss.linbit.com/drbd/" + drbdVersions.getModuleFileName());
            final DrbdInstallation drbdInstallation = getDrbdInstallation();

            drbdInstallation.setDrbdToInstall(drbdVersions);
        }
        // TODO: do something different if we did not get any versions
        drbdTarballCombo.setEnabled(true);
        drbdCommandInst.init(this, getHost(), getDrbdInstallation());
        progressBarDone();
View Full Code Here

Examples of lcmc.drbd.domain.DrbdInstallation

    private Application application;

    public void showDialogs(final Host host) {
        guiData.enableAddHostButtons(false);
        DialogHost dialog = newHostDialog;
        dialog.init(null, host, new DrbdInstallation());
        guiData.expandTerminalSplitPane(GUIData.TerminalSize.EXPAND);
        while (true) {
            LOG.debug1("showDialogs: dialog: " + dialog.getClass().getName());
            final DialogHost newdialog = (DialogHost) dialog.showDialog();
            if (dialog.isPressedCancelButton()) {
View Full Code Here

Examples of lcmc.drbd.domain.DrbdInstallation

    @Inject
    private GUIData guiData;

    public void showDialogs(final Host host) {
        DialogHost dialog = sshDialog;
        dialog.init(null, host, new DrbdInstallation());
        final boolean expanded = guiData.isTerminalPanelExpanded();
        guiData.expandTerminalSplitPane(GUIData.TerminalSize.EXPAND);
        while (true) {
            LOG.debug1("showDialogs: dialog: " + dialog.getClass().getName());
            final DialogHost newdialog = (DialogHost) dialog.showDialog();
View Full Code Here

Examples of lcmc.drbd.domain.DrbdInstallation

        if (arch == null) {
            arch = getHost().getArch();
        }
        final String archString = arch;
        String installCommand = "DrbdInst.install";
        final DrbdInstallation drbdInstallation = getDrbdInstallation();
        final String installMethod = drbdInstallation.getDrbdInstallMethodIndex();
        if (installMethod != null) {
            installCommand = "DrbdInst.install." + installMethod;
        }
        final String drbdVersion;
        final String drbdVersionUrlString;
        final String utilVersion;
        final String utilFileName;

        final DrbdVersions drbdVersions = drbdInstallation.getDrbdToInstall();
        if (drbdVersions == null) {
            drbdVersion = null;
            drbdVersionUrlString = null;
            utilVersion = null;
            utilFileName = null;
View Full Code Here

Examples of lcmc.drbd.domain.DrbdInstallation

        if (proxyHostNextDialog) {
            proxyHostNextDialog = false;
            final Host proxyHost = hostFactory.createInstance();
            proxyHost.setCluster(dri.getCluster());
            final NewProxyHostDialog newProxyHostDialog = newProxyHostDialogProvider.get();
            newProxyHostDialog.init(this, proxyHost, getDrbdVolumeInfo(), this, new DrbdInstallation());
            return newProxyHostDialog;
        }
        final GlobalInfo globalInfo = dri.getBrowser().getGlobalInfo();
        final boolean protocolInNetSection = globalInfo.atLeastVersion("8.4");
        if (globalInfo.getDrbdResources().size() <= 1) {
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.