Examples of NetInfo


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

Examples of lcmc.cluster.ui.resource.NetInfo

    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

Examples of lcmc.cluster.ui.resource.NetInfo

            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

Examples of org.hyperic.sigar.NetInfo

    public TestNetInfo(String name) {
        super(name);
    }

    public void testNetInfo() throws SigarException {
        NetInfo info = getSigar().getNetInfo();
        NetInterfaceConfig config = getSigar().getNetInterfaceConfig(null);
        traceln("");
        traceln(info.toString());
        traceln(config.toString());

        int flags = NetFlags.CONN_SERVER | NetFlags.CONN_TCP;

        NetConnection[] connections;
View Full Code Here

Examples of org.hyperic.sigar.NetInfo

    public TestNetInfo(String name) {
        super(name);
    }

    public void testNetInfo() throws SigarException {
        NetInfo info = getSigar().getNetInfo();
        NetInterfaceConfig config = getSigar().getNetInterfaceConfig(null);
        traceln("");
        traceln(info.toString());
        traceln(config.toString());

        int flags = NetFlags.CONN_SERVER | NetFlags.CONN_TCP;

        NetConnection[] connections;
View Full Code Here

Examples of org.hyperic.sigar.NetInfo

    public TestNetInfo(String name) {
        super(name);
    }

    public void testNetInfo() throws SigarException {
        NetInfo info = getSigar().getNetInfo();
        NetInterfaceConfig config = getSigar().getNetInterfaceConfig(null);
        traceln("");
        traceln(info.toString());
        traceln(config.toString());

        int flags = NetFlags.CONN_SERVER | NetFlags.CONN_TCP;

        NetConnection[] connections =
View Full Code Here

Examples of org.woped.qualanalysis.sidebar.expert.components.NetInfo

  private IEditor parentEditor = null;
 
    public GraphTreeModel(IEditor currentEditor)
    {
      super(new NetInfo(currentEditor.getGraph().getModel().toString()));
      parentEditor = currentEditor;
      PopulateNode((NetInfo)getRoot(),
          parentEditor.getModelProcessor().getElementContainer());
      reload();
    }
View Full Code Here

Examples of org.woped.qualanalysis.sidebar.expert.components.NetInfo

  /**
   *
   * @return node containing tree title
   */
  protected static DefaultMutableTreeNode getAnalysisInfo() {
    return new NetInfo(Messages.getString(prefix + "Title"));
  }
View Full Code Here

Examples of org.woped.qualanalysis.sidebar.expert.components.NetInfo

  /**
   *
   * @return node containing all information from structural analysis of the petri net
   */
  protected static DefaultMutableTreeNode getStructuralInfo() {
    return new NetInfo(Messages.getString(prefix + "StructuralAnalysis"));
  }
View Full Code Here

Examples of org.woped.qualanalysis.sidebar.expert.components.NetInfo

  /**
   *
   * @return node containing all basic information about the petri net
   */
  protected static DefaultMutableTreeNode getNetStatisticsInfo() {
    return new NetInfo(Messages.getString(prefix + "NetStatistics"));
  }
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.