Package lcmc.crm.ui.resource

Examples of lcmc.crm.ui.resource.ConstraintPHInfo


        }
        if (parent.isConstraintPlaceholder() || serviceInfo.isConstraintPlaceholder()) {
            /* if it is sequential rsc set change it to show to the resource
             * instead on placeholder. */

            final ConstraintPHInfo cphi;
            if (parent.isConstraintPlaceholder()) {
                cphi = (ConstraintPHInfo) parent;
                final ServiceInfo si = cphi.prevInSequence(serviceInfo, false);
                if (si != null) {
                    vP = getVertex(si);
                }
            } else {
                cphi = (ConstraintPHInfo) serviceInfo;
                final ServiceInfo si = cphi.nextInSequence(parent, false);
                if (si != null) {
                    v = getVertex(si);
                }
            }
        }
View Full Code Here


        }
        if (rsc.isConstraintPlaceholder() || withRsc.isConstraintPlaceholder()) {
            /* if it is sequential rsc set change it to show to the resource
             * instead on placeholder. */

            final ConstraintPHInfo cphi;
            if (rsc.isConstraintPlaceholder()) {
                cphi = (ConstraintPHInfo) rsc;
                final ServiceInfo si = cphi.nextInSequence(withRsc, true);
                if (si != null) {
                    vRsc = getVertex(si);
                }
            } else {
                cphi = (ConstraintPHInfo) withRsc;
                final ServiceInfo si = cphi.prevInSequence(rsc, true);
                if (si != null) {
                    vWithRsc = getVertex(si);
                }
            }
        }
View Full Code Here

            if (hi != null) {
                guiData.setTerminalPanel(hi.getHost().getTerminalPanel());
                getClusterBrowser().setRightComponentInView(hi);
            }
        } else if (vertexToConstraintPHMap.containsKey(v)) {
            final ConstraintPHInfo cphi = vertexToConstraintPHMap.get(v);
            if (cphi != null) {
                getClusterBrowser().setRightComponentInView(cphi);
            }
        } else {
            final ServiceInfo si = (ServiceInfo) getInfo(v);
View Full Code Here

            }
            unlockGraph();
            final Set<Vertex> vipl = getVertexIsPresentList();
            putVertexIsPresentList();
            if (vertexToConstraintPHMap.containsKey(v)) {
                final ConstraintPHInfo cphi = (ConstraintPHInfo) getInfo(v);
                if (cphi == null) {
                    continue;
                }
                if (!vipl.contains(v)) {
                    cphi.setUpdated(false);
                    if (!getClusterBrowser().crmStatusFailed()
                        && cphi.getService().isRemoved()) {
                        getVertexLocations().put(v, null);
                        putVertexLocations();
                        lockGraph();
                        getGraph().removeVertex(v);
                        removeInfo(v);
                        removeVertex(cphi);
                        unlockGraph();
                        cphi.removeInfo();
                        getVertexToMenus().remove(v);
                        vertexToConstraintPHMap.remove(v);
                        constraintPHToVertexMap.remove(cphi);
                        somethingChanged();
                    } else {
                        cphi.getService().setNew(true);
                    }
                }
                cphi.resetRscSetConnectionData();
            } else {
                if (!vipl.contains(v)) {
                    final ServiceInfo si = (ServiceInfo) getInfo(v);
                    if (si != null && !si.getService().isNew() && !getClusterBrowser().crmStatusFailed()) {
                        si.setUpdated(false);
View Full Code Here

TOP

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

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.