Package lcmc.cluster.ui

Examples of lcmc.cluster.ui.ClusterBrowser


        integrationTestLauncher.initTestCluster();
    }

    @Test
    public void testNotEqualNames() {
        final ClusterBrowser clusterBrowser = integrationTestLauncher.getHosts().get(0).getBrowser().getClusterBrowser();
        final ResourceInfo r1 = new ResourceInfo();
        r1.init("name1", null, clusterBrowser);
        final ResourceInfo r2 = new ResourceInfo();
        r2.init("name2", null, clusterBrowser);
View Full Code Here


        assertFalse("not equal names", r1.equals(r2));
    }

    @Test
    public void testEqualNames() {
        final ClusterBrowser clusterBrowser = integrationTestLauncher.getHosts().get(0).getBrowser().getClusterBrowser();
        final ResourceInfo r1 = new ResourceInfo();
        r1.init("name", null, clusterBrowser);
        final ResourceInfo r2 = new ResourceInfo();
        r2.init("name", null, clusterBrowser);
View Full Code Here

        assertTrue("equal names", r1.equals(r2));
    }

    @Test
    public void testNameNull() {
        final ClusterBrowser clusterBrowser = integrationTestLauncher.getHosts().get(0).getBrowser().getClusterBrowser();
        final ResourceInfo r1 = new ResourceInfo();
        r1.init("name", null, clusterBrowser);

        assertFalse("equal name null", r1.getName() == null);
    }
View Full Code Here

        assertFalse("equal name null", r1.getName() == null);
    }

    @Test
    public void testEqualNamesNotEqualsHosts() {
        final ClusterBrowser clusterBrowser = integrationTestLauncher.getHosts().get(0).getBrowser().getClusterBrowser();
        final HostFactory hostFactory = AppContext.getBean(HostFactory.class);

        final ResourceInfo r1 = new ResourceInfo();
        r1.init("name", new LinkedHashSet<Host>(Arrays.asList(hostFactory.createInstance())), clusterBrowser);
        final ResourceInfo r2 = new ResourceInfo();
View Full Code Here

        return clusterBrowser;
    }

    public void removeCluster() {
        LOG.debug1("removeCluster: " + name);
        final ClusterBrowser cb = clusterBrowser;
        if (cb != null) {
            cb.stopServerStatus();
            cb.stopDrbdStatusOnAllHosts();
            cb.stopCrmStatus();
        }
    }
View Full Code Here

            } catch (final InterruptedException e) {
                Thread.currentThread().interrupt();
            }

            for (final Cluster cluster : allClusters.getClusterSet()) {
                final ClusterBrowser cb = cluster.getBrowser();
                if (cb != null) {
                    cb.saveGraphPositions();
                }
            }
            guiData.stopProgressIndicator(text);
        }
    }
View Full Code Here

        checkAccessOfEverything();
    }

    public void checkAccessOfEverything() {
        for (final Cluster c : allClusters.getClusterSet()) {
            final ClusterBrowser cb = c.getBrowser();
            if (cb != null) {
                cb.checkAccessOfEverything();
            }
        }
    }
View Full Code Here

        DRBD.adjustApply(bdi2.getHost(),
                         getDrbdVolumeInfo().getDrbdResourceInfo().getName(),
                         getDrbdVolumeInfo().getName(),
                         runMode);
        final String device = getDrbdVolumeInfo().getDevice();
        final ClusterBrowser browser = getDrbdVolumeInfo().getDrbdResourceInfo().getBrowser();
        browser.updateHWInfo(bdi1.getHost(), !Host.UPDATE_LVM);
        browser.updateHWInfo(bdi2.getHost(), !Host.UPDATE_LVM);
        bdi1.getBlockDevice().setDrbdBlockDevice(bdi1.getHost().getDrbdBlockDevice(device));
        bdi2.getBlockDevice().setDrbdBlockDevice(bdi2.getHost().getDrbdBlockDevice(device));
        guiData.stopProgressIndicator(clusterName, "scanning block devices...");
        createFSDialog.init(this, getDrbdVolumeInfo());
        return createFSDialog;
View Full Code Here

                final String gi1 = getGI(blockDevInfo);
                final String gi2 = getGI(oBdi);
                if (gi1 == null || gi2 == null) {
                    getDrbdVolumeInfo().getDrbdResourceInfo().setHaveToCreateMD(true);
                }
                final ClusterBrowser browser = getDrbdVolumeInfo().getDrbdResourceInfo().getBrowser();
                browser.reloadAllComboBoxes(null);
                guiData.expandTerminalSplitPane(GUIData.TerminalSize.COLLAPSE);
                guiData.getMainFrame().requestFocus();
            } catch (final Exceptions.DrbdConfigException dce) {
                LOG.appError("nextDialog: config failed", dce);
            } catch (final UnknownHostException e) {
View Full Code Here

     * Removes this object from jtree and from list of drbd volume
     * infos without confirmation dialog.
     */
    private void removeMyselfNoConfirm(final Application.RunMode runMode) {
        application.isNotSwingThread();
        final ClusterBrowser clusterBrowser = getBrowser();
        removeMyselfNoConfirm0(runMode, clusterBrowser);
    }
View Full Code Here

TOP

Related Classes of lcmc.cluster.ui.ClusterBrowser

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.