Package lcmc.cluster.ui.resource

Examples of lcmc.cluster.ui.resource.NetInfo


        final HostBrowser thisClass = this;
        mNetInfosWriteLock.lock();
        try {
            treeMenuController.removeChildren(netInterfacesNode);
            for (final NetInterface netInterface : netInterfaces) {
                final NetInfo netInfo;
                if (oldNetInterfaces.containsKey(netInterface)) {
                    netInfo = oldNetInterfaces.get(netInterface);
                } else {
                    netInfo = netInfoProvider.get();
                    netInfo.init(netInterface.getName(), netInterface, thisClass);
                }
                final DefaultMutableTreeNode resource = treeMenuController.createMenuItem(netInterfacesNode, netInfo);
            }
            treeMenuController.reloadNode(netInterfacesNode, false);
        } finally {
View Full Code Here


    Map<NetInterface, NetInfo> getNetInterfacesMap() {
        final Map<NetInterface, NetInfo> netInterfaces = new HashMap<NetInterface, NetInfo>();
        mNetInfosReadLock.lock();
        try {
            for (final Info info : treeMenuController.nodesToInfos(netInterfacesNode.children())) {
                final NetInfo netInfo = (NetInfo) info;
                netInterfaces.put(netInfo.getNetInterface(), netInfo);
            }
        } finally {
            mNetInfosReadLock.unlock();
        }
        return netInterfaces;
View Full Code Here

            list.add(netInterfaces);
        }

        /* the same host */
        for (final Info info: treeMenuController.nodesToInfos(hostBrowser.getNetInterfacesNode().children())) {
            final NetInfo netInfo = (NetInfo) info;
            final ProxyNetInfo proxyNetInfo = proxyNetInfoProvider.get();
            proxyNetInfo.init(netInfo, hostBrowser, hostBrowser.getHost());
            list.add(proxyNetInfo);
        }

        /* other nodes */
        for (final Host h : getCluster().getProxyHosts()) {
            if (h == hostBrowser.getHost()) {
                continue;
            }
            for (final Info info :  treeMenuController.nodesToInfos(hostBrowser.getNetInterfacesNode().children())) {
                final NetInfo netInfo = (NetInfo) info;
                if (netInfo.isLocalHost()) {
                    continue;
                }
                final ProxyNetInfo proxyNetInfo = proxyNetInfoProvider.get();
                proxyNetInfo.init(netInfo, hostBrowser, h);
                list.add(proxyNetInfo);
View Full Code Here

TOP

Related Classes of lcmc.cluster.ui.resource.NetInfo

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.