Package lcmc.crm.ui.resource

Examples of lcmc.crm.ui.resource.LinbitDrbdInfo


            drbddiskInfo.removeMyselfNoConfirm(dcHost, runMode);
        }
    }

    public void removeLinbitDrbd(final FilesystemRaInfo fi, final Host dcHost, final Application.RunMode runMode) {
        final LinbitDrbdInfo linbitDrbdInfo = fi.getLinbitDrbdInfo();
        if (linbitDrbdInfo != null) {
            linbitDrbdInfo.removeMyselfNoConfirm(dcHost, runMode);
        }
    }
View Full Code Here


                              final Host dcHost,
                              final String drbdId,
                              final Application.RunMode runMode) {
        final Point2D p = null;
        final CrmGraph crmg = getBrowser().getCrmGraph();
        final LinbitDrbdInfo ldi =
            (LinbitDrbdInfo) getBrowser().getServicesInfo().addServicePanel(
                getBrowser().getCrmXml().getLinbitDrbdResourceAgent(),
                                     p,
                                     true,
                                     drbdId,
                                     null,
                                     runMode);
        application.waitForSwing();
        ldi.setGroupInfo(fi.getGroupInfo());
        getBrowser().addToHeartbeatIdList(ldi);
        fi.setLinbitDrbdInfo(ldi);
        /* it adds coloation only to the graph. */
        final CloneInfo ci = ldi.getCloneInfo();
        final GroupInfo giFi = fi.getGroupInfo();
        if (giFi == null) {
            crmg.addColocation(null, fi, ci);
            crmg.addOrder(null, ci, fi);
        } else {
            crmg.addColocation(null, giFi, ci);
            crmg.addOrder(null, ci, giFi);
        }
        /* this must be executed after the getInfoPanel is executed. */
        ldi.waitForInfoPanel();
        ldi.getWidget("drbd_resource", null).setValueAndWait(new StringValue(getDrbdResourceInfo().getName()));
        /* apply gets parents from graph and adds colocations. */
        application.waitForSwing();
        ldi.apply(dcHost, runMode);
        ldi.getResource().setNew(false);
        application.invokeInEdt(new Runnable() {
            @Override
            public void run() {
                ldi.setApplyButtons(null, ldi.getParametersFromXML());
            }
        });
    }
View Full Code Here

TOP

Related Classes of lcmc.crm.ui.resource.LinbitDrbdInfo

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.