Examples of HbConnectionInfo


Examples of lcmc.crm.ui.resource.HbConnectionInfo

    }
    /**
     * This is called from crm graph.
     */
    public HbConnectionInfo getNewHbConnectionInfo() {
        final HbConnectionInfo connectionInfo = connectionInfoProvider.get();
        connectionInfo.init(this);
        //connectionInfo.getInfoPanel();
        return connectionInfo;
    }
View Full Code Here

Examples of lcmc.crm.ui.resource.HbConnectionInfo

            lockGraph();
            getGraph().removeEdge(e);
            unlockGraph();
            mHbConnectionWriteLock.lock();
            try {
                final HbConnectionInfo hbci = edgeToHbconnectionMap.get(e);
                edgeToHbconnectionMap.remove(e);
                if (hbci != null) {
                    hbconnectionToEdgeMap.remove(hbci);
                    hbci.removeMyself(runMode);
                }
            } finally {
                mHbConnectionWriteLock.unlock();
            }
        }
View Full Code Here

Examples of lcmc.crm.ui.resource.HbConnectionInfo

    /** Returns whether to show an edge arrow. */
    @Override
    protected boolean showEdgeArrow(final Edge e) {
        if (edgeIsOrderList.contains(e)) {
            mHbConnectionReadLock.lock();
            final HbConnectionInfo hbci;
            try {
                hbci = edgeToHbconnectionMap.get(e);
            } finally {
                mHbConnectionReadLock.unlock();
            }
            return hbci != null && !hbci.isOrderTwoDirections();
        }
        return false;
    }
View Full Code Here

Examples of lcmc.crm.ui.resource.HbConnectionInfo

    /** Returns whether to show a hollow arrow. */
    @Override
    protected boolean showHollowArrow(final Edge e) {
        if (edgeIsOrderList.contains(e)) {
            mHbConnectionReadLock.lock();
            final HbConnectionInfo hbci;
            try {
                hbci = edgeToHbconnectionMap.get(e);
            } finally {
                mHbConnectionReadLock.unlock();
            }
            return hbci != null && hbci.isOrdScoreNull(null, null);
        }
        return false;
    }
View Full Code Here

Examples of lcmc.crm.ui.resource.HbConnectionInfo

    /** Is called after an edge was pressed. */
    @Override
    protected void oneEdgePressed(final Edge e) {
        mHbConnectionReadLock.lock();
        final HbConnectionInfo hbci;
        try {
            hbci = edgeToHbconnectionMap.get(e);
        } finally {
            mHbConnectionReadLock.unlock();
        }
View Full Code Here

Examples of lcmc.crm.ui.resource.HbConnectionInfo

                        Edge edge = getGraph().findEdge(pV, v);
                        if (edge == null) {
                            edge = getGraph().findEdge(v, pV);
                        }
                        if (edge != null) {
                            final HbConnectionInfo hbci = edgeToHbconnectionMap.get(edge);
                            if (hbci != null) {
                                infos.add(hbci);
                            }
                        }
                    }
                }
                final Collection<Vertex> successors = getGraph().getPredecessors(v);
                if (successors != null) {
                    for (final Vertex sV : successors) {
                        Edge edge = getGraph().findEdge(v, sV);
                        if (edge == null) {
                            edge = getGraph().findEdge(sV, v);
                        }
                        if (edge != null) {
                            final HbConnectionInfo hbci = edgeToHbconnectionMap.get(edge);
                            if (hbci != null) {
                                infos.add(hbci);
                            }
                        }
                    }
View Full Code Here

Examples of lcmc.crm.ui.resource.HbConnectionInfo

                        unlockGraph();
                    }
                } catch (final RuntimeException e) {
                    unlockGraph();
                }
                final HbConnectionInfo hbci;
                if (edge == null) {
                    hbci = getClusterBrowser().getNewHbConnectionInfo();
                    edge = new Edge(vP0, v0);
                    lockGraph();
                    getGraph().addEdge(edge, vP0, v0);
                    unlockGraph();
                    edgeToHbconnectionMap.put(edge, hbci);
                    hbconnectionToEdgeMap.put(hbci, edge);
                } else {
                    hbci = edgeToHbconnectionMap.get(edge);
                }
                mHbConnectionWriteLock.unlock();
                if (hbci != null) {
                    hbci.addOrder(ordId, parent, serviceInfo);
                    edgeIsOrderList.add(edge);
                    keepEdgeIsOrderList.add(edge);
                }
            }
        });
View Full Code Here

Examples of lcmc.crm.ui.resource.HbConnectionInfo

                    }
                    unlockGraph();
                } catch (final RuntimeException e) {
                    /* ignore */
                }
                final HbConnectionInfo hbci;
                if (edge == null) {
                    hbci = getClusterBrowser().getNewHbConnectionInfo();
                    edge = new Edge(vWithRsc0, vRsc0);
                    lockGraph();
                    getGraph().addEdge(edge, vWithRsc0, vRsc0);
                    unlockGraph();
                    edgeToHbconnectionMap.put(edge, hbci);
                    hbconnectionToEdgeMap.put(hbci, edge);
                } else {
                    hbci = edgeToHbconnectionMap.get(edge);
                }
                mHbConnectionWriteLock.unlock();
                if (hbci != null) {
                    hbci.addColocation(colId, rsc, withRsc);
                    edgeIsColocationList.add(edge);
                    keepEdgeIsColocationList.add(edge);
                }
            }
        });
View Full Code Here

Examples of lcmc.crm.ui.resource.HbConnectionInfo

    public void clearKeepOrderList() {
        mHbConnectionReadLock.lock();
        try {
            lockGraph();
            for (final Edge edge : getGraph().getEdges()) {
                final HbConnectionInfo hbci = edgeToHbconnectionMap.get(edge);
                if (hbci != null && !hbci.isNew()) {
                    /* don't remove the new ones. */
                    keepEdgeIsOrderList.remove(edge);
                }
            }
            unlockGraph();
View Full Code Here

Examples of lcmc.crm.ui.resource.HbConnectionInfo

    public void clearKeepColocationList() {
        mHbConnectionReadLock.lock();
        try {
            lockGraph();
            for (final Edge edge : getGraph().getEdges()) {
                final HbConnectionInfo hbci = edgeToHbconnectionMap.get(edge);
                if (hbci != null && !hbci.isNew()) {
                    /* don't remove the new ones. */
                    keepEdgeIsColocationList.remove(edge);
                }
            }
            unlockGraph();
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.